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/15208
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15208/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15208/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15208/events
|
https://github.com/pandas-dev/pandas/pull/15208
| 202,841,606 |
MDExOlB1bGxSZXF1ZXN0MTAyOTMzOTk3
| 15,208 |
BUG: Remove locale conversion from Stata file date
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 6 | 2017-01-24T14:56:32Z | 2017-02-17T18:58:22Z | 2017-01-25T12:01:11Z |
CONTRIBUTOR
| null |
Prevent locale from affecting Stata file date creation, which must
be en_US.
xref #13856
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15208/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15208/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15208.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15208",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15208.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15208"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15209
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15209/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15209/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15209/events
|
https://github.com/pandas-dev/pandas/pull/15209
| 202,845,014 |
MDExOlB1bGxSZXF1ZXN0MTAyOTM2Mzky
| 15,209 |
TST: fix excel tests when openpyxl is not installed
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 6 | 2017-01-24T15:08:22Z | 2017-01-24T21:24:04Z | 2017-01-24T21:24:04Z |
MEMBER
| null |
Some tests fail when you don't have openpyxl installed, so explicitly skipping those (they need it for certain exts because they write a frame in the 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/15209/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15209/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15209.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15209",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15209.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15209"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15210
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15210/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15210/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15210/events
|
https://github.com/pandas-dev/pandas/pull/15210
| 202,852,947 |
MDExOlB1bGxSZXF1ZXN0MTAyOTQyMTYz
| 15,210 |
DOC: clean-up docstring str.replace (GH15056)
|
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2017-01-24T15:35:54Z | 2017-01-24T18:49:00Z | 2017-01-24T18:49:00Z |
MEMBER
| null |
I was too late to give feedback, so a few changes to the docstring additions of #15056
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15210/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15210/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15210.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15210",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15210.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15210"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15211
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15211/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15211/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15211/events
|
https://github.com/pandas-dev/pandas/pull/15211
| 202,863,548 |
MDExOlB1bGxSZXF1ZXN0MTAyOTQ5OTMy
| 15,211 |
BLD: add locale to 34_nslow build
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 11 | 2017-01-24T16:11:29Z | 2017-01-24T19:52:06Z | 2017-01-24T19:52:06Z |
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15211/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15211/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15211.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15211",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15211.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15211"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15212
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15212/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15212/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15212/events
|
https://github.com/pandas-dev/pandas/issues/15212
| 202,909,989 |
MDU6SXNzdWUyMDI5MDk5ODk=
| 15,212 |
Duplicate columns in DataFrame do not show up in DataFrame.itertuples
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8409320?v=4",
"events_url": "https://api.github.com/users/dfithian/events{/privacy}",
"followers_url": "https://api.github.com/users/dfithian/followers",
"following_url": "https://api.github.com/users/dfithian/following{/other_user}",
"gists_url": "https://api.github.com/users/dfithian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dfithian",
"id": 8409320,
"login": "dfithian",
"node_id": "MDQ6VXNlcjg0MDkzMjA=",
"organizations_url": "https://api.github.com/users/dfithian/orgs",
"received_events_url": "https://api.github.com/users/dfithian/received_events",
"repos_url": "https://api.github.com/users/dfithian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dfithian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dfithian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dfithian"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-01-24T19:04:17Z | 2018-07-06T20:21:15Z | 2017-01-24T19:10:23Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas
>>> df = pandas.read_csv('test.csv')
>>> df
A A.1 B
0 1 2 3
>>> df.columns
Index(['A', 'A.1', 'B'], dtype='object')
>>> for row in df.itertuples(index=False):
... print(row)
...
Pandas(A=1, _1=2, B=3)
```
#### Problem description
The row should show up as `Pandas(A=1, A.1=2, B=3)` OR start supporting `mangle_dupe_cols=False` to overwrite duplicate columns.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: None
pip: 9.0.1
setuptools: 30.3.0
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: None
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15212/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15212/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15213
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15213/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15213/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15213/events
|
https://github.com/pandas-dev/pandas/issues/15213
| 202,917,275 |
MDU6SXNzdWUyMDI5MTcyNzU=
| 15,213 |
DEPS: drop numexpr < 2.4.6
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false |
{
"avatar_url": "https://avatars.githubusercontent.com/u/314521?v=4",
"events_url": "https://api.github.com/users/FrancescAlted/events{/privacy}",
"followers_url": "https://api.github.com/users/FrancescAlted/followers",
"following_url": "https://api.github.com/users/FrancescAlted/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancescAlted/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FrancescAlted",
"id": 314521,
"login": "FrancescAlted",
"node_id": "MDQ6VXNlcjMxNDUyMQ==",
"organizations_url": "https://api.github.com/users/FrancescAlted/orgs",
"received_events_url": "https://api.github.com/users/FrancescAlted/received_events",
"repos_url": "https://api.github.com/users/FrancescAlted/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FrancescAlted/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancescAlted/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FrancescAlted"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/314521?v=4",
"events_url": "https://api.github.com/users/FrancescAlted/events{/privacy}",
"followers_url": "https://api.github.com/users/FrancescAlted/followers",
"following_url": "https://api.github.com/users/FrancescAlted/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancescAlted/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FrancescAlted",
"id": 314521,
"login": "FrancescAlted",
"node_id": "MDQ6VXNlcjMxNDUyMQ==",
"organizations_url": "https://api.github.com/users/FrancescAlted/orgs",
"received_events_url": "https://api.github.com/users/FrancescAlted/received_events",
"repos_url": "https://api.github.com/users/FrancescAlted/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FrancescAlted/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancescAlted/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FrancescAlted"
}
] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-01-24T19:32:21Z | 2017-03-02T10:37:00Z | 2017-02-15T15:21:24Z |
CONTRIBUTOR
| null |
since 2.4.4 is specifically exluded because of some multi-threading issues, this eliminates the pandas checks for this (as well as some compat code for earlier versions of numexpr).
|
{
"+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/15213/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15213/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15214
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15214/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15214/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15214/events
|
https://github.com/pandas-dev/pandas/issues/15214
| 202,917,498 |
MDU6SXNzdWUyMDI5MTc0OTg=
| 15,214 |
DEPS: drop bottleneck < 1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 1 | 2017-01-24T19:33:19Z | 2017-08-01T20:09:23Z | 2017-08-01T20:09:23Z |
CONTRIBUTOR
| null |
should prob address #9422 simultaneously.
|
{
"+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/15214/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15214/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15215
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15215/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15215/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15215/events
|
https://github.com/pandas-dev/pandas/issues/15215
| 202,920,833 |
MDU6SXNzdWUyMDI5MjA4MzM=
| 15,215 |
COMPAT: datetime parsing with locale
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2017-01-24T19:46:18Z | 2017-01-26T02:31:04Z | 2017-01-26T02:31:04Z |
CONTRIBUTOR
| null |
we recently adding testing under a non-US locale for all tests with a larger than 1 unicode character (chinese), [here](https://github.com/pandas-dev/pandas/pull/15211), not just slow (which we have had for a while), and IT (which doesn't show these issues).
https://github.com/pandas-dev/pandas/pull/15208 fixes almost everything, but this remains.
You can easily repro this by adding to ``pandas/__init__.py`` at the top.
```
import locale
locale.setlocale(locale.LC_ALL, 'zh_CN.UTF-8')
```
```
======================================================================
ERROR: test_to_datetime_format_microsecond (pandas.tseries.tests.test_timeseries.TimeConversionFormats)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/jreback/pandas/pandas/tseries/tools.py", line 407, in _convert_listlike
values, tz = tslib.datetime_to_datetime64(arg)
File "pandas/tslib.pyx", line 1756, in pandas.tslib.datetime_to_datetime64 (pandas/tslib.c:30671)
raise TypeError('Unrecognized value type: %s' % type(val))
TypeError: Unrecognized value type: <class 'str'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/jreback/pandas/pandas/tseries/tests/test_timeseries.py", line 5374, in test_to_datetime_format_microsecond
result = to_datetime(val, format=format)
File "/home/travis/build/jreback/pandas/pandas/tseries/tools.py", line 427, in to_datetime
return _convert_listlike(np.array([arg]), box, format)[0]
File "/home/travis/build/jreback/pandas/pandas/tseries/tools.py", line 410, in _convert_listlike
raise e
File "/home/travis/build/jreback/pandas/pandas/tseries/tools.py", line 377, in _convert_listlike
errors=errors)
File "pandas/tslib.pyx", line 3600, in pandas.tslib.array_strptime (pandas/tslib.c:58664)
raise ValueError("time data %r does not match "
ValueError: time data '01-Apr-2011 00:00:01.978' does not match format '%d-%b-%Y %H:%M:%S.%f' (match)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15215/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15215/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15216
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15216/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15216/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15216/events
|
https://github.com/pandas-dev/pandas/pull/15216
| 202,966,965 |
MDExOlB1bGxSZXF1ZXN0MTAzMDIzMjcw
| 15,216 |
ENH: add MultiIndex.to_dataframe
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 8 | 2017-01-24T23:06:04Z | 2017-01-25T21:42:51Z | 2017-01-25T21:20:37Z |
CONTRIBUTOR
| null |
ENH: allow hashing of MultiIndex
closes #12397
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15216/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15216/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15216.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15216",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15216.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15216"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15217
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15217/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15217/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15217/events
|
https://github.com/pandas-dev/pandas/issues/15217
| 202,989,178 |
MDU6SXNzdWUyMDI5ODkxNzg=
| 15,217 |
Categorical Column GroupBy agg with as_index=False produces NaN rows 7.5X Slower with unexpected extra Cardinality
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2701562?v=4",
"events_url": "https://api.github.com/users/dragoljub/events{/privacy}",
"followers_url": "https://api.github.com/users/dragoljub/followers",
"following_url": "https://api.github.com/users/dragoljub/following{/other_user}",
"gists_url": "https://api.github.com/users/dragoljub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragoljub",
"id": 2701562,
"login": "dragoljub",
"node_id": "MDQ6VXNlcjI3MDE1NjI=",
"organizations_url": "https://api.github.com/users/dragoljub/orgs",
"received_events_url": "https://api.github.com/users/dragoljub/received_events",
"repos_url": "https://api.github.com/users/dragoljub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragoljub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragoljub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragoljub"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 6 | 2017-01-25T01:27:38Z | 2018-05-01T15:09:11Z | 2018-05-01T15:09:11Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randint(10,100, size=(200,6)), columns=['C'+str(i) for i in range(6)])
df['C0'] = ['A','B','C','D']*50
df['C1'] = ['E','F']*100
df['C2'] = ['H','I','J','K', 'L']*40
for col in df.columns[:3]:
df[col] = df[col].astype('category')
df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 200 entries, 0 to 199
Data columns (total 6 columns):
C0 200 non-null category
C1 200 non-null category
C2 200 non-null category
C3 200 non-null int32
C4 200 non-null int32
C5 200 non-null int32
dtypes: category(3), int32(3)
memory usage: 3.1 KB
%time ix_true = df.groupby(df.columns.tolist()[:3], as_index=True)['C5'].max()
Wall time: 2 ms
ix_true.shape
(20,)
%time ix_false = df.groupby(df.columns.tolist()[:3], as_index=False)['C5'].max()
Wall time: 15 ms
ix_false.shape
(40, 4)
ix_true
C0 C1 C2
A E H 93
I 99
J 88
K 91
L 94
B F H 98
I 89
J 94
K 92
L 96
C E H 96
I 96
J 85
K 88
L 98
D F H 96
I 84
J 71
K 96
L 94
Name: C5, dtype: int32
ix_false
C0 C1 C2 C5
0 A E H 93.0
1 A E I 99.0
2 A E J 88.0
3 A E K 91.0
4 A E L 94.0
5 A F H NaN
6 A F I NaN
7 A F J NaN
8 A F K NaN
9 A F L NaN
10 B E H NaN
11 B E I NaN
12 B E J NaN
13 B E K NaN
14 B E L NaN
15 B F H 98.0
16 B F I 89.0
17 B F J 94.0
18 B F K 92.0
19 B F L 96.0
20 C E H 96.0
21 C E I 96.0
22 C E J 85.0
23 C E K 88.0
24 C E L 98.0
25 C F H NaN
26 C F I NaN
27 C F J NaN
28 C F K NaN
29 C F L NaN
30 D E H NaN
31 D E I NaN
32 D E J NaN
33 D E K NaN
34 D E L NaN
35 D F H 96.0
36 D F I 84.0
37 D F J 71.0
38 D F K 96.0
39 D F L 94.0
```
#### Problem description
Using ```as_index=False``` in ```df.groupby(df.columns.tolist()[:3], as_index=False)['C5'].max()``` with categorical columns produces NaN output rows.
#### Expected Output
I expect that the output should not contain any extra Cardinality explosion and have the same number of rows. as the ```as_index=True``` case.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 8.1.1
setuptools: 20.10.1
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: 0.7.1
IPython: 4.2.0
sphinx: 1.3.6
patsy: 0.4.0
dateutil: 2.5.0
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.2.5
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: None
lxml: 3.6.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15217/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15217/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15218
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15218/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15218/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15218/events
|
https://github.com/pandas-dev/pandas/pull/15218
| 202,992,276 |
MDExOlB1bGxSZXF1ZXN0MTAzMDQxNTc3
| 15,218 |
BLD: hashtable.pxd is a pxd depends for _join, hashtable, and index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-01-25T01:51:36Z | 2017-01-25T12:01:34Z | 2017-01-25T12:01:34Z |
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/15218/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15218/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15218.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15218",
"merged_at": "2017-01-25T12:01:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15218.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15218"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15219
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15219/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15219/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15219/events
|
https://github.com/pandas-dev/pandas/pull/15219
| 203,008,497 |
MDExOlB1bGxSZXF1ZXN0MTAzMDUyNTc0
| 15,219 |
ENH union_categoricals supports ignore_order GH13410
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15849929?v=4",
"events_url": "https://api.github.com/users/js3711/events{/privacy}",
"followers_url": "https://api.github.com/users/js3711/followers",
"following_url": "https://api.github.com/users/js3711/following{/other_user}",
"gists_url": "https://api.github.com/users/js3711/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/js3711",
"id": 15849929,
"login": "js3711",
"node_id": "MDQ6VXNlcjE1ODQ5OTI5",
"organizations_url": "https://api.github.com/users/js3711/orgs",
"received_events_url": "https://api.github.com/users/js3711/received_events",
"repos_url": "https://api.github.com/users/js3711/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/js3711/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/js3711/subscriptions",
"type": "User",
"url": "https://api.github.com/users/js3711"
}
|
[
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 8 | 2017-01-25T04:15:02Z | 2017-02-22T16:32:47Z | 2017-02-22T16:31:40Z |
NONE
| null |
xref #13410 (ignore_order portion)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15219/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15219/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15219.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15219",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15219.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15219"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15220
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15220/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15220/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15220/events
|
https://github.com/pandas-dev/pandas/issues/15220
| 203,014,674 |
MDU6SXNzdWUyMDMwMTQ2NzQ=
| 15,220 |
.loc indexing of heterogeneous dataframe returns different dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18256634?v=4",
"events_url": "https://api.github.com/users/wattse/events{/privacy}",
"followers_url": "https://api.github.com/users/wattse/followers",
"following_url": "https://api.github.com/users/wattse/following{/other_user}",
"gists_url": "https://api.github.com/users/wattse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wattse",
"id": 18256634,
"login": "wattse",
"node_id": "MDQ6VXNlcjE4MjU2NjM0",
"organizations_url": "https://api.github.com/users/wattse/orgs",
"received_events_url": "https://api.github.com/users/wattse/received_events",
"repos_url": "https://api.github.com/users/wattse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wattse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wattse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wattse"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-01-25T05:14:06Z | 2017-01-27T00:47:54Z | 2017-01-25T08:22:53Z |
NONE
| null |
#### Code Sample
```python
import pandas as pd
import numpy as np
#working data
names = ['d1', 'd2', 'd3', 'd4', 'd5']
formats = ['u1', '<f8', 'u1', 'u1', 'u1']
dtype = dict(names=names, formats=formats)
data = {'d1':[1,11], 'd2':[2,12], 'd3':[3,13], 'd4':[4,14], 'd5':[5,15]}
#create a pandas dataframe with uint8 variables except for a double in d2 slot.
df_create = np.rec.fromarrays(data.values(), dtype=dtype, names=data.keys())
df_create = pd.DataFrame(df_create)
df_create.loc[:,'d2'] *= 0.12345
#create a pandas dataframe with all variables uint8
df_mod = pd.DataFrame.from_dict(data, dtype=np.dtype('u1'))
#convert d2 to double and modify
df_mod.loc[:,'d2'] = df_mod.loc[:,'d2'].astype(np.dtype('float64'))
df_mod.loc[:,'d2'] *= 0.12345
print('type of df_create.loc[0,\'d1\']: {}'.format(type(df_create.loc[0,'d1'])))
print('type of df_create.loc[0,\'d2\']: {}'.format(type(df_create.loc[0,'d2'])))
print('type of df_create.iloc[0,0]: {}'.format(type(df_create.iloc[0,2])))
print('type of df_create.iloc[0,1]: {}'.format(type(df_create.iloc[0,1])))
print('type of df_create.ix[0,0]: {}'.format(type(df_create.iloc[0,2])))
print('type of df_create.ix[0,1]: {}'.format(type(df_create.iloc[0,1])))
print('')
print('type of df_mod.loc[0,\'d1\']: {}'.format(type(df_mod.loc[0,'d1'])))
print('type of df_mod.loc[0,\'d2\']: {}'.format(type(df_mod.loc[0,'d2'])))
print('type of df_mod.iloc[0,0]: {}'.format(type(df_mod.iloc[0,2])))
print('type of df_mod.iloc[0,1]: {}'.format(type(df_mod.iloc[0,1])))
print('type of df_mod.ix[0,0]: {}'.format(type(df_mod.iloc[0,2])))
print('type of df_mod.ix[0,1]: {}'.format(type(df_mod.iloc[0,1])))
print('')
print('All dtypes for dataframe df_mod:')
print(df_mod.dtypes)
print('')
pd.show_versions()
```
produces the following output:
type of df_create.loc[0,'d1']: <class 'numpy.float64'>
type of df_create.loc[0,'d2']: <class 'numpy.float64'>
type of df_create.iloc[0,0]: <class 'numpy.float64'>
type of df_create.iloc[0,1]: <class 'numpy.float64'>
type of df_create.ix[0,0]: <class 'numpy.float64'>
type of df_create.ix[0,1]: <class 'numpy.float64'>
type of df_mod.loc[0,'d1']: <class 'numpy.float64'>
type of df_mod.loc[0,'d2']: <class 'numpy.float64'>
type of df_mod.iloc[0,0]: <class 'numpy.float64'>
type of df_mod.iloc[0,1]: <class 'numpy.float64'>
type of df_mod.ix[0,0]: <class 'numpy.float64'>
type of df_mod.ix[0,1]: <class 'numpy.float64'>
All dtypes for dataframe df_mod:
d1 uint8
d2 float64
d3 uint8
d4 uint8
d5 uint8
dtype: object
#### Problem description
As far as I can see, the indexing mechanism is converting non-float64s to float64s. According to the dtypes, the internal representation of the data remains uint8, but when exposed by some indexing mechanism, the uint8 data is converted to float64.
#### Expected Output
type of df_create.loc[0,'d1']: <class 'numpy.uint8'>
type of df_create.loc[0,'d2']: <class 'numpy.float64'>
type of df_create.iloc[0,0]: <class 'numpy.uint8'>
type of df_create.iloc[0,1]: <class 'numpy.float64'>
type of df_create.ix[0,0]: <class 'numpy.uint8'>
type of df_create.ix[0,1]: <class 'numpy.float64'>
type of df_mod.loc[0,'d1']: <class 'numpy.uint8'>
type of df_mod.loc[0,'d2']: <class 'numpy.float64'>
type of df_mod.iloc[0,0]: <class 'numpy.uint8'>
type of df_mod.iloc[0,1]: <class 'numpy.float64'>
type of df_mod.ix[0,0]: <class 'numpy.uint8'>
type of df_mod.ix[0,1]: <class 'numpy.float64'>
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 30 Stepping 5, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.23.4
numpy: 1.12.0
scipy: 0.18.0
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.4.0
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15220/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15220/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15221
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15221/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15221/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15221/events
|
https://github.com/pandas-dev/pandas/pull/15221
| 203,022,000 |
MDExOlB1bGxSZXF1ZXN0MTAzMDYxOTgw
| 15,221 |
BUG: TimedeltaIndex raising ValueError when boolean indexing (#14946)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-25T06:21:01Z | 2017-12-20T02:04:06Z | 2017-01-26T15:01:14Z |
MEMBER
| null |
- [x] closes #14946
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Implementing patch suggested by @jreback [here](https://github.com/pandas-dev/pandas/issues/14946#issuecomment-268666453) that prevents raising a `ValueError` when boolean indexing with a `TimedeltaIndex`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15221/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15221/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15221.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15221",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15221.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15221"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15222
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15222/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15222/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15222/events
|
https://github.com/pandas-dev/pandas/pull/15222
| 203,066,363 |
MDExOlB1bGxSZXF1ZXN0MTAzMDkyNjYw
| 15,222 |
DOC: Merge FAQ and gotcha (rebase of GH13768)
|
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-25T10:36:01Z | 2017-01-25T23:48:06Z | 2017-01-25T23:48:06Z |
MEMBER
| null |
Rebase and clean-up of https://github.com/pandas-dev/pandas/pull/13768
closes #9809
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15222/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15222/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15222.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15222",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15222.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15222"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15223
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15223/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15223/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15223/events
|
https://github.com/pandas-dev/pandas/pull/15223
| 203,073,815 |
MDExOlB1bGxSZXF1ZXN0MTAzMDk4MDYw
| 15,223 |
CLN: remove deprecated google-analytics module (GH11308)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-01-25T11:09:43Z | 2017-01-25T15:43:14Z | 2017-01-25T15:43:14Z |
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/15223/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15223/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15223.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15223",
"merged_at": "2017-01-25T15:43:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15223.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15223"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15224
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15224/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15224/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15224/events
|
https://github.com/pandas-dev/pandas/pull/15224
| 203,092,560 |
MDExOlB1bGxSZXF1ZXN0MTAzMTExMjIz
| 15,224 |
ENH: support MultiIndex and tuple hashing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 10 | 2017-01-25T12:40:40Z | 2017-01-27T14:20:49Z | 2017-01-27T14:20:49Z |
CONTRIBUTOR
| null |
on top of #15216
closes #15227
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15224/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15224/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15224.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15224",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15224.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15224"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15225
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15225/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15225/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15225/events
|
https://github.com/pandas-dev/pandas/issues/15225
| 203,150,859 |
MDU6SXNzdWUyMDMxNTA4NTk=
| 15,225 |
Problem in Pandas 0.18.1 with Python 3.5
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16033418?v=4",
"events_url": "https://api.github.com/users/matiumerca/events{/privacy}",
"followers_url": "https://api.github.com/users/matiumerca/followers",
"following_url": "https://api.github.com/users/matiumerca/following{/other_user}",
"gists_url": "https://api.github.com/users/matiumerca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matiumerca",
"id": 16033418,
"login": "matiumerca",
"node_id": "MDQ6VXNlcjE2MDMzNDE4",
"organizations_url": "https://api.github.com/users/matiumerca/orgs",
"received_events_url": "https://api.github.com/users/matiumerca/received_events",
"repos_url": "https://api.github.com/users/matiumerca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matiumerca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matiumerca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matiumerca"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2 | 2017-01-25T16:26:08Z | 2017-01-25T18:54:47Z | 2017-01-25T18:54:33Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
import pandas as pd
import numpy as np
u=pd.DataFrame([np.nan]*5)
u.sum()
```
#### Problem description
It returns 0.0 but it is written in http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sum.html.
That it should (and it seems normal) return nan.
"If an entire row/column is NA, the result will be NA"
#### Expected Output
It should return nan.
#### Output of ``pd.show_versions()``
<details>
# Paste the output here pd.show_versions() here
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15225/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15225/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15226
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15226/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15226/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15226/events
|
https://github.com/pandas-dev/pandas/issues/15226
| 203,155,924 |
MDU6SXNzdWUyMDMxNTU5MjQ=
| 15,226 |
read_sql index_col does not accept tuple
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6748368?v=4",
"events_url": "https://api.github.com/users/prensing/events{/privacy}",
"followers_url": "https://api.github.com/users/prensing/followers",
"following_url": "https://api.github.com/users/prensing/following{/other_user}",
"gists_url": "https://api.github.com/users/prensing/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prensing",
"id": 6748368,
"login": "prensing",
"node_id": "MDQ6VXNlcjY3NDgzNjg=",
"organizations_url": "https://api.github.com/users/prensing/orgs",
"received_events_url": "https://api.github.com/users/prensing/received_events",
"repos_url": "https://api.github.com/users/prensing/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prensing/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prensing/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prensing"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 278,
"created_at": "2013-01-06T03:02:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)",
"due_on": "2022-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/20",
"id": 239227,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels",
"node_id": "MDk6TWlsZXN0b25lMjM5MjI3",
"number": 20,
"open_issues": 108,
"state": "open",
"title": "Someday",
"updated_at": "2021-08-08T01:48:22Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20"
}
| 1 | 2017-01-25T16:43:54Z | 2020-05-16T03:50:56Z | null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
data = pandas.read_sql_query( sql, dbConn, index_col=('StartTime',equipCol) )
```
#### Problem description
The index_col argument does not accept a Python tuple, only a list. It should handle both.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: None
pip: 9.0.1
setuptools: 32.1.0
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2014.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15226/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15226/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15227
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15227/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15227/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15227/events
|
https://github.com/pandas-dev/pandas/pull/15227
| 203,172,128 |
MDExOlB1bGxSZXF1ZXN0MTAzMTY3NzU1
| 15,227 |
Steal the algorithm used to combine hashes from tupleobject.c
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/233655?v=4",
"events_url": "https://api.github.com/users/mikegraham/events{/privacy}",
"followers_url": "https://api.github.com/users/mikegraham/followers",
"following_url": "https://api.github.com/users/mikegraham/following{/other_user}",
"gists_url": "https://api.github.com/users/mikegraham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mikegraham",
"id": 233655,
"login": "mikegraham",
"node_id": "MDQ6VXNlcjIzMzY1NQ==",
"organizations_url": "https://api.github.com/users/mikegraham/orgs",
"received_events_url": "https://api.github.com/users/mikegraham/received_events",
"repos_url": "https://api.github.com/users/mikegraham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mikegraham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikegraham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mikegraham"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2017-01-25T17:39:24Z | 2017-01-25T23:53:11Z | 2017-01-25T23:53:11Z |
CONTRIBUTOR
| null |
closes #15224
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15227/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15227/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15227.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15227",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15227.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15227"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15228
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15228/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15228/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15228/events
|
https://github.com/pandas-dev/pandas/issues/15228
| 203,210,876 |
MDU6SXNzdWUyMDMyMTA4NzY=
| 15,228 |
Inconsistent behavior of loc and iloc for MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10603885?v=4",
"events_url": "https://api.github.com/users/kordek/events{/privacy}",
"followers_url": "https://api.github.com/users/kordek/followers",
"following_url": "https://api.github.com/users/kordek/following{/other_user}",
"gists_url": "https://api.github.com/users/kordek/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kordek",
"id": 10603885,
"login": "kordek",
"node_id": "MDQ6VXNlcjEwNjAzODg1",
"organizations_url": "https://api.github.com/users/kordek/orgs",
"received_events_url": "https://api.github.com/users/kordek/received_events",
"repos_url": "https://api.github.com/users/kordek/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kordek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kordek/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kordek"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-01-25T20:17:27Z | 2017-01-25T20:22:41Z | 2017-01-25T20:22:26Z |
CONTRIBUTOR
| null |
```python
panel = pd.util.testing.makePanel(nper=2).to_frame()
panel.loc['2000-01-03']
panel.iloc[0]
```
#### Problem description
iloc returns only first row of the DataFrame, so it does not allow taking advantage of the multiple index levels.
#### Expected Output
I would expect iloc[0] to return all the elements that share the first value of the 0-level of the MultiIndex
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15228/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15228/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15229
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15229/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15229/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15229/events
|
https://github.com/pandas-dev/pandas/issues/15229
| 203,226,593 |
MDU6SXNzdWUyMDMyMjY1OTM=
| 15,229 |
ENH: string sql query passed to read_sql_query should be wrapped in sqlalchemy.text when using an sqlalchemy engine
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6108231?v=4",
"events_url": "https://api.github.com/users/haleemur/events{/privacy}",
"followers_url": "https://api.github.com/users/haleemur/followers",
"following_url": "https://api.github.com/users/haleemur/following{/other_user}",
"gists_url": "https://api.github.com/users/haleemur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/haleemur",
"id": 6108231,
"login": "haleemur",
"node_id": "MDQ6VXNlcjYxMDgyMzE=",
"organizations_url": "https://api.github.com/users/haleemur/orgs",
"received_events_url": "https://api.github.com/users/haleemur/received_events",
"repos_url": "https://api.github.com/users/haleemur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/haleemur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haleemur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/haleemur"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
open
| false | null |
[] | null | 6 | 2017-01-25T21:24:56Z | 2020-05-16T03:51:08Z | null |
CONTRIBUTOR
| null |
#### Code Sample, copy-pastable if proper database credentials are used
```python
import pandas as pd
from sqlalchemy import create_engine, text
# change the connection string as required
engine = create_engine('postgresql+psycopg2://hal@localhost/hal')
engine.execute('CREATE TABLE test_orders (id SERIAL PRIMARY KEY, customer_type VARCHAR)')
engine.execute("INSERT INTO test_orders (customer_type) VALUES ('urban'), ('urban'), ('rural')")
statement = "SELECT COUNT(*) FROM test_orders WHERE customer_type LIKE 'urban%'"
statement2 = "SELECT COUNT(*) FROM test_orders WHERE customer_type LIKE :c"
# does not work, exception shown in the expected output section
try:
df = pd.read_sql_query(statement, engine)
except Exception as e:
print(str(type(e) + ': ' + str(e))
# does not work, exception shown in the expected output section
try:
df = pd.read_sql_query(statement, engine, params={'c': 'urban%'})
except Exception as e:
print(str(e))
# works
try:
df = pd.read_sql_query(text(statement), engine)
df2 = pd.read_sql_query(text(statement), engine, params={'c': 'urban%'})
except Exception as e:
print(str(e))
```
#### Problem description
Using plain-text sql with sqlalchemy engines don't work
* if the `%` character is present in the query
* with the argument `params`.
The queries work as expected if the sql is wrapped with `sqlalchemy.text`. Also, wrapping a plain-text query with `sqlalchemy.text` should not have any effect on the output or performance of the query.
However that is not an intuitive behavior for many analysts, who don't know what sqlalchemy is or what ORMs are in general, or that different database drivers may use `%` to format parameters.
Here's a stackoverflow Q-A on the same sqlalchemy usage issue:
http://stackoverflow.com/questions/8657508/strange-sqlalchemy-error-message-typeerror-dict-object-does-not-support-inde
We can prevent this error by wrapping the plain-text sql by `text` if an sqlalchemy engine is passed as the `con` argument to the function.
Something like this:
```python
def read_sql_query(sql, con, index_col=None, coerce_float=True, params=None, parse_dates=None, chunksize=None):
if isinstance(sql, string) and isinstance(con, Engine):
sql = text(sql)
...
```
I'd be happy to submit a PR for this code change + tests & documentation updates if the maintainers agree this to be an acceptable resolution.
#### Expected Output
```
# output from the first try-except block
<class 'TypeError'>: 'dict' object does not support indexing
# output from the second try-except block
(psycopg2.ProgrammingError) syntax error at or near ":"
LINE 1: ...ELECT COUNT(*) FROM test_orders WHERE customer_type LIKE :c1
^
[SQL: 'SELECT COUNT(*) FROM test_orders WHERE customer_type LIKE :c1'] [parameters: {'c1': 'urban%'}]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_CA.UTF-8
LOCALE: en_CA.UTF-8
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 28.8.0
Cython: 0.25.2
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
httplib2: None
apiclient: None
sqlalchemy: 1.1.5
pymysql: 0.7.9.None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 5,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 5,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15229/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15229/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15230
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15230/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15230/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15230/events
|
https://github.com/pandas-dev/pandas/issues/15230
| 203,231,222 |
MDU6SXNzdWUyMDMyMzEyMjI=
| 15,230 |
API: to_series/to_frame Index methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 3 | 2017-01-25T21:44:15Z | 2017-10-09T12:17:05Z | 2017-10-09T12:17:05Z |
CONTRIBUTOR
| null |
xref https://github.com/pandas-dev/pandas/pull/15216#issuecomment-275240736
``Index.to_series()``
``MultiIndex.to_frame()``
should we harmonize? (e.g. make both available to both? for compat), leave it like this?
should also prob add the ``index=True`` kw to ``.to_series()`` for compat.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15230/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15230/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15231
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15231/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15231/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15231/events
|
https://github.com/pandas-dev/pandas/issues/15231
| 203,247,101 |
MDU6SXNzdWUyMDMyNDcxMDE=
| 15,231 |
Spurious casting to float when assigning both integers and floats
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 7 | 2017-01-25T22:54:26Z | 2021-05-08T00:40:24Z | null |
MEMBER
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [2]: df = pd.DataFrame([[1,2],[3,4]], columns=['a', 'b'])
In [3]: df.loc[2] = pd.Series({'a' : 5, 'b' : 6})
In [4]: df.dtypes # right!
Out[4]:
a int64
b int64
dtype: object
In [5]: df.loc[3] = pd.Series({'a' : 7})
In [6]: df.dtypes
Out[6]:
a float64
b float64
dtype: object
```
#### Problem description
Column __a__ should not be casted to float, since at no time it is assumed to contain null values.
#### Expected Output
```
In [6]: df.dtypes
Out[6]:
a int64
b float64
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.7.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.19.0+376.gdc40058.dirty
nose: 1.3.7
pip: 8.1.2
setuptools: 28.0.0
Cython: 0.23.4
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.8.0.dev0+f80669e
xarray: None
IPython: 5.1.0.dev
sphinx: 1.4.8
patsy: 0.3.0-dev
dateutil: 2.5.3
pytz: 2015.7
blosc: None
bottleneck: 1.2.0.dev
tables: 3.2.2
numexpr: 2.6.0
feather: None
matplotlib: 2.0.0rc2
openpyxl: None
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: None
bs4: 4.5.1
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.2
sqlalchemy: 1.0.15
pymysql: None
psycopg2: None
jinja2: 2.8
s3fs: None
pandas_datareader: 0.2.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15231/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15231/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15232
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15232/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15232/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15232/events
|
https://github.com/pandas-dev/pandas/pull/15232
| 203,260,637 |
MDExOlB1bGxSZXF1ZXN0MTAzMjMxNzM3
| 15,232 |
BUG/API: Return a Series from DataFrame.asof with no match
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-26T00:12:31Z | 2017-01-26T12:37:55Z | 2017-01-26T12:37:53Z |
CONTRIBUTOR
| null |
- [x] closes #15118
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Technically this is an API change, but more of a bug so didn't think there was a need to warn / deprecate?
Also there seems to be room to clean up the whole `asof` implementation, xref #10343, but wanted to keep that separate
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15232/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15232/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15232.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15232",
"merged_at": "2017-01-26T12:37:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15232.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15232"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15233
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15233/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15233/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15233/events
|
https://github.com/pandas-dev/pandas/pull/15233
| 203,261,984 |
MDExOlB1bGxSZXF1ZXN0MTAzMjMyNzAz
| 15,233 |
TST: incorrect locale specification for datetime format
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2017-01-26T00:21:58Z | 2017-01-26T02:31:04Z | 2017-01-26T02:31:04Z |
CONTRIBUTOR
| null |
closes #15215
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15233/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15233/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15233.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15233",
"merged_at": "2017-01-26T02:31:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15233.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15233"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15234
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15234/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15234/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15234/events
|
https://github.com/pandas-dev/pandas/issues/15234
| 203,293,081 |
MDU6SXNzdWUyMDMyOTMwODE=
| 15,234 |
BUG: groupby.count fails on windows with large categorical index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3699983?v=4",
"events_url": "https://api.github.com/users/david-hoffman/events{/privacy}",
"followers_url": "https://api.github.com/users/david-hoffman/followers",
"following_url": "https://api.github.com/users/david-hoffman/following{/other_user}",
"gists_url": "https://api.github.com/users/david-hoffman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/david-hoffman",
"id": 3699983,
"login": "david-hoffman",
"node_id": "MDQ6VXNlcjM2OTk5ODM=",
"organizations_url": "https://api.github.com/users/david-hoffman/orgs",
"received_events_url": "https://api.github.com/users/david-hoffman/received_events",
"repos_url": "https://api.github.com/users/david-hoffman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/david-hoffman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-hoffman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/david-hoffman"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 6 | 2017-01-26T05:01:56Z | 2017-02-01T20:45:37Z | 2017-02-01T20:45:37Z |
CONTRIBUTOR
| null |
#### Problem description
On windows machines the native `int` is `int32` which causes an overflow error in `cartesian_product` in `tools.util`. The problem line is `lenX = np.fromiter((len(x) for x in X), dtype=int)`
```python
def cartesian_product(X):
"""
Numpy version of itertools.product or pandas.compat.product.
Sometimes faster (for large inputs)...
Parameters
----------
X : list-like of list-likes
Returns
-------
product : list of ndarrays
Examples
--------
>>> cartesian_product([list('ABC'), [1, 2]])
[array(['A', 'A', 'B', 'B', 'C', 'C'], dtype='|S1'),
array([1, 2, 1, 2, 1, 2])]
See also
--------
itertools.product : Cartesian product of input iterables. Equivalent to
nested for-loops.
pandas.compat.product : An alias for itertools.product.
"""
msg = "Input must be a list-like of list-likes"
if not is_list_like(X):
raise TypeError(msg)
for x in X:
if not is_list_like(x):
raise TypeError(msg)
if len(X) == 0:
return []
lenX = np.fromiter((len(x) for x in X), dtype=int) <----- HERE
cumprodX = np.cumproduct(lenX)
a = np.roll(cumprodX, 1)
a[0] = 1
if cumprodX[-1] != 0:
b = cumprodX[-1] / cumprodX
else:
# if any factor is empty, the cartesian product is empty
b = np.zeros_like(cumprodX)
return [np.tile(np.repeat(np.asarray(com._values_from_object(x)), b[i]),
np.product(a[i]))
for i, x in enumerate(X)]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.5
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15234/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15234/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15235
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15235/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15235/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15235/events
|
https://github.com/pandas-dev/pandas/pull/15235
| 203,314,796 |
MDExOlB1bGxSZXF1ZXN0MTAzMjY3MzQ4
| 15,235 |
Make Series.map() documentation a bit more verbose
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31315?v=4",
"events_url": "https://api.github.com/users/manuels/events{/privacy}",
"followers_url": "https://api.github.com/users/manuels/followers",
"following_url": "https://api.github.com/users/manuels/following{/other_user}",
"gists_url": "https://api.github.com/users/manuels/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/manuels",
"id": 31315,
"login": "manuels",
"node_id": "MDQ6VXNlcjMxMzE1",
"organizations_url": "https://api.github.com/users/manuels/orgs",
"received_events_url": "https://api.github.com/users/manuels/received_events",
"repos_url": "https://api.github.com/users/manuels/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/manuels/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/manuels/subscriptions",
"type": "User",
"url": "https://api.github.com/users/manuels"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-26T08:23:51Z | 2017-03-02T23:27:32Z | 2017-03-02T23:27:31Z |
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/15235/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15235/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15235.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15235",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15235.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15235"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15236
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15236/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15236/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15236/events
|
https://github.com/pandas-dev/pandas/issues/15236
| 203,356,292 |
MDU6SXNzdWUyMDMzNTYyOTI=
| 15,236 |
pandas.io.gbq.to_gbq creates duplicate rows, pandas==0.19.2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10629543?v=4",
"events_url": "https://api.github.com/users/existeundelta/events{/privacy}",
"followers_url": "https://api.github.com/users/existeundelta/followers",
"following_url": "https://api.github.com/users/existeundelta/following{/other_user}",
"gists_url": "https://api.github.com/users/existeundelta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/existeundelta",
"id": 10629543,
"login": "existeundelta",
"node_id": "MDQ6VXNlcjEwNjI5NTQz",
"organizations_url": "https://api.github.com/users/existeundelta/orgs",
"received_events_url": "https://api.github.com/users/existeundelta/received_events",
"repos_url": "https://api.github.com/users/existeundelta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/existeundelta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/existeundelta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/existeundelta"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-01-26T12:10:12Z | 2017-01-26T12:27:39Z | 2017-01-26T12:27:05Z |
NONE
| null |
```python
df.to_gbq(data, dataset, chunksize=10000, verbose=False, reauth=False, if_exists='append', private_key=private_key)
```
#### Problem description
We only insert DataFrame one time
It seems is in insert because we also see duplicates in Bigquery WebUIConsole
can be related with [https://github.com/pandas-dev/pandas/issues/5840](https://github.com/pandas-dev/pandas/issues/5840)?
<details>
pandas==0.19.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/15236/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15236/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15237
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15237/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15237/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15237/events
|
https://github.com/pandas-dev/pandas/pull/15237
| 203,377,050 |
MDExOlB1bGxSZXF1ZXN0MTAzMzEwNzc5
| 15,237 |
PERF: correctly report memory used by Index's
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-26T13:56:24Z | 2017-01-27T14:43:12Z | 2017-01-27T14:43:11Z |
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/15237/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15237/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15237",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15237"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15238
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15238/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15238/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15238/events
|
https://github.com/pandas-dev/pandas/issues/15238
| 203,407,963 |
MDU6SXNzdWUyMDM0MDc5NjM=
| 15,238 |
How to filter excel data by row?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1273014?v=4",
"events_url": "https://api.github.com/users/scheung38/events{/privacy}",
"followers_url": "https://api.github.com/users/scheung38/followers",
"following_url": "https://api.github.com/users/scheung38/following{/other_user}",
"gists_url": "https://api.github.com/users/scheung38/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scheung38",
"id": 1273014,
"login": "scheung38",
"node_id": "MDQ6VXNlcjEyNzMwMTQ=",
"organizations_url": "https://api.github.com/users/scheung38/orgs",
"received_events_url": "https://api.github.com/users/scheung38/received_events",
"repos_url": "https://api.github.com/users/scheung38/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scheung38/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scheung38/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scheung38"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2017-01-26T15:56:04Z | 2017-01-27T09:18:12Z | 2017-01-26T15:59:34Z |
NONE
| null |
How to filter excel data by row? Say my data is
```
for f in glob.glob('/Users/seb/PycharmProjects/data-transform/data/[I..O]*.xlsx'):
df = pd.read_excel(f)
all_data = all_data.append(df, ignore_index=True)
print(all_data.describe())
print(all_data.head())
```
But not sure how to filter for rows with certain string, so that input:
```
Date Time Variable value
08/01/2017 06:00:05 Occupancy_T4CHK_zoneA_1_Live 83
08/01/2017 06:00:05 Occupancy_T4CHK_totalConcourse_1_Live 510
08/01/2017 06:00:05 ProjQueueTime_T4CHK_zoneA_1_Live 919.048
08/01/2017 06:00:05 Flow_T4CHK_zoneA_1_Live 0
08/01/2017 06:00:05 ExpQueueTime_T4CHK_zoneA_1_Live 357.688
08/01/2017 06:00:05 Flow_T4CHK_zoneB_1_Live 0
08/01/2017 06:00:05 ProjQueueTime_T4CHK_zoneC_1_Live 114.911
08/01/2017 06:00:05 Flow_T4CHK_zoneC_1_Live 0
08/01/2017 06:00:05 ExpQueueTime_T4CHK_zoneC_1_Live 355.909
08/01/2017 06:00:05 Flow_T4CHK_zoneD_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneE_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneF_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneG_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneH_1_Live 0
```
produces output is
```
08/01/2017 06:00:05 Flow_T4CHK_zoneD_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneE_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneF_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneG_1_Live 0
08/01/2017 06:00:05 Flow_T4CHK_zoneH_1_Live 0
08/01/2017 06:00:10 Flow_T4CHK_zoneD_1_Live 0
08/01/2017 06:00:10 Flow_T4CHK_zoneE_1_Live 0
08/01/2017 06:00:10 Flow_T4CHK_zoneF_1_Live 0
08/01/2017 06:00:10 Flow_T4CHK_zoneG_1_Live 0
08/01/2017 06:00:10 Flow_T4CHK_zoneH_1_Live 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/15238/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15238/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15239
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15239/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15239/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15239/events
|
https://github.com/pandas-dev/pandas/issues/15239
| 203,559,003 |
MDU6SXNzdWUyMDM1NTkwMDM=
| 15,239 |
Inconsistent treatment of categories in multi-level unstack
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16606323?v=4",
"events_url": "https://api.github.com/users/Kevin-McIsaac/events{/privacy}",
"followers_url": "https://api.github.com/users/Kevin-McIsaac/followers",
"following_url": "https://api.github.com/users/Kevin-McIsaac/following{/other_user}",
"gists_url": "https://api.github.com/users/Kevin-McIsaac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kevin-McIsaac",
"id": 16606323,
"login": "Kevin-McIsaac",
"node_id": "MDQ6VXNlcjE2NjA2MzIz",
"organizations_url": "https://api.github.com/users/Kevin-McIsaac/orgs",
"received_events_url": "https://api.github.com/users/Kevin-McIsaac/received_events",
"repos_url": "https://api.github.com/users/Kevin-McIsaac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kevin-McIsaac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kevin-McIsaac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kevin-McIsaac"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 8 | 2017-01-27T05:06:29Z | 2021-05-19T12:53:59Z | 2021-05-19T12:53:58Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'Date': pd.date_range(start='2016/1/1', periods=3, freq='W'),
'Station':['Kings Cross', 'Sydney', 'Newtown'],
'Hours': ["1PM", "2PM", "3PM"],
'Exit':[10, 30, 50], 'Entry':[0, 60, 20]})
df.Station = df.Station.astype('category')
df.Hours = df.Hours.astype('category')
df1= (df.set_index(['Date','Hours', 'Station'])[['Entry', 'Exit']].
unstack(['Hours', 'Station']).
stack(['Hours', 'Station'], dropna=False).
reset_index())
print(df1.info())
assert df.Hours.dtype == df1.Hours.dtype, "Hours dtype has changed"
assert df.Station.dtype == df1.Station.dtype, "Station dtype has changed"
```
#### Problem description
Hours and Station are categories. After the stack/unstack Hours remains a category but Station becomes an object.
If I switch the order of the Station and Hours in unstack the Station remains categorical and Hours becomes an object.
#### Expected Output
Hours and Station both remain categorical (prefered) or both become the underlying type of.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.41-36.55.amzn1.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.4
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15239/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15239/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15240
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15240/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15240/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15240/events
|
https://github.com/pandas-dev/pandas/issues/15240
| 203,559,813 |
MDU6SXNzdWUyMDM1NTk4MTM=
| 15,240 |
Timestamp.replace raises ValueError instead of TypeError when given wrong argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4",
"events_url": "https://api.github.com/users/sdementen/events{/privacy}",
"followers_url": "https://api.github.com/users/sdementen/followers",
"following_url": "https://api.github.com/users/sdementen/following{/other_user}",
"gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sdementen",
"id": 1304950,
"login": "sdementen",
"node_id": "MDQ6VXNlcjEzMDQ5NTA=",
"organizations_url": "https://api.github.com/users/sdementen/orgs",
"received_events_url": "https://api.github.com/users/sdementen/received_events",
"repos_url": "https://api.github.com/users/sdementen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sdementen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sdementen"
}
|
[
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2017-01-27T05:15:45Z | 2017-01-28T18:29:12Z | 2017-01-28T18:29:11Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
from pandas import Timestamp
Timestamp("2012").replace(apple=3)
```
#### Problem description
The reimplementation of Timestamp.replace (https://github.com/pandas-dev/pandas/commit/f8bd08e9c2fc6365980f41b846bbae4b40f08b83#diff-05de2950b2c86c9828531957e02d1b87L662) raises a ValueError when a keyword argument does not exist.
Previous implementation used datetime.replace that raises a TypeError when an argument is not valid.
This is a regression and it is probably better to keep API compatibility with the datetime.replace function (modulo extra functionalities).
For autodocumentation/autocomplete purposes, it could also be useful to have explicitly in the function signature the keywords, so instead of::
` def replace(self, **kwds):
`
have::
` def replace(self, year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=None)
`
#### Actual Output
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas\tslib.pyx", line 715, in pandas.tslib.Timestamp.replace (pandas\tslib.c:14832)
ValueError: invalid name apple passed
#### Expected Output
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas\tslib.pyx", line 715, in pandas.tslib.Timestamp.replace (pandas\tslib.c:14832)
TypeError: 'apple' is an invalid keyword argument for this function
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.11.3
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.2
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15240/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15240/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15241
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15241/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15241/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15241/events
|
https://github.com/pandas-dev/pandas/issues/15241
| 203,668,432 |
MDU6SXNzdWUyMDM2Njg0MzI=
| 15,241 |
API cleanup: Remove global duplicates of DataFrame methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21648?v=4",
"events_url": "https://api.github.com/users/jondo/events{/privacy}",
"followers_url": "https://api.github.com/users/jondo/followers",
"following_url": "https://api.github.com/users/jondo/following{/other_user}",
"gists_url": "https://api.github.com/users/jondo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jondo",
"id": 21648,
"login": "jondo",
"node_id": "MDQ6VXNlcjIxNjQ4",
"organizations_url": "https://api.github.com/users/jondo/orgs",
"received_events_url": "https://api.github.com/users/jondo/received_events",
"repos_url": "https://api.github.com/users/jondo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jondo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jondo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jondo"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] | null | 4 | 2017-01-27T15:48:10Z | 2017-01-28T23:17:21Z | 2017-01-27T15:53:00Z |
NONE
| null |
In the currently online pandas 0.19.2 documentation, I see the following inconsistency:
* There is [pandas.DataFrame.pivot_table](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.pivot_table.html), but also [pandas.pivot_table](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html).
* In the same way, there is [pandas.DataFrame.pivot](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.pivot.html) and also [pandas.pivot](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot.html). (BTW., the latter has the dataframe argument missing.)
* There is [pandas.melt](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.melt.html), but no pandas.DataFrame.melt.
The global versions of these methods (and probably others) are identical to the local ones except for an additional DataFrame argument, I think that all these should only be DataFrame methods. This would e.g. consistently enable chaining.
So let me suggest that the global versions should be removed, of course after a deprecation period.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15241/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15241/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15242
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15242/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15242/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15242/events
|
https://github.com/pandas-dev/pandas/pull/15242
| 203,702,047 |
MDExOlB1bGxSZXF1ZXN0MTAzNTM5MTU3
| 15,242 |
ENH:read_html() handles tables with multiple header rows #13434
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6272482?v=4",
"events_url": "https://api.github.com/users/brianhuey/events{/privacy}",
"followers_url": "https://api.github.com/users/brianhuey/followers",
"following_url": "https://api.github.com/users/brianhuey/following{/other_user}",
"gists_url": "https://api.github.com/users/brianhuey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brianhuey",
"id": 6272482,
"login": "brianhuey",
"node_id": "MDQ6VXNlcjYyNzI0ODI=",
"organizations_url": "https://api.github.com/users/brianhuey/orgs",
"received_events_url": "https://api.github.com/users/brianhuey/received_events",
"repos_url": "https://api.github.com/users/brianhuey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brianhuey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brianhuey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brianhuey"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 29 | 2017-01-27T18:08:49Z | 2017-03-29T23:35:08Z | 2017-03-29T23:28:23Z |
CONTRIBUTOR
| null |
- [x] closes #13434
- [x] 2 tests added / passed
- [x] Multiple tr rows within a thead are now parsed, creating a multiindex header.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15242/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15242/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15242.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15242",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15242.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15242"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15243
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15243/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15243/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15243/events
|
https://github.com/pandas-dev/pandas/issues/15243
| 203,710,446 |
MDU6SXNzdWUyMDM3MTA0NDY=
| 15,243 |
PERF: benchmark seems to be hanging
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-01-27T18:48:23Z | 2017-02-04T23:30:09Z | 2017-02-04T23:30:09Z |
CONTRIBUTOR
| null |
this seems to hang on 0.19.2 / master (didn't test anything else)
```
((pandas) bash-3.2$ asv continuous v0.19.2 master --bench FrameConstructorDT
· Creating environments
· Discovering benchmarks
·· Uninstalling from conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt.
·· Installing into conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt.
· Running 2 total benchmarks (2 commits * 1 environments * 1 benchmarks)
[ 0.00%] · For pandas commit hash 3853fe6d:
[ 0.00%] ·· Building for conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt...
[ 0.00%] ·· Benchmarking conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 50.00%] ··· Running frame_ctor.FrameConstructorDTIndexFromOffsets.time_frame_ctor
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15243/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15243/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15244
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15244/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15244/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15244/events
|
https://github.com/pandas-dev/pandas/issues/15244
| 203,713,292 |
MDU6SXNzdWUyMDM3MTMyOTI=
| 15,244 |
DOC: groupby aligns Series when passed as groupands
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2783717?v=4",
"events_url": "https://api.github.com/users/jcrist/events{/privacy}",
"followers_url": "https://api.github.com/users/jcrist/followers",
"following_url": "https://api.github.com/users/jcrist/following{/other_user}",
"gists_url": "https://api.github.com/users/jcrist/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcrist",
"id": 2783717,
"login": "jcrist",
"node_id": "MDQ6VXNlcjI3ODM3MTc=",
"organizations_url": "https://api.github.com/users/jcrist/orgs",
"received_events_url": "https://api.github.com/users/jcrist/received_events",
"repos_url": "https://api.github.com/users/jcrist/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcrist/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcrist/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcrist"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 9 | 2017-01-27T19:01:08Z | 2017-03-23T19:10:26Z | 2017-03-23T19:10:26Z |
CONTRIBUTOR
| null |
xref #15338
Calling groupby with an unaligned index on the same frame in multiple threads can result in incorrect results. The following example demonstrates:
```python
import numpy as np
import pandas as pd
from multiprocessing.pool import ThreadPool
def build_frame(N, seed):
rs = np.random.RandomState(seed)
amounts = rs.exponential(0.1, N) * 100
ids = np.random.randint(0, 500, N)
df = pd.DataFrame({'amount': amounts, 'id': ids})
# XXX: call groupby once before makes everything pass. Note that the
# pre-filter by amount is necessary, without it things still fail.
#df[df.amount < 0].groupby(df.id)
return df
def f(x):
return x[x.amount < 20].groupby(x.id).amount.count()
N = 100000
NTHREADS = 8
SEED = 100
df = build_frame(N, SEED)
pool = ThreadPool(NTHREADS)
args = [df] * NTHREADS * 2
r1 = pool.map(f, args)
r2 = pool.map(f, args)
# Print out lengths, which don't always match
print([len(i) for i in r1])
print([len(i) for i in r2])
# Check that results are equivalent
matches = [a.equals(b) for (a, b) in zip(r1, r2)]
assert all(matches)
```
On my machine, running `python test.py` results in:
```
[45, 471, 500, 429, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500]
[500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500]
Traceback (most recent call last):
File "test.py", line 38, in <module>
assert all(matches)
AssertionError
```
A few notes:
- Calling groupby once beforehand fixes everything. (see comment in `build_frame`). To me this indicates that the groupby call sets up some state (that's cached) that may not be threadsafe. Also, the second call to `pool.map` always returns correct results, only the first calls fail.
- Doing this without threading results in the same answer every time.
- Without filtering by amount, the result is also always correct.
Tested with pandas master, as well as pandas 0.19.0 and up.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15244/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15244/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15245
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15245/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15245/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15245/events
|
https://github.com/pandas-dev/pandas/pull/15245
| 203,719,564 |
MDExOlB1bGxSZXF1ZXN0MTAzNTUxNzUw
| 15,245 |
PERF: high memory in MI
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 14 | 2017-01-27T19:29:36Z | 2017-03-02T17:18:51Z | 2017-02-15T15:25:57Z |
CONTRIBUTOR
| null |
closes #13904
Creates an efficient MultiIndexHashTable in cython. This allows us to efficiently store a multi-index for fast indexing (``.get_loc()`` and ``.get_indexer()`), with the current tuple-based (and gil holding) use of the PyObject Hash Table.
This uses the ``pandas.tools.hashing`` routines to hash each of the 'values' of a MI to a single uint64.
So this makes MI more memory friendly and much more efficient. You get these speedups, because the creation of the hashtable is now much more efficient.
```
before after ratio
[48fc9d61] [f47131ce]
- 871.05ms 423.93ms 0.49 reindex.Reindexing.time_reindex_multiindex
- 230.31ms 72.51ms 0.31 indexing.MultiIndexing.time_is_monotonic
- 747.11ms 199.49ms 0.27 indexing.MultiIndexing.time_multiindex_get_indexer
SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY.
```
This doesn't quite close the above issue yet. Still working on getting rid of all/most of the actual instantiation of array-of-tuples. but that's the next stage.
|
{
"+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/15245/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15245/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15245.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15245",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15245.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15245"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15246
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15246/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15246/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15246/events
|
https://github.com/pandas-dev/pandas/issues/15246
| 203,738,279 |
MDU6SXNzdWUyMDM3MzgyNzk=
| 15,246 |
Length/size of datetime groups cast as datetimes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9929982?v=4",
"events_url": "https://api.github.com/users/nbonnotte/events{/privacy}",
"followers_url": "https://api.github.com/users/nbonnotte/followers",
"following_url": "https://api.github.com/users/nbonnotte/following{/other_user}",
"gists_url": "https://api.github.com/users/nbonnotte/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nbonnotte",
"id": 9929982,
"login": "nbonnotte",
"node_id": "MDQ6VXNlcjk5Mjk5ODI=",
"organizations_url": "https://api.github.com/users/nbonnotte/orgs",
"received_events_url": "https://api.github.com/users/nbonnotte/received_events",
"repos_url": "https://api.github.com/users/nbonnotte/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nbonnotte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nbonnotte/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nbonnotte"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-01-27T20:56:52Z | 2017-01-27T20:59:38Z | 2017-01-27T20:59:22Z |
CONTRIBUTOR
| null |
```
In [7]: pandas.Series([datetime.datetime.utcnow()]*4).groupby([1, 1, 2, 2]).agg('size')
Out[7]:
1 2
2 2
dtype: int64
In [8]: pandas.Series([datetime.datetime.utcnow()]*4).groupby([1, 1, 2, 2]).agg(len)
Out[8]:
1 1970-01-01 00:00:00.000000002
2 1970-01-01 00:00:00.000000002
dtype: datetime64[ns]
In [9]: pandas.Series([datetime.datetime.utcnow()]*4).groupby([1, 1, 2, 2]).agg(numpy.size)
Out[9]:
1 1970-01-01 00:00:00.000000002
2 1970-01-01 00:00:00.000000002
dtype: datetime64[ns]
```
#### Output of ``pd.show_versions()``
<details>
commit: 3853fe6d2b884f186b93933ef53ff5e475c2d80c
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0+395.g3853fe6
nose: 1.3.7
pip: 8.1.2
setuptools: 22.0.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: 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/15246/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15246/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15247
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15247/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15247/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15247/events
|
https://github.com/pandas-dev/pandas/issues/15247
| 203,740,737 |
MDU6SXNzdWUyMDM3NDA3Mzc=
| 15,247 |
DataFrame slice of dtype np.float64 returns all zeros when using .loc for row/column selection
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7599879?v=4",
"events_url": "https://api.github.com/users/themantalope/events{/privacy}",
"followers_url": "https://api.github.com/users/themantalope/followers",
"following_url": "https://api.github.com/users/themantalope/following{/other_user}",
"gists_url": "https://api.github.com/users/themantalope/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/themantalope",
"id": 7599879,
"login": "themantalope",
"node_id": "MDQ6VXNlcjc1OTk4Nzk=",
"organizations_url": "https://api.github.com/users/themantalope/orgs",
"received_events_url": "https://api.github.com/users/themantalope/received_events",
"repos_url": "https://api.github.com/users/themantalope/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/themantalope/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/themantalope/subscriptions",
"type": "User",
"url": "https://api.github.com/users/themantalope"
}
|
[] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2 | 2017-01-27T21:09:08Z | 2017-01-29T09:52:54Z | 2017-01-28T22:16:19Z |
NONE
| null |
Hi all,
I noticed this bug today when I was trying to cast a large table (~56,000 rows by 8500 columns) from `np.float64` to `np.float32`. Since not **every** column in the table is made of `float.64`s I first selected columns that were.
#### Code Sample, a copy-pastable example if possible
```python
float_cols = curtable.dtypes[curtable.dtypes=="float64"]
```
The output then looked something like this:
```python
float_cols
['GTEX-1117F-0426-SM-5EGHI',
'GTEX-1117F-0626-SM-5N9CS',
'GTEX-1117F-0726-SM-5GIEN',
'GTEX-1117F-1326-SM-5EGHH',
'GTEX-1117F-2426-SM-5EGGH',
'GTEX-1117F-2526-SM-5GZY6',
'GTEX-1117F-2826-SM-5GZXL',
'GTEX-1117F-2926-SM-5GZYI',
'GTEX-1117F-3026-SM-5GZYU',
'GTEX-1117F-3226-SM-5N9CT',
'GTEX-111CU-0126-SM-5GZWZ',
'GTEX-111CU-0226-SM-5GZXC',
'GTEX-111CU-0326-SM-5GZXO',
'GTEX-111CU-0526-SM-5EGHK',
'GTEX-111CU-0626-SM-5EGHL',
'GTEX-111CU-0726-SM-5GZYD',
'GTEX-111CU-0826-SM-5EGIJ',
'GTEX-111CU-0926-SM-5EGIK',
'GTEX-111CU-1026-SM-5EGIL',
'GTEX-111CU-1126-SM-5EGIM',
'GTEX-111CU-1226-SM-5EGIN',
'GTEX-111CU-1326-SM-5NQ8L',
'GTEX-111CU-1426-SM-5GZYP',
'GTEX-111CU-1526-SM-5N9FS',
'GTEX-111CU-1726-SM-5EGHM',
'GTEX-111CU-1826-SM-5GZYN',
'GTEX-111CU-1926-SM-5GZYZ',
'GTEX-111CU-2026-SM-5GZZC',
'GTEX-111CU-2226-SM-5N9G5',
'GTEX-111FC-0126-SM-5N9DL',
'GTEX-111FC-0226-SM-5N9B8',
'GTEX-111FC-0326-SM-5GZZ1',
'GTEX-111FC-0426-SM-5N9CV',
'GTEX-111FC-0526-SM-5GZZ8',
'GTEX-111FC-0626-SM-5N9CU',
'GTEX-111FC-0826-SM-5GZWO',
'GTEX-111FC-1026-SM-5GZX1',
'GTEX-111FC-1126-SM-5GZWU',
'GTEX-111FC-1926-SM-5GZYC',
'GTEX-111FC-2026-SM-5GZYO',
'GTEX-111FC-2926-SM-5GZY7',
'GTEX-111FC-3126-SM-5GZZ2',
'GTEX-111FC-3326-SM-5GZYV',
'GTEX-111VG-0008-SM-5Q5BG',
'GTEX-111VG-0326-SM-5GZX7',
'GTEX-111VG-0526-SM-5N9BW',
'GTEX-111VG-0726-SM-5GIDC',
'GTEX-111VG-1626-SM-5EGIO',
'GTEX-111VG-1926-SM-5GIDO',
'GTEX-111VG-2226-SM-5N9DU',
'GTEX-111VG-2326-SM-5N9BK',
'GTEX-111VG-2426-SM-5GZXD',
'GTEX-111VG-2526-SM-5GZXP',
'GTEX-111VG-2626-SM-5GZY2',
'GTEX-111YS-0006-SM-5NQBE',
'GTEX-111YS-0008-SM-5Q5BH',
'GTEX-111YS-0126-SM-5987T',
'GTEX-111YS-0326-SM-5GZZ3',
'GTEX-111YS-0426-SM-5987O',
'GTEX-111YS-0526-SM-5GZXJ',
'GTEX-111YS-0626-SM-5GZXV',
'GTEX-111YS-0726-SM-5GZY8',
'GTEX-111YS-0826-SM-5GZYK',
'GTEX-111YS-0926-SM-5EGGI',
'GTEX-111YS-1026-SM-5GZYE',
'GTEX-111YS-1126-SM-5GZYQ',
'GTEX-111YS-1226-SM-5EGGJ',
'GTEX-111YS-1326-SM-5EGGK',
'GTEX-111YS-1426-SM-5GID8',
'GTEX-111YS-1526-SM-5GZYW',
'GTEX-111YS-1626-SM-5GZZ9',
'GTEX-111YS-1726-SM-5GIED',
'GTEX-111YS-1826-SM-5GIEP',
'GTEX-111YS-1926-SM-5GICC',
'GTEX-111YS-2026-SM-5EGGL',
'GTEX-111YS-2126-SM-5EGGM',
'GTEX-111YS-2226-SM-5987P',
'GTEX-111YS-2326-SM-5987L',
'GTEX-111YS-2426-SM-5GZZQ',
'GTEX-1122O-0003-SM-5Q5DL',
'GTEX-1122O-0005-SM-5O99J',
'GTEX-1122O-0008-SM-5QGR2',
'GTEX-1122O-0126-SM-5GICA',
'GTEX-1122O-0226-SM-5N9DA',
'GTEX-1122O-0326-SM-5H124',
'GTEX-1122O-0426-SM-5H12G',
'GTEX-1122O-0526-SM-5N9DM',
'GTEX-1122O-0626-SM-5N9B9',
'GTEX-1122O-0726-SM-5GIEV',
'GTEX-1122O-0826-SM-5GICV',
'GTEX-1122O-0926-SM-5N9C9',
'GTEX-1122O-1126-SM-5NQ8X',
'GTEX-1122O-1226-SM-5H113',
'GTEX-1122O-1326-SM-5H11F',
'GTEX-1122O-1426-SM-5H11R',
'GTEX-1122O-1526-SM-5N9CL',
'GTEX-1122O-1626-SM-5N9CX',
'GTEX-1122O-1726-SM-5GICM',
'GTEX-1122O-1826-SM-5EGIP',
'GTEX-1122O-1926-SM-5EGIQ',
'GTEX-1122O-2026-SM-5NQ91',
'GTEX-1122O-2126-SM-5EGIR',
'GTEX-1122O-2426-SM-5GIDN',
'GTEX-1128S-0005-SM-5P9HI',
'GTEX-1128S-0008-SM-5Q5DP',
'GTEX-1128S-0126-SM-5H12S',
'GTEX-1128S-0326-SM-5GZZF',
'GTEX-1128S-0726-SM-5N9D6',
'GTEX-1128S-0826-SM-5GZZI',
'GTEX-1128S-0926-SM-5GZZU',
'GTEX-1128S-1626-SM-5H12O',
'GTEX-1128S-2126-SM-5H12U',
'GTEX-1128S-2326-SM-5GZZY',
'GTEX-1128S-2426-SM-5H11B',
'GTEX-1128S-2526-SM-5H11N',
'GTEX-1128S-2726-SM-5H12C',
'GTEX-1128S-2826-SM-5N9DI',
'GTEX-113IC-0006-SM-5NQ9C',
'GTEX-113IC-0008-SM-5QGRF',
'GTEX-113IC-0226-SM-5HL5C',
'GTEX-113IC-0426-SM-5HL5O',
'GTEX-113IC-0526-SM-5HL76',
'GTEX-113JC-0006-SM-5O997',
'GTEX-113JC-0008-SM-5QGR6',
'GTEX-113JC-0126-SM-5EGJW',
'GTEX-113JC-0726-SM-5GZZR',
'GTEX-113JC-0926-SM-5H114',
'GTEX-113JC-1026-SM-5H117',
'GTEX-113JC-1926-SM-5N9GE',
'GTEX-113JC-2226-SM-5EGJG',
'GTEX-113JC-2326-SM-5EQ4E',
'GTEX-113JC-2726-SM-5EGIS',
'GTEX-113JC-2826-SM-5EGIT',
'GTEX-117XS-0005-SM-5PNU6',
'GTEX-117XS-0008-SM-5Q5DQ',
'GTEX-117XS-0426-SM-5GZZN',
'GTEX-117XS-0526-SM-5987Q',
'GTEX-117XS-0726-SM-5H131',
'GTEX-117XS-1926-SM-5GICO',
'GTEX-117XS-2026-SM-5GID1',
'GTEX-117XS-2226-SM-5GIE1',
'GTEX-117XS-2526-SM-5H11G',
'GTEX-117XS-2726-SM-5N9BL',
'GTEX-117XS-2926-SM-5N9BX',
'GTEX-117XS-3026-SM-5N9CA',
'GTEX-117XS-3126-SM-5GIDP',
'GTEX-117YW-0005-SM-5NQ8Z',
'GTEX-117YW-0008-SM-5QGRD',
'GTEX-117YW-0126-SM-5EGGN',
'GTEX-117YW-0226-SM-5N9CM',
'GTEX-117YW-0326-SM-5N9CY',
'GTEX-117YW-0526-SM-5H11C',
'GTEX-117YW-0826-SM-5H11O',
'GTEX-117YW-1426-SM-5EGGO',
'GTEX-117YW-1526-SM-5EGGP',
'GTEX-117YW-1826-SM-5PNY5',
'GTEX-117YW-1926-SM-5H121',
'GTEX-117YW-2026-SM-5N9BH',
'GTEX-117YW-2226-SM-5N9DB',
'GTEX-117YW-2426-SM-5Q5AE',
'GTEX-117YW-2626-SM-5GZZH',
'GTEX-117YW-2826-SM-5H116',
'GTEX-117YX-0126-SM-5EGH5',
'GTEX-117YX-0226-SM-5EGH6',
'GTEX-117YX-0326-SM-5GICL',
'GTEX-117YX-0526-SM-5EGJH',
'GTEX-117YX-0626-SM-5EGJI',
'GTEX-117YX-0726-SM-5GIET',
'GTEX-117YX-0826-SM-5H11J',
'GTEX-117YX-1026-SM-5H11V',
'GTEX-117YX-1126-SM-5H128',
'GTEX-117YX-1226-SM-5H11S',
'GTEX-117YX-1326-SM-5H125',
'GTEX-117YX-1426-SM-5H12H',
'GTEX-117YX-1526-SM-5H12T',
'GTEX-117YX-1626-SM-5GZZG',
'GTEX-117YX-1726-SM-5GZZS',
'GTEX-117YX-1826-SM-5H12K',
'GTEX-117YX-1926-SM-5GIEC',
'GTEX-117YX-2126-SM-5GIEL',
'GTEX-117YX-2226-SM-5EGJJ',
'GTEX-117YX-2326-SM-5H12W',
'GTEX-117YX-2426-SM-5GZZJ',
'GTEX-117YX-2526-SM-5EQ4Q',
'GTEX-117YX-2626-SM-5EQ53',
'GTEX-1192W-0005-SM-5NQBQ',
'GTEX-1192W-0008-SM-5QGRE',
'GTEX-1192W-0126-SM-5EGGS',
'GTEX-1192W-0226-SM-5EGGT',
'GTEX-1192W-2626-SM-5Q5AF',
'GTEX-1192W-3026-SM-5GZZV',
'GTEX-1192X-0008-SM-5Q5B7',
'GTEX-1192X-0226-SM-5H12D',
'GTEX-1192X-0326-SM-5H11U',
'GTEX-1192X-0426-SM-5GIEE',
'GTEX-1192X-0726-SM-5987R',
'GTEX-1192X-1126-SM-5EGGU',
'GTEX-1192X-1526-SM-5H11I',
'GTEX-1192X-1826-SM-5GIE2',
...]
```
However, when I use this column list to select these rows, the returned DataFrame is all zeros:
```python
np.all(curtable.loc[:, float_cols] == 0)
True
```
But when I just use one column, seems like there is no issue.
```python
np.all(curtable.loc[:, float_cols[0]] == 0)
False
```
#### Problem description
My understanding is that the `.loc` indexer can be supplied with a list of values from the index/columns to select those cells within a table. Perhaps this is an issue when working with particularly large tables (in my case, 56000 by 8500)
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: None
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15247/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15247/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15248
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15248/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15248/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15248/events
|
https://github.com/pandas-dev/pandas/pull/15248
| 203,742,437 |
MDExOlB1bGxSZXF1ZXN0MTAzNTY4Mjk4
| 15,248 |
Timestamp replace compatibility
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4",
"events_url": "https://api.github.com/users/sdementen/events{/privacy}",
"followers_url": "https://api.github.com/users/sdementen/followers",
"following_url": "https://api.github.com/users/sdementen/following{/other_user}",
"gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sdementen",
"id": 1304950,
"login": "sdementen",
"node_id": "MDQ6VXNlcjEzMDQ5NTA=",
"organizations_url": "https://api.github.com/users/sdementen/orgs",
"received_events_url": "https://api.github.com/users/sdementen/received_events",
"repos_url": "https://api.github.com/users/sdementen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sdementen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sdementen"
}
|
[
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2017-01-27T21:17:36Z | 2017-01-28T18:57:14Z | 2017-01-28T18:29:12Z |
CONTRIBUTOR
| null |
- [x ] closes #15240
- [] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15248/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15248/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15248.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15248",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15248.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15248"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15249
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15249/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15249/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15249/events
|
https://github.com/pandas-dev/pandas/issues/15249
| 203,762,147 |
MDU6SXNzdWUyMDM3NjIxNDc=
| 15,249 |
Timestamp subtraction should work for differing timezones
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30848?v=4",
"events_url": "https://api.github.com/users/filmor/events{/privacy}",
"followers_url": "https://api.github.com/users/filmor/followers",
"following_url": "https://api.github.com/users/filmor/following{/other_user}",
"gists_url": "https://api.github.com/users/filmor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/filmor",
"id": 30848,
"login": "filmor",
"node_id": "MDQ6VXNlcjMwODQ4",
"organizations_url": "https://api.github.com/users/filmor/orgs",
"received_events_url": "https://api.github.com/users/filmor/received_events",
"repos_url": "https://api.github.com/users/filmor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/filmor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/filmor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/filmor"
}
|
[
{
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 13 | 2017-01-27T23:03:56Z | 2019-11-30T21:44:34Z | 2017-12-15T01:18:01Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```ipython
In [1]: import pandas as pd
In [2]: pd.Timestamp("2016-01-01", tz="Europe/Berlin") - pd.Timestamp("now", tz="UTC")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-691a8df26ecd> in <module>()
----> 1 pd.Timestamp("2016-01-01", tz="Europe/Berlin") - pd.Timestamp("now", tz="UTC")
pandas\tslib.pyx in pandas.tslib._Timestamp.__sub__ (pandas\tslib.c:23697)()
TypeError: Timestamp subtraction must have the same timezones or no timezones
```
#### Problem description
If *both* timestamps have a timezone specified, the result of this operation is perfectly well-defined. It's quite surprising that I have to riddle my code with `lhs.tz_convert("UTC") - rhs.tz_convert("UTC")` lines to get the difference of timestamps.
#### Expected Output
Timedelta('-393 days +06:29:07.057926')
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: 2.4.0
xlrd: None
xlwt: None
xlsxwriter: 0.9.6
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8.1
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15249/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15249/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15250
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15250/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15250/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15250/events
|
https://github.com/pandas-dev/pandas/issues/15250
| 203,766,195 |
MDU6SXNzdWUyMDM3NjYxOTU=
| 15,250 |
Pandas not working in Anaconda3 4.2. Not able to update also
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3896584?v=4",
"events_url": "https://api.github.com/users/puneethmishra/events{/privacy}",
"followers_url": "https://api.github.com/users/puneethmishra/followers",
"following_url": "https://api.github.com/users/puneethmishra/following{/other_user}",
"gists_url": "https://api.github.com/users/puneethmishra/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/puneethmishra",
"id": 3896584,
"login": "puneethmishra",
"node_id": "MDQ6VXNlcjM4OTY1ODQ=",
"organizations_url": "https://api.github.com/users/puneethmishra/orgs",
"received_events_url": "https://api.github.com/users/puneethmishra/received_events",
"repos_url": "https://api.github.com/users/puneethmishra/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/puneethmishra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/puneethmishra/subscriptions",
"type": "User",
"url": "https://api.github.com/users/puneethmishra"
}
|
[] |
closed
| false | null |
[] | null | 7 | 2017-01-27T23:32:10Z | 2017-01-28T00:18:10Z | 2017-01-27T23:43:51Z |
NONE
| null |
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-d6ac987968b6> in <module>()
----> 1 import pandas
D:\Anaconda3-4.2\lib\site-packages\pandas\__init__.py in <module>()
20
21 # numpy compat
---> 22 from pandas.compat.numpy import *
23
24 try:
D:\Anaconda3-4.2\lib\site-packages\pandas\compat\numpy\__init__.py in <module>()
4 import numpy as np
5 from distutils.version import LooseVersion
----> 6 from pandas.compat import string_types, string_and_binary_types
7
8 # turn off all numpy warnings
ImportError: cannot import name 'string_types'
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15250/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15250/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15251
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15251/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15251/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15251/events
|
https://github.com/pandas-dev/pandas/issues/15251
| 203,766,408 |
MDU6SXNzdWUyMDM3NjY0MDg=
| 15,251 |
DEPS: drop python 3.4
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 19 | 2017-01-27T23:33:49Z | 2017-09-08T14:44:33Z | 2017-05-16T00:02:13Z |
CONTRIBUTOR
| null |
{
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 1,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15251/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15251/timeline
| null | null | null |
|
https://api.github.com/repos/pandas-dev/pandas/issues/15252
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15252/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15252/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15252/events
|
https://github.com/pandas-dev/pandas/issues/15252
| 203,774,153 |
MDU6SXNzdWUyMDM3NzQxNTM=
| 15,252 |
.loc with date string and timestamp behave differently
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/898709?v=4",
"events_url": "https://api.github.com/users/KwangmooKoh/events{/privacy}",
"followers_url": "https://api.github.com/users/KwangmooKoh/followers",
"following_url": "https://api.github.com/users/KwangmooKoh/following{/other_user}",
"gists_url": "https://api.github.com/users/KwangmooKoh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KwangmooKoh",
"id": 898709,
"login": "KwangmooKoh",
"node_id": "MDQ6VXNlcjg5ODcwOQ==",
"organizations_url": "https://api.github.com/users/KwangmooKoh/orgs",
"received_events_url": "https://api.github.com/users/KwangmooKoh/received_events",
"repos_url": "https://api.github.com/users/KwangmooKoh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KwangmooKoh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KwangmooKoh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KwangmooKoh"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2 | 2017-01-28T00:40:30Z | 2020-03-31T06:03:37Z | null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> t0 = pd.Timestamp('2010-01-01')
>>> t1 = pd.Timestamp('2012-02-02')
>>> df = pd.DataFrame([1, 2, 3], index=pd.MultiIndex.from_tuples([(t0, 'A'), (t0, 'B'), (t1, 'A')]), columns=['C'])
>>> # Compare the following results:
>>> print(df.ix['2010-01-01'])
# C
# A 1
# B 2
>>> print(df.loc['2010-01-01'])
# C
# 2010-01-01 A 1
# B 2
>>> print(df.ix[t0])
# C
# A 1
# B 2
>>> print(df.loc[t0])
# C
# A 1
# B 2
```
#### Problem description
The result of `df.loc['2010-01-01']` is different from that of `df.ix['2010-01-01']` or `df.loc[pd.Timestamp('2010-01-01')]`; it contains additional index level for date. (`df.ix[]` returns the same data frame for date string and timestamp slicer.)
#### Expected Output
```
----
C
A 1
B 2
----
C
A 1
B 2
----
C
A 1
B 2
----
C
A 1
B 2
----
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2+0.g825876c.dirty
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
</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/15252/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15252/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15253
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15253/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15253/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15253/events
|
https://github.com/pandas-dev/pandas/pull/15253
| 203,784,577 |
MDExOlB1bGxSZXF1ZXN0MTAzNTk4OTE3
| 15,253 |
BUG GH15240 Timestamp.replace raised ValueError instead of TypeError.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4017555?v=4",
"events_url": "https://api.github.com/users/AlexTheProgrammer/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexTheProgrammer/followers",
"following_url": "https://api.github.com/users/AlexTheProgrammer/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexTheProgrammer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexTheProgrammer",
"id": 4017555,
"login": "AlexTheProgrammer",
"node_id": "MDQ6VXNlcjQwMTc1NTU=",
"organizations_url": "https://api.github.com/users/AlexTheProgrammer/orgs",
"received_events_url": "https://api.github.com/users/AlexTheProgrammer/received_events",
"repos_url": "https://api.github.com/users/AlexTheProgrammer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexTheProgrammer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexTheProgrammer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexTheProgrammer"
}
|
[] |
closed
| false | null |
[] | null | 2 | 2017-01-28T03:24:25Z | 2017-01-28T03:29:09Z | 2017-01-28T03:26:16Z |
NONE
| null |
- [ ] closes #15240
- [1] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry 514
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15253/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15253/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15253.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15253",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15253.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15253"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15254
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15254/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15254/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15254/events
|
https://github.com/pandas-dev/pandas/issues/15254
| 203,822,273 |
MDU6SXNzdWUyMDM4MjIyNzM=
| 15,254 |
Assigning new dataframe to cell in dataframe results in nan
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1221140?v=4",
"events_url": "https://api.github.com/users/RobertKrajewski/events{/privacy}",
"followers_url": "https://api.github.com/users/RobertKrajewski/followers",
"following_url": "https://api.github.com/users/RobertKrajewski/following{/other_user}",
"gists_url": "https://api.github.com/users/RobertKrajewski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RobertKrajewski",
"id": 1221140,
"login": "RobertKrajewski",
"node_id": "MDQ6VXNlcjEyMjExNDA=",
"organizations_url": "https://api.github.com/users/RobertKrajewski/orgs",
"received_events_url": "https://api.github.com/users/RobertKrajewski/received_events",
"repos_url": "https://api.github.com/users/RobertKrajewski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RobertKrajewski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RobertKrajewski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RobertKrajewski"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-01-28T18:19:34Z | 2018-07-06T20:21:15Z | 2017-01-28T18:30:39Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
# Create a simple nested DataFrame
d = {"id": pd.Series([0,1,2]),
"inner_df": pd.Series([pd.DataFrame(np.random.rand(4,4)) for _ in range(3)])}
outer_df = pd.DataFrame(d)
print("Old inner df in first row:")
print(outer_df.loc[0, "inner_df"])
# Now update the inner_df in the first row
new_inner_df = pd.DataFrame(np.random.rand(4, 4))
print("\n*** Results using loc ***")
outer_df.loc[0, "inner_df"] = new_inner_df
print("Expected new inner df in first row:")
print(new_inner_df)
print("Real new inner df in first row:")
print(outer_df.loc[0, "inner_df"])
print("\n*** Results using set_value ***")
outer_df.set_value(0, 'inner_df', new_inner_df)
print("Expected new inner df in first row:")
print(new_inner_df)
print("Real new inner df in first row:")
print(outer_df.loc[0, "inner_df"])
print("\n*** Results using concatenated indexing***")
outer_df["inner_df"][0] = new_inner_df
print("Expected new inner df in first row:")
print(new_inner_df)
print("Real new inner df in first row:")
print(outer_df.loc[0, "inner_df"])
```
#### Problem description
The most intuitive method using loc doesn't work if the new value is a dataframe. This leads users to use the third method using concatenated indexing, which should be avoided.
The second method using set_value is also not mentioned in the tutorials/docs on indexing. Only by luck, I found a (semi-)related stack overflow question, which hinted to try set_value.
Thus I recommend:
1. Allow assigning a DataFrame to a single cell in a DataFrame or show an error hinting on set_value
2. Mention set_value here: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
#### Expected Output
(included in script)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.4
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15254/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15254/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15255
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15255/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15255/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15255/events
|
https://github.com/pandas-dev/pandas/pull/15255
| 203,861,097 |
MDExOlB1bGxSZXF1ZXN0MTAzNjQwOTE4
| 15,255 |
TST: MultiIndex Slicing maintains first level index (#12697)
|
{
"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": "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",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2017-01-29T09:58:31Z | 2017-12-20T02:04:06Z | 2017-01-29T21:52:56Z |
MEMBER
| null |
- [x] closes #12697
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
The original issue appears to work correctly on master and doesn't seem to have been fixed by a PR from 0.20.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/15255/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15255/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15255.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15255",
"merged_at": "2017-01-29T21:52:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15255.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15255"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15256
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15256/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15256/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15256/events
|
https://github.com/pandas-dev/pandas/pull/15256
| 203,870,547 |
MDExOlB1bGxSZXF1ZXN0MTAzNjQ2MzE3
| 15,256 |
Do not cast .transform() output back to input dtype (closes #10972)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9929982?v=4",
"events_url": "https://api.github.com/users/nbonnotte/events{/privacy}",
"followers_url": "https://api.github.com/users/nbonnotte/followers",
"following_url": "https://api.github.com/users/nbonnotte/following{/other_user}",
"gists_url": "https://api.github.com/users/nbonnotte/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nbonnotte",
"id": 9929982,
"login": "nbonnotte",
"node_id": "MDQ6VXNlcjk5Mjk5ODI=",
"organizations_url": "https://api.github.com/users/nbonnotte/orgs",
"received_events_url": "https://api.github.com/users/nbonnotte/received_events",
"repos_url": "https://api.github.com/users/nbonnotte/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nbonnotte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nbonnotte/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nbonnotte"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 12 | 2017-01-29T13:45:47Z | 2017-03-03T07:56:38Z | 2017-03-02T23:19:30Z |
CONTRIBUTOR
| null |
- [x] closes #10972
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Maybe need more tests, and check performance?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15256/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15256/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15256.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15256",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15256.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15256"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15257
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15257/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15257/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15257/events
|
https://github.com/pandas-dev/pandas/pull/15257
| 203,899,178 |
MDExOlB1bGxSZXF1ZXN0MTAzNjYxNzg4
| 15,257 |
API: change default behaviour of str.match from deprecated extract to match (GH5224)
|
{
"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": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2017-01-29T21:48:52Z | 2017-03-22T18:51:12Z | 2017-03-22T18:51:11Z |
MEMBER
| null |
I just stumbled on this, and seems we didn't have this in our deprecations to do list (https://github.com/pandas-dev/pandas/issues/6581).
This PR changes the default behaviour of `str.match` from extracting groups to just a match (True/False). The previous default behaviour was deprecated since 0.13.0 (https://github.com/pandas-dev/pandas/pull/5224)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15257/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15257/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15257.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15257",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15257.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15257"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15258
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15258/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15258/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15258/events
|
https://github.com/pandas-dev/pandas/issues/15258
| 203,914,028 |
MDU6SXNzdWUyMDM5MTQwMjg=
| 15,258 |
Subclassing pandas.Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "abf98b",
"default": false,
"description": "Subclassing pandas objects",
"id": 2559562239,
"name": "Subclassing",
"node_id": "MDU6TGFiZWwyNTU5NTYyMjM5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Subclassing"
}
] |
open
| false | null |
[] | null | 3 | 2017-01-30T01:48:38Z | 2021-05-08T00:44:05Z | null |
MEMBER
| null |
@spencerkclark is working on a custom `pandas.Index` subclass for xarray (see https://github.com/pydata/xarray/issues/1084) like `pandas.DatetimeIndex` to handle arrays of `netcdftime.datetime` objects. This index is primarily intended for use with xarray, but ideally we'd like it to work in pandas `Series` and `DataFrame` objects, too.
The subclass will include implementations of at least `get_loc`, `get_slice_bound` and `get_value` (this one should probably be unnecessary, but it's needed for `pandas.Series`). To minimize fragility, it will not subclass `DatetimeIndex` but will instead copy some of the relevant code (thank you open source!).
Two questions for other pandas devs:
- Is there any fundamental reason why a custom `pandas.Index` subclass won't work on a `Series` or `DataFrame`?
- Does this seem like a reasonable thing to do, or we are setting ourselves up for suffering in the future? I'll update this issue when we have a concrete PR to look at.
At a bare minimum, we should probably add some tests to pandas to ensure that a basic subclass works.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15258/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15258/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15259
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15259/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15259/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15259/events
|
https://github.com/pandas-dev/pandas/pull/15259
| 203,916,955 |
MDExOlB1bGxSZXF1ZXN0MTAzNjcyNDM4
| 15,259 |
CLN: remove build some warnings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-01-30T02:29:10Z | 2017-01-30T14:15:10Z | 2017-01-30T14:15:10Z |
CONTRIBUTOR
| null |
CLN: from algos_rank_helper.pxi.in
CLN: and algos_groupby_helper.pxi.in
CLN: hashtable warns
CLN: parser warnings
closes #15190
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15259/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15259/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15259.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15259",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15259.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15259"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15260
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15260/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15260/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15260/events
|
https://github.com/pandas-dev/pandas/pull/15260
| 203,940,783 |
MDExOlB1bGxSZXF1ZXN0MTAzNjg3ODIx
| 15,260 |
API: Reformat output of groupby.describe (#4792)
|
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 13 | 2017-01-30T07:12:15Z | 2017-12-20T02:04:08Z | 2017-02-10T00:19:24Z |
MEMBER
| null |
- [x] closes #4792
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
Doesn't look like this was address in a PR in 0.20, but the original issue works on master.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15260/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15260/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15260.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15260",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15260.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15260"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15261
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15261/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15261/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15261/events
|
https://github.com/pandas-dev/pandas/issues/15261
| 203,977,637 |
MDU6SXNzdWUyMDM5Nzc2Mzc=
| 15,261 |
Styler.render generates unquoted attribute values, which are illegal in XHTML
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/695907?v=4",
"events_url": "https://api.github.com/users/colinmorris/events{/privacy}",
"followers_url": "https://api.github.com/users/colinmorris/followers",
"following_url": "https://api.github.com/users/colinmorris/following{/other_user}",
"gists_url": "https://api.github.com/users/colinmorris/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinmorris",
"id": 695907,
"login": "colinmorris",
"node_id": "MDQ6VXNlcjY5NTkwNw==",
"organizations_url": "https://api.github.com/users/colinmorris/orgs",
"received_events_url": "https://api.github.com/users/colinmorris/received_events",
"repos_url": "https://api.github.com/users/colinmorris/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinmorris/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinmorris/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinmorris"
}
|
[] |
closed
| false | null |
[] | null | 1 | 2017-01-30T10:51:56Z | 2017-01-30T11:40:55Z | 2017-01-30T11:40:55Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> df = pd.DataFrame([[4,5]], columns=['A', 'B'])
>>> df.style.render()[355:405]
u'<th class="col_heading level0 col0" colspan=1>\n '
```
#### Problem description
Including the generated html where valid XHTML is expected (for example, [in a Jekyll site using kramdown, the default markdown parser](http://stackoverflow.com/questions/41933713/pandas-dataframe-rendered-as-html-shows-up-weirdly-with-literal-tags-when-incl)) leads to weird behaviour.
#### Expected Output
The same thing, but with all attributes quoted, e.g. `colspan=1` => `colspan="1"`. As far as I can tell, there's no downside to always quoting attribute values.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 32
OS: Linux
OS-release: 3.13.0-107-generic
machine: i686
processor: i686
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 25.1.0
Cython: None
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 1.5.7
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.1.3
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: 0.8.0
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15261/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15261/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15262
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15262/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15262/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15262/events
|
https://github.com/pandas-dev/pandas/issues/15262
| 204,041,654 |
MDU6SXNzdWUyMDQwNDE2NTQ=
| 15,262 |
BUG in MultiIndex truncated repr with integer level names
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20791331?v=4",
"events_url": "https://api.github.com/users/KevinBaudin/events{/privacy}",
"followers_url": "https://api.github.com/users/KevinBaudin/followers",
"following_url": "https://api.github.com/users/KevinBaudin/following{/other_user}",
"gists_url": "https://api.github.com/users/KevinBaudin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KevinBaudin",
"id": 20791331,
"login": "KevinBaudin",
"node_id": "MDQ6VXNlcjIwNzkxMzMx",
"organizations_url": "https://api.github.com/users/KevinBaudin/orgs",
"received_events_url": "https://api.github.com/users/KevinBaudin/received_events",
"repos_url": "https://api.github.com/users/KevinBaudin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KevinBaudin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KevinBaudin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KevinBaudin"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 11 | 2017-01-30T15:29:29Z | 2017-02-24T20:18:20Z | 2017-02-24T20:18:20Z |
NONE
| null |
Reproducible example:
```
In [10]: df = pd.DataFrame({'col': range(9)}, index=pd.MultiIndex.from_product([['A0', 'A1', 'A2'], ['B0', 'B1', 'B2']], names=[1,2]))
In [11]: df
Out[11]:
col
1 2
A0 B0 0
B1 1
B2 2
A1 B0 3
B1 4
B2 5
A2 B0 6
B1 7
B2 8
In [12]: pd.options.display.max_rows = 4
In [13]: df
Out[13]:
col
1 2
A0 A0 0
A0 1
... ...
A2 A2 7
A2 8
[9 rows x 1 columns]
```
So the truncated repr shows incorrectly the first index level (with integer level name `1`) again for the second level.
---
Original post:
#### Code Sample, a copy-pastable example if possible
```python
import wget
import pandas
import pickle
url = 'https://www.dropbox.com/s/aldllo0bi3m3wkl/stock?dl=1'
filename = wget.download(url)
df = pickle.load(open(filename))
df
#bad display, index duplicated?
df.head()
#expected display
```
#### Problem description
<table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th></th> <th>merged</th> </tr> <tr> <th>1</th> <th>2</th> <th></th> </tr> </thead> <tbody> <tr> <th>a.</th> <th>a.</th> <td>2</td> </tr> <tr> <th>abel</th> <th>abel</th> <td>1</td> </tr> <tr> <th>agnes</th> <th>agnes</th> <td>2</td> </tr> <tr> <th rowspan="2" valign="top">alain</th> <th>alain</th> <td>8</td> </tr> <tr> <th>alain</th> <td>2</td> </tr> </tbody> </table>
I have created a multi-index based on 2 columns .
Those two columns wont appear properly, index_column "2" being duplicated from "1"
When displaying up to the 60th first rows of dataframe, it's fine, then it duplicates again the column 1 in the column 2.
#### Expected Output
<table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th></th> <th>merged</th> </tr> <tr> <th>1</th> <th>2</th> <th></th> </tr> </thead> <tbody> <tr> <th>a.</th> <th>masson-dubois</th> <td>2</td> </tr> <tr> <th>abel</th> <th>pinchard</th> <td>1</td> </tr> <tr> <th>agnes</th> <th>paquet</th> <td>2</td> </tr> <tr> <th rowspan="2" valign="top">alain</th> <th>corcia</th> <td>8</td> </tr> <tr> <th>hudelot-noellat</th> <td>2</td> </tr> </tbody></table>
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.4-moby
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: None
pip: 9.0.1
setuptools: 28.8.0
Cython: None
numpy: 1.11.2
scipy: 0.18.0
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.5.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.5.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15262/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15262/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15263
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15263/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15263/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15263/events
|
https://github.com/pandas-dev/pandas/issues/15263
| 204,046,297 |
MDU6SXNzdWUyMDQwNDYyOTc=
| 15,263 |
pandas.DataFrame.to_dict compatibility with sklearn.feature_extraction.DictVectorizer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14838729?v=4",
"events_url": "https://api.github.com/users/ryanpeach/events{/privacy}",
"followers_url": "https://api.github.com/users/ryanpeach/followers",
"following_url": "https://api.github.com/users/ryanpeach/following{/other_user}",
"gists_url": "https://api.github.com/users/ryanpeach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryanpeach",
"id": 14838729,
"login": "ryanpeach",
"node_id": "MDQ6VXNlcjE0ODM4NzI5",
"organizations_url": "https://api.github.com/users/ryanpeach/orgs",
"received_events_url": "https://api.github.com/users/ryanpeach/received_events",
"repos_url": "https://api.github.com/users/ryanpeach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryanpeach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryanpeach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryanpeach"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] | null | 4 | 2017-01-30T15:45:21Z | 2017-02-24T17:02:29Z | 2017-01-30T15:48:37Z |
NONE
| null |
#### Abstract
Currently pandas to_dict function and scikit-learn's sklearn.feature_extraction.DictVectorizer don't get along. I provide a simple script to make these compatible.
#### Description
Panda's current to_dict function returns a dictionary of the format:
`dict[column_name] <- (dict[index] <- val)`
Scikit-learn's DictVectorizer requires a list of dicts of the format:
`list[index] <- (dict[column_name] <- val)`
If pandas could provide this style of formatting as an optional parameter in the to_dict function, this issue could be easily resolved for future uses, as this is clearly an understandable indexing of a dataframe.
#### Gist Code
https://gist.github.com/ryanpeach/af3e7b217aa2fd5c98a262acce828da6
```
def pandas_to_dict(df):
""" A to_dict method for pandas DataFrames that converts frames to a format
compatible with sklearn.feature_extraction.DictVectorizer
REF: http://scikit-learn.org/stable/modules/feature_extraction.html#dict-feature-extraction
Parameters:
df: DataFrame
Returns:
out_list: list indexed by df index, containing dicts indexed by column name referencing row value.
""""
# Get Index
out_list = []
for i in range(len(df)):
index = df.iloc[i]
# Get Column
out_dict = {}
for c in df.columns:
out_dict[c] = index[c]
# Add Column to the List
out_list.append(out_dict)
return out_list
```
Use it if you'd like, I wrote it for my own use and just wanted to make the community aware.
I posted this on scikit-learn as well.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15263/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15263/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15264
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15264/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15264/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15264/events
|
https://github.com/pandas-dev/pandas/pull/15264
| 204,054,139 |
MDExOlB1bGxSZXF1ZXN0MTAzNzY2NzEy
| 15,264 |
CLN: remove build warnings from tslib.pyx, saslib.pyx, some from lib.pyx
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-01-30T16:11:53Z | 2017-01-30T23:27:01Z | 2017-01-30T17:39:51Z |
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/15264/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15264/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15264",
"merged_at": "2017-01-30T17:39:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15264"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15265
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15265/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15265/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15265/events
|
https://github.com/pandas-dev/pandas/pull/15265
| 204,092,249 |
MDExOlB1bGxSZXF1ZXN0MTAzNzkzMjQ5
| 15,265 |
Fix overflow error in cartesian_product
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3699983?v=4",
"events_url": "https://api.github.com/users/david-hoffman/events{/privacy}",
"followers_url": "https://api.github.com/users/david-hoffman/followers",
"following_url": "https://api.github.com/users/david-hoffman/following{/other_user}",
"gists_url": "https://api.github.com/users/david-hoffman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/david-hoffman",
"id": 3699983,
"login": "david-hoffman",
"node_id": "MDQ6VXNlcjM2OTk5ODM=",
"organizations_url": "https://api.github.com/users/david-hoffman/orgs",
"received_events_url": "https://api.github.com/users/david-hoffman/received_events",
"repos_url": "https://api.github.com/users/david-hoffman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/david-hoffman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-hoffman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/david-hoffman"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2017-01-30T18:32:15Z | 2017-02-01T20:46:03Z | 2017-02-01T20:45:37Z |
CONTRIBUTOR
| null |
When the numbers in `X` are large it can cause an overflow error on windows machine where the native `int` is 32 bit. Switching to np.intp alleviates this problem.
Other fixes would include switching to np.uint32 or np.uint64.
#15234
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15265/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15265/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15265.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15265",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15265.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15265"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15266
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15266/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15266/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15266/events
|
https://github.com/pandas-dev/pandas/pull/15266
| 204,100,959 |
MDExOlB1bGxSZXF1ZXN0MTAzNzk5NDcz
| 15,266 |
#14854: DatetimeIndex compiled together in test_datetime.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4",
"events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}",
"followers_url": "https://api.github.com/users/TrigonaMinima/followers",
"following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}",
"gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TrigonaMinima",
"id": 2520893,
"login": "TrigonaMinima",
"node_id": "MDQ6VXNlcjI1MjA4OTM=",
"organizations_url": "https://api.github.com/users/TrigonaMinima/orgs",
"received_events_url": "https://api.github.com/users/TrigonaMinima/received_events",
"repos_url": "https://api.github.com/users/TrigonaMinima/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TrigonaMinima"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 19 | 2017-01-30T19:08:37Z | 2017-02-08T19:43:55Z | 2017-02-03T01:15:55Z |
CONTRIBUTOR
| null |
### Partially completes #14854
Grouped all the ```DatetimeIndex``` related tests under one file - ```pandas/tests/indexes/test_datetime.py```.
### Tests reorganized
There were some tests in other classes which could be shifted to the as well. From **```pandas/pandas/tseries/tests/test_timeseries.py```**
- [test_pass_datetimeindex_to_index](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py#L326) from class ```TestTimeSeries```
- [test_datetimeindex_accessors](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py#L3972) from class ```TestDatetime64```
- [test_datetimeindex_diff](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py#L4111) from class ```TestDatetime64```
- [test_nanosecond_field](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py#L4105) from class ```TestDatetime64```
- [test_datetimeindex_constructor](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py#L4146) from class ```TestDatetime64```
1. Should these also be included in the ```test_datetime.py``` in their respective classes or let them be?
2. In **```pandas/tests/indexes/test_datetimelike.py```** there were some tests which were using the ```DatetimeLike``` class defined there. I could import that class in the ```test_datetime.py``` and transfer the whole ```TestDatetimeIndex``` but should it be done?
### Mostly passes ``git diff upstream/master | flake8 --diff``
```
./pandas/tests/indexes/test_datetime.py:1121:5: F811 redefinition of unused 'test_intersection' from line 572
./pandas/tests/indexes/test_datetime.py:1751:5: F811 redefinition of unused 'test_union' from line 589
```
3. Should I merge the two ```test_intersection``` and ```test_union``` functions?
## Further TODOs from the following discussion and the #14854 under datetime
- [x] Split ```datetimes/test_datetime.py``` into smaller chunks
- [x] In ```datetimes/test_misc.py``` lines from 167-202 should go under timestamp related tests (?)
- [x] Transfer of function (```test_datetimeindex_accessors```) from class ```TestDatetime64``` in ```datetimes/test_misc.py``` to class ```TestDatetimeIndexOps``` of ```datetime/test_ops.py``` (?)
- [x] Function ```test_round``` from ```datetimes/test_datetime.py``` to ```pandas/tests/scalars/test_timestamp.py```. (and test_timedelta.py). So anything specifically Timestamp related will go 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/15266/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15266/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15266.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15266",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15266.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15266"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15267
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15267/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15267/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15267/events
|
https://github.com/pandas-dev/pandas/issues/15267
| 204,109,123 |
MDU6SXNzdWUyMDQxMDkxMjM=
| 15,267 |
read_stata does not convert dates
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/81476?v=4",
"events_url": "https://api.github.com/users/fonnesbeck/events{/privacy}",
"followers_url": "https://api.github.com/users/fonnesbeck/followers",
"following_url": "https://api.github.com/users/fonnesbeck/following{/other_user}",
"gists_url": "https://api.github.com/users/fonnesbeck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fonnesbeck",
"id": 81476,
"login": "fonnesbeck",
"node_id": "MDQ6VXNlcjgxNDc2",
"organizations_url": "https://api.github.com/users/fonnesbeck/orgs",
"received_events_url": "https://api.github.com/users/fonnesbeck/received_events",
"repos_url": "https://api.github.com/users/fonnesbeck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fonnesbeck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fonnesbeck"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
] |
closed
| false | null |
[] | null | 6 | 2017-01-30T19:40:44Z | 2017-01-30T20:44:17Z | 2017-01-30T20:42:08Z |
NONE
| null |
Running Pandas 0.19.2 on Python 3.5.2 (macOS), the docstring for the `read_stata` function indicates that its function is to "Convert date variables to DataFrame time values"
<img width="754" alt="screenshot 2017-01-30 13 36 30" src="https://cloud.githubusercontent.com/assets/81476/22438376/58738822-e6f1-11e6-8e01-1cc3aca0cb99.png">
Yet, setting this to true does not perform this, nor does passing a list of date variables as an argument (as works with other `read_*` functions. The data type remains as an `object`:

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15267/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15267/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15268
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15268/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15268/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15268/events
|
https://github.com/pandas-dev/pandas/issues/15268
| 204,121,132 |
MDU6SXNzdWUyMDQxMjExMzI=
| 15,268 |
DataFrame with PeriodIndex causes KeyError on get_value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4000925?v=4",
"events_url": "https://api.github.com/users/devanl/events{/privacy}",
"followers_url": "https://api.github.com/users/devanl/followers",
"following_url": "https://api.github.com/users/devanl/following{/other_user}",
"gists_url": "https://api.github.com/users/devanl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devanl",
"id": 4000925,
"login": "devanl",
"node_id": "MDQ6VXNlcjQwMDA5MjU=",
"organizations_url": "https://api.github.com/users/devanl/orgs",
"received_events_url": "https://api.github.com/users/devanl/received_events",
"repos_url": "https://api.github.com/users/devanl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devanl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devanl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devanl"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 5 | 2017-01-30T20:30:47Z | 2018-07-06T20:21:15Z | 2017-01-30T20:36:20Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
from pandas import to_datetime, period_range, DataFrame
import pandas as pd
print(pd.__version__)
start_of_time = to_datetime('2016-10-17 01:16:39.133000')
end_of_time = to_datetime('2017-01-04 23:58:37.905000')
avs_date_range = period_range(start_of_time, end_of_time, freq='D')
bins = DataFrame(dict(foo=[0] * len(avs_date_range), bar=[0] * len(avs_date_range)),
index=avs_date_range)
current = range(10)
for idx, bin in bins.iterrows():
for i in range(6):
bins.set_value(idx, 'foo', bin['foo'] + 1)
f_count = bins.get_value(idx, 'foo')
bins.set_value(idx, 'bar', len(current) - f_count)
print(bins)
```
#### Problem description
If I comment out the setting of index this works as expected with PeriodIndex defined this creates KeyError.
#### Output of ``pd.show_versions()``
<details>
0.19.1
Traceback (most recent call last):
File "pandas\index.pyx", line 161, in pandas.index.IndexEngine.get_loc (pandas\index.c:4289)
File "pandas\src\hashtable_class_helper.pxi", line 404, in pandas.hashtable.Int64HashTable.get_item (pandas\hashtable.c:8534)
TypeError: an integer is required
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\pydev\pydevd.py", line 2403, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\pydev\pydevd.py", line 1794, in run
launch(file, globals, locals) # execute the script
File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/dlippman/src/ETDataView/test.py", line 19, in <module>
f_count = bins.get_value(idx, 'foo')
File "C:\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\pandas\core\frame.py", line 1900, in get_value
return engine.get_value(series.get_values(), index)
File "pandas\index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas\index.c:3567)
File "pandas\index.pyx", line 113, in pandas.index.IndexEngine.get_value (pandas\index.c:3250)
File "pandas\index.pyx", line 163, in pandas.index.IndexEngine.get_loc (pandas\index.c:4373)
KeyError: Period('2016-10-17', 'D')
</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/15268/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15268/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15269
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15269/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15269/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15269/events
|
https://github.com/pandas-dev/pandas/issues/15269
| 204,166,414 |
MDU6SXNzdWUyMDQxNjY0MTQ=
| 15,269 |
DEPR: set_value / get_value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 17 | 2017-01-30T23:56:41Z | 2018-03-21T13:26:17Z | 2017-10-05T12:18:20Z |
CONTRIBUTOR
| null |
we already have too many public indexers.....
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15269/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15269/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15270
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15270/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15270/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15270/events
|
https://github.com/pandas-dev/pandas/pull/15270
| 204,188,099 |
MDExOlB1bGxSZXF1ZXN0MTAzODYxNDI3
| 15,270 |
ENH: Add empty property to Index.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 12 | 2017-01-31T02:22:52Z | 2017-03-28T19:11:01Z | 2017-03-28T19:10:59Z |
CONTRIBUTOR
| null |
Previously, attempting to evaluate an Index in a boolean context prints
an error message listing various alternatives, one of which is `.empty`,
which was not actually implemented on `Index`.
- [x] closes #13207
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15270/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15270/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15270.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15270",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15270.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15270"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15271
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15271/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15271/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15271/events
|
https://github.com/pandas-dev/pandas/pull/15271
| 204,195,710 |
MDExOlB1bGxSZXF1ZXN0MTAzODY2Mjg4
| 15,271 |
ENH: Set default dialect to None to enable SQL prefixes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1209723?v=4",
"events_url": "https://api.github.com/users/cgrin/events{/privacy}",
"followers_url": "https://api.github.com/users/cgrin/followers",
"following_url": "https://api.github.com/users/cgrin/following{/other_user}",
"gists_url": "https://api.github.com/users/cgrin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cgrin",
"id": 1209723,
"login": "cgrin",
"node_id": "MDQ6VXNlcjEyMDk3MjM=",
"organizations_url": "https://api.github.com/users/cgrin/orgs",
"received_events_url": "https://api.github.com/users/cgrin/received_events",
"repos_url": "https://api.github.com/users/cgrin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cgrin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cgrin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cgrin"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
] |
closed
| false | null |
[] | null | 5 | 2017-01-31T03:23:59Z | 2017-04-03T15:18:44Z | 2017-04-03T15:18:44Z |
CONTRIBUTOR
| null |
Alters the ```read_gbq``` function to leave ```dialect``` unset by default. This allows the user to specify the dialect using a [query prefix](https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql#sql-prefix), while leaving the default behavior unchanged.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15271/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15271/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15271.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15271",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15271.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15271"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15272
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15272/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15272/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15272/events
|
https://github.com/pandas-dev/pandas/issues/15272
| 204,219,185 |
MDU6SXNzdWUyMDQyMTkxODU=
| 15,272 |
Inconsistent handling of index after groupby operation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1900410?v=4",
"events_url": "https://api.github.com/users/pirsquared/events{/privacy}",
"followers_url": "https://api.github.com/users/pirsquared/followers",
"following_url": "https://api.github.com/users/pirsquared/following{/other_user}",
"gists_url": "https://api.github.com/users/pirsquared/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pirsquared",
"id": 1900410,
"login": "pirsquared",
"node_id": "MDQ6VXNlcjE5MDA0MTA=",
"organizations_url": "https://api.github.com/users/pirsquared/orgs",
"received_events_url": "https://api.github.com/users/pirsquared/received_events",
"repos_url": "https://api.github.com/users/pirsquared/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pirsquared/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pirsquared/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pirsquared"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": 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"
}
| 2 | 2017-01-31T07:01:52Z | 2021-08-05T23:33:54Z | 2021-08-05T23:33:54Z |
NONE
| null |
[from this SO question](http://stackoverflow.com/q/41949697/2336654)
#### snippet 1
```import pandas as pd
df = pd.DataFrame(dict(A=[0, 1, 2, 3]))
# returns results identical to df.A
print(df.groupby(df.A // 2).A.nsmallest(2))
# returns results out of order
print(df.groupby(df.A // 2).A.nlargest(2))
0 0
1 1
2 2
3 3
Name: A, dtype: int64
A
0 1 1
0 0
1 3 3
2 2
Name: A, dtype: int64
```
#### snippet 2
```import pandas as pd
df = pd.DataFrame(dict(A=[0, 1, 2, 3]))
print(df.groupby(df.A // 2).A.apply(pd.Series.sample, n=2))
```
#### Problem description
When the results of a `groupby` operation return the same results as what was in a the group in the first place, the index is left identical to the object being grouped. This doesn't sound so horrible until you realize that it is inconsistent with very comparable operations. This is observed in snippet 1. However, snippet 2 puts a finer point on it. The same code sample produces randomly different results.
#### Expected Output
```
A
0 1 0
0 1
1 3 2
2 3
Name: A, dtype: int64
A
0 1 1
0 0
1 3 3
2 2
Name: A, dtype: int64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: 0.999999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: 0.2.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15272/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15272/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15273
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15273/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15273/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15273/events
|
https://github.com/pandas-dev/pandas/issues/15273
| 204,313,476 |
MDU6SXNzdWUyMDQzMTM0NzY=
| 15,273 |
to_json on multiindex does not escape strings properly
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4407787?v=4",
"events_url": "https://api.github.com/users/rs2/events{/privacy}",
"followers_url": "https://api.github.com/users/rs2/followers",
"following_url": "https://api.github.com/users/rs2/following{/other_user}",
"gists_url": "https://api.github.com/users/rs2/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rs2",
"id": 4407787,
"login": "rs2",
"node_id": "MDQ6VXNlcjQ0MDc3ODc=",
"organizations_url": "https://api.github.com/users/rs2/orgs",
"received_events_url": "https://api.github.com/users/rs2/received_events",
"repos_url": "https://api.github.com/users/rs2/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rs2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rs2/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rs2"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3 | 2017-01-31T14:27:59Z | 2021-05-19T12:53:59Z | 2021-05-19T12:53:59Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import datetime
pd.read_json(pd.DataFrame(True, index=pd.date_range(datetime.date(2017, 1, 20), datetime.date(2017, 1, 23)), columns=['foo', 'bar']).stack().to_json())
```
#### Problem description
The result of `pd.DataFrame(True, index=pd.date_range(datetime.date(2017, 1, 20), datetime.date(2017, 1, 23)), columns=['foo', 'bar']).stack().to_json()` contains
`r'{"[1484870400000,"foo"]":true,"[1484870400000,"bar"]"'`,
#### Expected Output
Whereas it should be:
`r'{"[1484870400000,\"foo\"]":true,"[1484870400000,\"bar\"]"'`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 32
OS: Windows
machine: AMD64
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
Cython: 0.25.1
numpy: 1.11.2
pandas_datareader: None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15273/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15273/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15274
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15274/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15274/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15274/events
|
https://github.com/pandas-dev/pandas/issues/15274
| 204,348,236 |
MDU6SXNzdWUyMDQzNDgyMzY=
| 15,274 |
read_hdf is not read-threadsafe on MAC and Windows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2312781?v=4",
"events_url": "https://api.github.com/users/jtf621/events{/privacy}",
"followers_url": "https://api.github.com/users/jtf621/followers",
"following_url": "https://api.github.com/users/jtf621/following{/other_user}",
"gists_url": "https://api.github.com/users/jtf621/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtf621",
"id": 2312781,
"login": "jtf621",
"node_id": "MDQ6VXNlcjIzMTI3ODE=",
"organizations_url": "https://api.github.com/users/jtf621/orgs",
"received_events_url": "https://api.github.com/users/jtf621/received_events",
"repos_url": "https://api.github.com/users/jtf621/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtf621/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtf621/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtf621"
}
|
[
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2017-01-31T16:26:11Z | 2017-01-31T17:12:15Z | 2017-01-31T16:35:05Z |
NONE
| null |
#### Problem description
pd.read_hdf() segfaults when called from multiple threads in read only mode.
From the documentation I expected that reading a HDF5 file in another thread would work. In the example each file is mapped out to its own thread and the thread is responsible for opening and closing the file. Note that when I used HDF5 files with compression the segfault happened everytime. When I was making the minimal example, I used no compression and fround it does not segfault about 80% of the time. The test code shows that when complib is set, but complevel is 0 (i.e no compression) the failure rate is 100%.
This problem is also reported in #12236
#### Test Code
Note this fails reliably when complib is not None. When complib=None the failure rate is ~ 20% for me in limited testing.
This is another example of # but shows effect of compression settings on the issue
```python
import numpy as np
import pandas as pd
import concurrent.futures as cf
# Failure rate
# - Fails with Segmentation fault
COMPLIB, COMPLEVEL = None, 0 # 2 out of 10 tests
COMPLIB, COMPLEVEL = 'zlib', 9 # 3 out of 3 tests
COMPLIB, COMPLEVEL = 'zlib', 0 # 3 out of 3 tests
COMPLIB, COMPLEVEL = 'blosc', 0 # 3 out of 3 tests
COMPLIB, COMPLEVEL = 'blosc', 1 # 3 out of 3 tests
COMPLIB, COMPLEVEL = 'lzo', 0 # 3 out of 3 tests
COMPLIB, COMPLEVEL = 'bzip2', 0 # 3 out of 3 tests
# create test data
a = np.random.rand(1000000)
b = np.random.rand(1000000)
d1 = pd.DataFrame(dict(a=a*1, b=b*1))
d2 = pd.DataFrame(dict(a=a*2, b=b*2))
d3 = pd.DataFrame(dict(a=a*3, b=b*3))
d4 = pd.DataFrame(dict(a=a*4, b=b*4))
d1.to_hdf('d1.h5', '/data', complib=COMPLIB, complevel=COMPLEVEL)
d2.to_hdf('d2.h5', '/data', complib=COMPLIB, complevel=COMPLEVEL)
d3.to_hdf('d3.h5', '/data', complib=COMPLIB, complevel=COMPLEVEL)
d4.to_hdf('d4.h5', '/data', complib=COMPLIB, complevel=COMPLEVEL)
files = ['d{}.h5'.format(i) for i in range(1, 5)]
# map reads out to threads
e = cf.ThreadPoolExecutor()
futures = [e.submit(pd.read_hdf, f, '/data/', mode='r') for f in files]
```
#### Expected Output
a list of 4 futures that can be
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 28.8.0
Cython: None
numpy: 1.12.0
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
Crash Report
<details>
python(7164,0x700000c10000) malloc: *** error for object 0x7f8ba3655e60: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
</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/15274/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15274/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15275
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15275/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15275/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15275/events
|
https://github.com/pandas-dev/pandas/issues/15275
| 204,456,410 |
MDU6SXNzdWUyMDQ0NTY0MTA=
| 15,275 |
DataFrameGroupBy.idxmin() returns DataFrame, documentation says Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 6 | 2017-01-31T23:36:06Z | 2019-10-21T19:34:19Z | null |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame([[0, 0],
[3, 0],
[1, 1]], index=list('ABC'), columns=list('ab'))
gby = df.groupby(by='b')
print(type(gby)) # <class 'pandas.core.groupby.DataFrameGroupBy'>
print(type(gby.idxmin())) # <class 'pandas.core.frame.DataFrame'>
```
#### Problem description
According to [the documentation](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.core.groupby.DataFrameGroupBy.idxmin.html), this is supposed to output a `pandas.core.Series`. To me, that seems to be what makes sense, but I'm not sure how or why this ended up returning a `DataFrame`. Is this just an issue with the documentation, or is it an issue with the code?
**Edit**: Ah, I understand why this returns a `DataFrame` now - if you have multiple columns the `idxmin()` might be different for each column. Seems that the documentation needs to be updated. I can make a PR if that's appropriate.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.6-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 34.0.3
Cython: 0.25.2
numpy: 1.12.0
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15275/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15275/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15276
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15276/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15276/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15276/events
|
https://github.com/pandas-dev/pandas/issues/15276
| 204,491,070 |
MDU6SXNzdWUyMDQ0OTEwNzA=
| 15,276 |
to_sql is too slow
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4651974?v=4",
"events_url": "https://api.github.com/users/dean12/events{/privacy}",
"followers_url": "https://api.github.com/users/dean12/followers",
"following_url": "https://api.github.com/users/dean12/following{/other_user}",
"gists_url": "https://api.github.com/users/dean12/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dean12",
"id": 4651974,
"login": "dean12",
"node_id": "MDQ6VXNlcjQ2NTE5NzQ=",
"organizations_url": "https://api.github.com/users/dean12/orgs",
"received_events_url": "https://api.github.com/users/dean12/received_events",
"repos_url": "https://api.github.com/users/dean12/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dean12/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dean12/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dean12"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
closed
| false | null |
[] |
{
"closed_at": 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"
}
| 25 | 2017-02-01T03:48:24Z | 2021-09-23T03:46:37Z | 2017-02-01T03:59:51Z |
NONE
| null |
#### Code Sample,
```python
df_name.to_sql('table_name',
schema = 'public',
con = engine,
index = False,
if_exists = 'replace')
```
#### Problem description
Im writing a 500,000 row dataframe to a postgres AWS database and it takes a very, very long time to push the data through.
It is a fairly large SQL server and my internet connection is excellent so I've ruled those out as contributing to the problem.
In comparison, csv2sql or using cat and piping into psql on the command line is much quicker.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15276/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15276/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15277
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15277/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15277/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15277/events
|
https://github.com/pandas-dev/pandas/issues/15277
| 204,504,903 |
MDU6SXNzdWUyMDQ1MDQ5MDM=
| 15,277 |
DataFrame.fillna() downcast argument does not work when the value for fillna is a dict instead of a scalar
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4",
"events_url": "https://api.github.com/users/albertvillanova/events{/privacy}",
"followers_url": "https://api.github.com/users/albertvillanova/followers",
"following_url": "https://api.github.com/users/albertvillanova/following{/other_user}",
"gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertvillanova",
"id": 8515462,
"login": "albertvillanova",
"node_id": "MDQ6VXNlcjg1MTU0NjI=",
"organizations_url": "https://api.github.com/users/albertvillanova/orgs",
"received_events_url": "https://api.github.com/users/albertvillanova/received_events",
"repos_url": "https://api.github.com/users/albertvillanova/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertvillanova"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2017-02-01T06:08:04Z | 2017-02-06T15:26:42Z | 2017-02-06T15:26:42Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'a': [1, None]})
df1 = df.fillna(0, downcast='infer')
df2 = df.fillna({'a': 0}, downcast='infer')
print(df1)
print(df2)
```
#### Problem description
When using the method `DataFrame.fillna()`, the `downcast` option is not working when the `value` for `fillna` is a dict instead of a scalar.
#### Expected Output
In both previous DataFrame examples, the column should be downcasted to integer dtype instead of float.
#### Output of ``pd.show_versions()``
<details>
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-107-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: ca_ES.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0.post20161106
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: 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/15277/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15277/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15278
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15278/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15278/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15278/events
|
https://github.com/pandas-dev/pandas/pull/15278
| 204,506,646 |
MDExOlB1bGxSZXF1ZXN0MTA0MDgxNDg3
| 15,278 |
BUG: Fix downcast argument for DataFrame.fillna()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4",
"events_url": "https://api.github.com/users/albertvillanova/events{/privacy}",
"followers_url": "https://api.github.com/users/albertvillanova/followers",
"following_url": "https://api.github.com/users/albertvillanova/following{/other_user}",
"gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertvillanova",
"id": 8515462,
"login": "albertvillanova",
"node_id": "MDQ6VXNlcjg1MTU0NjI=",
"organizations_url": "https://api.github.com/users/albertvillanova/orgs",
"received_events_url": "https://api.github.com/users/albertvillanova/received_events",
"repos_url": "https://api.github.com/users/albertvillanova/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertvillanova"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 5 | 2017-02-01T06:24:11Z | 2019-02-09T21:40:20Z | 2017-02-06T15:26:42Z |
CONTRIBUTOR
| null |
- [X] closes #15277
- [X] tests added / passed
- [x] passes git diff upstream/master | flake8 --diff
- [X] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15278/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15278/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15278.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15278",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15278.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15278"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15279
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15279/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15279/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15279/events
|
https://github.com/pandas-dev/pandas/issues/15279
| 204,549,507 |
MDU6SXNzdWUyMDQ1NDk1MDc=
| 15,279 |
str.find returns dtype: float64
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18648417?v=4",
"events_url": "https://api.github.com/users/littlegreenbean33/events{/privacy}",
"followers_url": "https://api.github.com/users/littlegreenbean33/followers",
"following_url": "https://api.github.com/users/littlegreenbean33/following{/other_user}",
"gists_url": "https://api.github.com/users/littlegreenbean33/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/littlegreenbean33",
"id": 18648417,
"login": "littlegreenbean33",
"node_id": "MDQ6VXNlcjE4NjQ4NDE3",
"organizations_url": "https://api.github.com/users/littlegreenbean33/orgs",
"received_events_url": "https://api.github.com/users/littlegreenbean33/received_events",
"repos_url": "https://api.github.com/users/littlegreenbean33/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/littlegreenbean33/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/littlegreenbean33/subscriptions",
"type": "User",
"url": "https://api.github.com/users/littlegreenbean33"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2 | 2017-02-01T10:42:26Z | 2017-02-01T13:51:55Z | 2017-02-01T13:51:37Z |
NONE
| null |
str.find fails to return integers
As per the docs it should return Series/Index of integer values
#### Code Sample, a copy-pastable example if possible
```
df[:5]
0 1
0 ZAR12015 FastEthernet2/0/38
1 AFA12286 FastEthernet4/0/22
2 CAA12029 FastEthernet2/0/35
3 IFAA2302 FastEthernet4/0/14
4 HFQ12009 FastEthernet5/38
df.loc[:,"1"].str.find("Ether")
6982 4.0
6983 4.0
6984 4.0
Name: 1, dtype: float64
df.loc[:,"1"].apply( lambda x : x[x.find("Ether"):])
AttributeError Traceback (most recent call last)
<ipython-input-39-73570bc63928> in <module>()
----> 1 df.loc[:,"1"].apply( lambda x : x[x.find("Ether"):])
C:\Users\X91437\Documents\Program Files\Anaconda\lib\site-packages\pandas\core\series.py in apply(self, func, convert_dtype, args, **kwds)
2290 else:
2291 values = self.asobject
-> 2292 mapped = lib.map_infer(values, f, convert=convert_dtype)
2293
2294 if len(mapped) and isinstance(mapped[0], Series):
pandas\src\inference.pyx in pandas.lib.map_infer (pandas\lib.c:66116)()
<ipython-input-39-73570bc63928> in <lambda>(x)
----> 1 df.loc[:,"1"].apply( lambda x : x[x.find("Ether"):])
AttributeError: 'float' object has no attribute 'find'
```
# Your code here
```
#### Expected Output
6982 4
6983 4
6984 4
Name: 1, dtype: int
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 5.2.1
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15279/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15279/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15280
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15280/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15280/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15280/events
|
https://github.com/pandas-dev/pandas/issues/15280
| 204,565,852 |
MDU6SXNzdWUyMDQ1NjU4NTI=
| 15,280 |
read_csv does not correclty parse in header with BOM utf-8
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24755597?v=4",
"events_url": "https://api.github.com/users/OlafEichstaedt/events{/privacy}",
"followers_url": "https://api.github.com/users/OlafEichstaedt/followers",
"following_url": "https://api.github.com/users/OlafEichstaedt/following{/other_user}",
"gists_url": "https://api.github.com/users/OlafEichstaedt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlafEichstaedt",
"id": 24755597,
"login": "OlafEichstaedt",
"node_id": "MDQ6VXNlcjI0NzU1NTk3",
"organizations_url": "https://api.github.com/users/OlafEichstaedt/orgs",
"received_events_url": "https://api.github.com/users/OlafEichstaedt/received_events",
"repos_url": "https://api.github.com/users/OlafEichstaedt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlafEichstaedt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlafEichstaedt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlafEichstaedt"
}
|
[] |
closed
| false | null |
[] | null | 2 | 2017-02-01T12:01:24Z | 2017-02-01T13:08:07Z | 2017-02-01T12:22:01Z |
NONE
| null |
This issues was #4793 ... but it has been closed although the issue still exists ... please see my last post 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/15280/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15280/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15281
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15281/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15281/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15281/events
|
https://github.com/pandas-dev/pandas/issues/15281
| 204,611,486 |
MDU6SXNzdWUyMDQ2MTE0ODY=
| 15,281 |
Subtracting empty Series with dtype datetime64[ns]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24532979?v=4",
"events_url": "https://api.github.com/users/ericstarr/events{/privacy}",
"followers_url": "https://api.github.com/users/ericstarr/followers",
"following_url": "https://api.github.com/users/ericstarr/following{/other_user}",
"gists_url": "https://api.github.com/users/ericstarr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ericstarr",
"id": 24532979,
"login": "ericstarr",
"node_id": "MDQ6VXNlcjI0NTMyOTc5",
"organizations_url": "https://api.github.com/users/ericstarr/orgs",
"received_events_url": "https://api.github.com/users/ericstarr/received_events",
"repos_url": "https://api.github.com/users/ericstarr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ericstarr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericstarr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ericstarr"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-02-01T15:16:52Z | 2017-02-01T15:25:21Z | 2017-02-01T15:24:53Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({
'dates_1' : pd.date_range(start='2015-01-01', periods=5),
'dates_2' : pd.date_range(start='2016-01-01', periods=5)
})
df.dates_2 - df.dates_1
df_2 = df.drop(df.index)
df_2.dates_2 - df_2.dates_1
```
#### Problem description
Subtracting two empty Series with dtypes of datetime64[ns] causes a TypeError to be thrown.
#### Expected Output
Would expect the subtraction to return an empty series of timedelta64[ns].
i.e,
Series([], dtype: timedelta64[ns])
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: None
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15281/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15281/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15282
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15282/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15282/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15282/events
|
https://github.com/pandas-dev/pandas/issues/15282
| 204,645,675 |
MDU6SXNzdWUyMDQ2NDU2NzU=
| 15,282 |
COMPAT: xarray 0.9.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-02-01T17:12:52Z | 2017-02-01T22:55:41Z | 2017-02-01T22:55:41Z |
CONTRIBUTOR
| null |
https://github.com/pandas-dev/pandas/blob/master/pandas/tests/test_generic.py#L905
I believe should be changed to be version dependent, IOW, 0.9.0 https://github.com/pydata/xarray/issues/700 fixes this.
we should fix one of the builds at say 0.8.2, and let the others float (they all float now)
@shoyer ?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15282/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15282/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15283
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15283/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15283/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15283/events
|
https://github.com/pandas-dev/pandas/issues/15283
| 204,674,764 |
MDU6SXNzdWUyMDQ2NzQ3NjQ=
| 15,283 |
ENH: Store comments from read_csv in an property (`df.comment`) and allow saving
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8426290?v=4",
"events_url": "https://api.github.com/users/DSLituiev/events{/privacy}",
"followers_url": "https://api.github.com/users/DSLituiev/followers",
"following_url": "https://api.github.com/users/DSLituiev/following{/other_user}",
"gists_url": "https://api.github.com/users/DSLituiev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DSLituiev",
"id": 8426290,
"login": "DSLituiev",
"node_id": "MDQ6VXNlcjg0MjYyOTA=",
"organizations_url": "https://api.github.com/users/DSLituiev/orgs",
"received_events_url": "https://api.github.com/users/DSLituiev/received_events",
"repos_url": "https://api.github.com/users/DSLituiev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DSLituiev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DSLituiev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DSLituiev"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
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 | 2017-02-01T19:05:32Z | 2021-05-08T00:49:02Z | null |
NONE
| null |
#### Problem description
This is an enhancement request to allow handling and saving comment strings with DataFrame text file IO. Two related stackoverflow questions about such feature:
http://stackoverflow.com/questions/39724298/pandas-extract-comment-lines
http://stackoverflow.com/questions/29233496/write-comments-in-csv-file-with-pandas
#### Code Sample, a copy-pastable example if possible
```python
df = pd.read_csv("mydata.csv", comment="#")
df.comment
"this is a comment from mydata.csv file"
df.to_csv("output.csv", comment="#") # saves the `comment` string by pasting "#" before its each line and putting it before the table.
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: 1.3.7
pip: 9.0.1
setuptools: 29.0.1
Cython: 0.24
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.0.0
sphinx: 1.4.5
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.1
sqlalchemy: 1.0.14
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15283/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15283/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15284
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15284/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15284/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15284/events
|
https://github.com/pandas-dev/pandas/issues/15284
| 204,678,405 |
MDU6SXNzdWUyMDQ2Nzg0MDU=
| 15,284 |
BUG: pd.read_json with numpy=True coerces columns to int if the first column is an int
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3186847?v=4",
"events_url": "https://api.github.com/users/Michael-J-Ward/events{/privacy}",
"followers_url": "https://api.github.com/users/Michael-J-Ward/followers",
"following_url": "https://api.github.com/users/Michael-J-Ward/following{/other_user}",
"gists_url": "https://api.github.com/users/Michael-J-Ward/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Michael-J-Ward",
"id": 3186847,
"login": "Michael-J-Ward",
"node_id": "MDQ6VXNlcjMxODY4NDc=",
"organizations_url": "https://api.github.com/users/Michael-J-Ward/orgs",
"received_events_url": "https://api.github.com/users/Michael-J-Ward/received_events",
"repos_url": "https://api.github.com/users/Michael-J-Ward/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Michael-J-Ward/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Michael-J-Ward/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Michael-J-Ward"
}
|
[
{
"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": "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 | 2 | 2017-02-01T19:20:03Z | 2020-05-08T20:43:50Z | 2020-05-08T20:43:49Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
print("pandas version", pd.__version__)
df = pd.DataFrame({'a': [0,0,0], 'b': [1.9995, 2.0005, 3.9995]})
print(df.dtypes)
df_json = df.to_json()
print("note that the `b` column is now a `int`")
df_from_json = pd.read_json(df_json, numpy=True)
print(df_from_json)
print(df_from_json.dtypes)
# and using dtype='float64' still rounds
df_from_json = pd.read_json(df_json, numpy=True, dtype='float64')
print(df_from_json)
print(df_from_json.dtypes)
# however, if the first column is a float, then the value is maintained
df2_json = df[['b', 'a']].to_json()
df2_from_json = pd.read_json(df2_json, numpy=True)
print(df2_from_json)
print(df2_from_json.dtypes)
```
#### Problem description
Setting `numpy=True` coerces column dtypes to `int64` if the "left / first" column is an int. This causes unexpected rounding errors and the behavior is not consistent: if the first column is a float then subsequent columns are not coerced to float.
#### Expected Output
```
a b
0 0 1.9995
1 0 2.0005
2 0 3.9995
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.5
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15284/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15284/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15285
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15285/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15285/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15285/events
|
https://github.com/pandas-dev/pandas/pull/15285
| 204,682,796 |
MDExOlB1bGxSZXF1ZXN0MTA0MjA1NzI4
| 15,285 |
COMPAT: xarray 0.8.2 test compat w.r.t. CategoricalIndex idempotency
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-02-01T19:37:19Z | 2017-02-01T22:55:41Z | 2017-02-01T22:55:41Z |
CONTRIBUTOR
| null |
closes #15282
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15285/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15285/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15285.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15285",
"merged_at": "2017-02-01T22:55:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15285.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15285"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15286
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15286/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15286/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15286/events
|
https://github.com/pandas-dev/pandas/issues/15286
| 204,691,588 |
MDU6SXNzdWUyMDQ2OTE1ODg=
| 15,286 |
MultiIndex.from_product throws on read-only array
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/85419?v=4",
"events_url": "https://api.github.com/users/RhysU/events{/privacy}",
"followers_url": "https://api.github.com/users/RhysU/followers",
"following_url": "https://api.github.com/users/RhysU/following{/other_user}",
"gists_url": "https://api.github.com/users/RhysU/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RhysU",
"id": 85419,
"login": "RhysU",
"node_id": "MDQ6VXNlcjg1NDE5",
"organizations_url": "https://api.github.com/users/RhysU/orgs",
"received_events_url": "https://api.github.com/users/RhysU/received_events",
"repos_url": "https://api.github.com/users/RhysU/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RhysU/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RhysU/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RhysU"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 5 | 2017-02-01T20:10:44Z | 2019-12-12T21:05:09Z | 2019-12-12T21:05:09Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np
import pandas as pd
a = np.array(range(3))
b = ['a', 'b']
# Succeeds, as expected
pd.MultiIndex.from_product([a, b])
a.setflags(write=False)
# Raises a ValueError with "buffer source array is read-only"
pd.MultiIndex.from_product([a, b])
```
#### Problem description
Nothing in the MultiIndex.from_product documentation suggests the inputs need to be mutable. Moreover, it is surprising that the arguments are being mutated.
#### Expected Output
Not raising.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.1.17-pv-ts1
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2-ts2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.11.3
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15286/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15286/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15287
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15287/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15287/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15287/events
|
https://github.com/pandas-dev/pandas/issues/15287
| 204,708,663 |
MDU6SXNzdWUyMDQ3MDg2NjM=
| 15,287 |
Assign dataframe from another and add a column original also adds it to new df
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19192061?v=4",
"events_url": "https://api.github.com/users/alexcurrysvg/events{/privacy}",
"followers_url": "https://api.github.com/users/alexcurrysvg/followers",
"following_url": "https://api.github.com/users/alexcurrysvg/following{/other_user}",
"gists_url": "https://api.github.com/users/alexcurrysvg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexcurrysvg",
"id": 19192061,
"login": "alexcurrysvg",
"node_id": "MDQ6VXNlcjE5MTkyMDYx",
"organizations_url": "https://api.github.com/users/alexcurrysvg/orgs",
"received_events_url": "https://api.github.com/users/alexcurrysvg/received_events",
"repos_url": "https://api.github.com/users/alexcurrysvg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexcurrysvg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexcurrysvg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexcurrysvg"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-02-01T21:20:47Z | 2017-02-01T22:03:19Z | 2017-02-01T22:03:09Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
x = pd.DataFrame([1,2,3])
y = x
y["test"] = "test"
print y
y
0 test
0 1 test
1 2 test
2 3 test
print x
x
0 test
0 1 test
1 2 test
2 3 test
```
#### Problem description
When creating a copy of a dataframe and then adding a new column of type string to the new dataframe, the original dataframe also has the new column added to it.
#### Expected Output
The original dataframe remains unaltered.
#### Output of ``pd.show_versions()``
<details>
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 9.0.1
setuptools: 25.1.3
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.3.3
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: 0.9.3
lxml: None
bs4: 4.5.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.1
sqlalchemy: 1.1.2
pymysql: 0.7.4.None
psycopg2: None
jinja2: 2.8
boto: 2.43.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15287/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15287/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15288
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15288/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15288/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15288/events
|
https://github.com/pandas-dev/pandas/issues/15288
| 204,756,069 |
MDU6SXNzdWUyMDQ3NTYwNjk=
| 15,288 |
Unescaped quote marks in to_json output when run on multi indexed object
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1113932?v=4",
"events_url": "https://api.github.com/users/biancaG/events{/privacy}",
"followers_url": "https://api.github.com/users/biancaG/followers",
"following_url": "https://api.github.com/users/biancaG/following{/other_user}",
"gists_url": "https://api.github.com/users/biancaG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/biancaG",
"id": 1113932,
"login": "biancaG",
"node_id": "MDQ6VXNlcjExMTM5MzI=",
"organizations_url": "https://api.github.com/users/biancaG/orgs",
"received_events_url": "https://api.github.com/users/biancaG/received_events",
"repos_url": "https://api.github.com/users/biancaG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/biancaG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/biancaG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/biancaG"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2017-02-02T01:17:34Z | 2017-02-02T01:19:58Z | 2017-02-02T01:19:58Z |
NONE
| null |
#### Code Sample
```python
import pandas as pd
import numpy as np
arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one',
'two', 'one', 'two', 'one', 'two', 'one', 'two']]
tuples = list(zip(*arrays))
index = pd.MultiIndex.from_tuples(tuples, names=['first', 'second'])
series = pd.Series(np.random.randn(8), index=index)
print(series.to_json())
```
Output:
```json
{"["bar","one"]":-0.0591166327,"["bar","two"]":0.871145093,"["baz","one"]":0.61280938,"["baz","two"]":0.3848564991,"["foo","one"]":-0.8986592304,"["foo","two"]":-0.4631529084,"["qux","one"]":-1.3482521044,"["qux","two"]":0.5209236198}
```
#### Problem description
The output contains unescaped quotation marks, which makes the output invalid json.
#### Expected Output
Quote marks should be escaped, for example:
```json
{"[\"bar\",\"one\"]":-0.0591166327,"[\"bar\",\"two\"]":0.871145093,"[\"baz\",\"one\"]":0.61280938,"[\"baz\",\"two\"]":0.3848564991,"[\"foo\",\"one\"]":-0.8986592304,"[\"foo\",\"two\"]":-0.4631529084,"[\"qux\",\"one\"]":-1.3482521044,"[\"qux\",\"two\"]":0.5209236198}
```
#### Output of ``pd.show_versions()``
I reproduced it in pandas install from master:
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.8-200.fc24.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
LOCALE: en_AU.UTF-8
pandas: 0.19.0+401.g8452080
nose: None
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.0
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: 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/15288/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15288/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15289
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15289/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15289/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15289/events
|
https://github.com/pandas-dev/pandas/issues/15289
| 204,781,207 |
MDU6SXNzdWUyMDQ3ODEyMDc=
| 15,289 |
series.replace with empty dictlike raises ValueError: not enough values to unpack
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1411280?v=4",
"events_url": "https://api.github.com/users/ExpHP/events{/privacy}",
"followers_url": "https://api.github.com/users/ExpHP/followers",
"following_url": "https://api.github.com/users/ExpHP/following{/other_user}",
"gists_url": "https://api.github.com/users/ExpHP/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExpHP",
"id": 1411280,
"login": "ExpHP",
"node_id": "MDQ6VXNlcjE0MTEyODA=",
"organizations_url": "https://api.github.com/users/ExpHP/orgs",
"received_events_url": "https://api.github.com/users/ExpHP/received_events",
"repos_url": "https://api.github.com/users/ExpHP/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExpHP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExpHP/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExpHP"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-02-02T04:41:49Z | 2017-02-02T20:26:55Z | 2017-02-02T20:26:55Z |
CONTRIBUTOR
| null |
#### Problem description
`DataFrame.replace` and `Series.replace` fail unceremoniously on an empty Series or dict argument; I would expect it to simply do nothing.
While there is a fair bit of type-based wizardry going on in this function, I don't suppose there is any actual ambiguity in how this edge case should behave?
#### Code Sample, a copy-pastable example if possible
```python
from pandas import Series
s = Series([0,0,1,1,2,2])
print(s.replace(Series([7,7])).tolist())
print(s.replace(Series([7])).tolist())
print(s.replace(Series([])).tolist())
```
#### Output
```text
[7, 7, 7, 7, 2, 2]
[7, 7, 1, 1, 2, 2]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-82-d889d2100216> in <module>()
3 print(s.replace(Series([7,7])).tolist())
4 print(s.replace(Series([7])).tolist())
----> 5 print(s.replace(Series([])).tolist())
/usr/local/lib/python3.5/dist-packages/pandas-0.19.2-py3.5-linux-x86_64.egg/pandas/core/generic.py in replace(self, to_replace, value, inplace, limit, regex, method, axis)
3438
3439 items = list(compat.iteritems(to_replace))
-> 3440 keys, values = zip(*items)
3441
3442 are_mappings = [is_dict_like(v) for v in values]
ValueError: not enough values to unpack (expected 2, got 0)
```
#### Expected Output
```
[7, 7, 7, 7, 2, 2]
[7, 7, 1, 1, 2, 2]
[0, 0, 1, 1, 2, 2]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.2.0
tables: None
numexpr: 2.6.2
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: 0.9.1
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15289/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15289/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15290
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15290/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15290/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15290/events
|
https://github.com/pandas-dev/pandas/issues/15290
| 204,784,796 |
MDU6SXNzdWUyMDQ3ODQ3OTY=
| 15,290 |
as_index =True for groupby transform inconsistent with agg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16606323?v=4",
"events_url": "https://api.github.com/users/Kevin-McIsaac/events{/privacy}",
"followers_url": "https://api.github.com/users/Kevin-McIsaac/followers",
"following_url": "https://api.github.com/users/Kevin-McIsaac/following{/other_user}",
"gists_url": "https://api.github.com/users/Kevin-McIsaac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kevin-McIsaac",
"id": 16606323,
"login": "Kevin-McIsaac",
"node_id": "MDQ6VXNlcjE2NjA2MzIz",
"organizations_url": "https://api.github.com/users/Kevin-McIsaac/orgs",
"received_events_url": "https://api.github.com/users/Kevin-McIsaac/received_events",
"repos_url": "https://api.github.com/users/Kevin-McIsaac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kevin-McIsaac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kevin-McIsaac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kevin-McIsaac"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
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"
}
| 13 | 2017-02-02T05:17:46Z | 2021-05-08T00:51:10Z | null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
index = pd.date_range('10/1/1999', periods=1100, name='Date')
ts = pd.DataFrame({'Entry': np.random.normal(300, 50, 1100),
'Exit': np.random.normal(300, 50, 1100)}, index)
ts['Year'] = ts.index.year
ts['Day'] = ts.index.weekday_name
zscore = lambda x: (x - x.mean()) / x.std()
ts.groupby(['Year', 'Day'], as_index=True).transform(lambda g:g).head(5)
```
#### Problem description
Unlike agg, when using transform
1. as_index =True does not set the index to the groupby by (i.e ['Year', 'Day']).
2. as_index = False does not prepend the groupby by column to the output of the transform as is done with agg.
I found this inconsistency very confusing and hard to work with.
This is also noted in ##5755
#### Expected Output
If as_index =True, the index of the result should the groupby by (i.e ['Year', 'Day']).
if as_index =False, the output should have the the groupby by (i.e ['Year', 'Day']) prepended to the as is done with agg.
I've really struggled using transform, partly as the semantics of transform were unclear to me. Specifically :
1. Which columns is the transform applied to. Is it all columns of the df or only those not in the groupby by? It looks like its the latter. This seems to be true with agg too. It would have been helpful to me if this was clearer in the documentation
2. Is the transform passed a df of columns or is it applied column by column? My guess is it's the former if the transform takes a df otherwise it's the latter. This seems to be hinted at in some parts of the documentation but it could be made more explicit.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.41-36.55.amzn1.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.5
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15290/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15290/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15291
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15291/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15291/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15291/events
|
https://github.com/pandas-dev/pandas/pull/15291
| 204,785,805 |
MDExOlB1bGxSZXF1ZXN0MTA0Mjc3MTQy
| 15,291 |
ENH: Added ability to freeze panes from DataFrame.to_excel() (#15160)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10188148?v=4",
"events_url": "https://api.github.com/users/jeffcarey/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffcarey/followers",
"following_url": "https://api.github.com/users/jeffcarey/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffcarey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffcarey",
"id": 10188148,
"login": "jeffcarey",
"node_id": "MDQ6VXNlcjEwMTg4MTQ4",
"organizations_url": "https://api.github.com/users/jeffcarey/orgs",
"received_events_url": "https://api.github.com/users/jeffcarey/received_events",
"repos_url": "https://api.github.com/users/jeffcarey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffcarey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffcarey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffcarey"
}
|
[
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 15 | 2017-02-02T05:28:00Z | 2017-03-04T23:50:18Z | 2017-02-16T17:47:46Z |
CONTRIBUTOR
| null |
- [X] closes #15160
- [x] tests passed- Existing tests passed. New test added and passed.
- [X] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry- Added to 0.20.
The ability to freeze panes has been added to the to_excel() method on data frames. The parameter is a tuple of 2 integers, representing the bottom-most row and right-most column to freeze, respectively. (This is the same format xlsxwriter uses). The default value is None, resulting in no freezing.
Example usage:
``df.to_excel(writer, sheet_name='Sheet1', freeze_panes=(1,1))``
The following engines are supported:
xlsxwriter
xlwt
openpyxl22
The parameter exists for openpyxl20 and openpyxl1 but it has no effect, in anticipation of support for these versions being dropped (#15184).
Can one of the maintainers confirm this approach for engine support is adequate, or suggest an alternative? Once that is settled I can write a test to create a workbook using each engine and then try reading it back in using openpyxl.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15291/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15291/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15291.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15291",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15291.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15291"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15292
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15292/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15292/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15292/events
|
https://github.com/pandas-dev/pandas/issues/15292
| 204,821,962 |
MDU6SXNzdWUyMDQ4MjE5NjI=
| 15,292 |
Github repository and topics
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5049737?v=4",
"events_url": "https://api.github.com/users/femtotrader/events{/privacy}",
"followers_url": "https://api.github.com/users/femtotrader/followers",
"following_url": "https://api.github.com/users/femtotrader/following{/other_user}",
"gists_url": "https://api.github.com/users/femtotrader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/femtotrader",
"id": 5049737,
"login": "femtotrader",
"node_id": "MDQ6VXNlcjUwNDk3Mzc=",
"organizations_url": "https://api.github.com/users/femtotrader/orgs",
"received_events_url": "https://api.github.com/users/femtotrader/received_events",
"repos_url": "https://api.github.com/users/femtotrader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/femtotrader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/femtotrader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/femtotrader"
}
|
[
{
"color": "DDDDDD",
"default": false,
"description": "Administrative tasks related to the pandas project",
"id": 32933285,
"name": "Admin",
"node_id": "MDU6TGFiZWwzMjkzMzI4NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Admin"
}
] |
closed
| false | null |
[] | null | 2 | 2017-02-02T09:33:31Z | 2017-02-10T10:39:56Z | 2017-02-02T13:38:37Z |
NONE
| null |
Hello,
Github recently add topics
see https://github.com/blog/2309-introducing-topics
https://help.github.com/articles/about-topics/
Maybe this repository should be tagged.
See also https://github.com/pydata/pandas-datareader/issues/278
Kind regards
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15292/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15292/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15293
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15293/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15293/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15293/events
|
https://github.com/pandas-dev/pandas/issues/15293
| 204,899,408 |
MDU6SXNzdWUyMDQ4OTk0MDg=
| 15,293 |
sample can only pick items of length 1. should be able to choose arbitrary length.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/456541?v=4",
"events_url": "https://api.github.com/users/chrism2671/events{/privacy}",
"followers_url": "https://api.github.com/users/chrism2671/followers",
"following_url": "https://api.github.com/users/chrism2671/following{/other_user}",
"gists_url": "https://api.github.com/users/chrism2671/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrism2671",
"id": 456541,
"login": "chrism2671",
"node_id": "MDQ6VXNlcjQ1NjU0MQ==",
"organizations_url": "https://api.github.com/users/chrism2671/orgs",
"received_events_url": "https://api.github.com/users/chrism2671/received_events",
"repos_url": "https://api.github.com/users/chrism2671/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrism2671/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrism2671/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrism2671"
}
|
[
{
"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 | 2 | 2017-02-02T15:05:36Z | 2019-02-20T04:38:44Z | 2019-02-20T04:38:44Z |
NONE
| null |
#### sample can only pick items of length 1. should be able to choose arbitrary length.
sample is very useful for statistical bootstrapping, however, on time series data, it is frequently necessary to sample 'sections' from a Series/DataFrame. Each sample might be '50 days', hence 50 rows. This is a very common use case, which I've hacked into my projects several times already.
I am happy to try and edit this into pandas.generic.sample, but would appreciate some guidance as to how best to implement it, as unlike the current implementation, it will return a list of DataFrames (rather than the same type that was provided). Suggestions 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/15293/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15293/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15294
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15294/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15294/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15294/events
|
https://github.com/pandas-dev/pandas/pull/15294
| 204,934,698 |
MDExOlB1bGxSZXF1ZXN0MTA0MzgwMzgz
| 15,294 |
BUG: Support empty dict-likes in replace()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1411280?v=4",
"events_url": "https://api.github.com/users/ExpHP/events{/privacy}",
"followers_url": "https://api.github.com/users/ExpHP/followers",
"following_url": "https://api.github.com/users/ExpHP/following{/other_user}",
"gists_url": "https://api.github.com/users/ExpHP/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExpHP",
"id": 1411280,
"login": "ExpHP",
"node_id": "MDQ6VXNlcjE0MTEyODA=",
"organizations_url": "https://api.github.com/users/ExpHP/orgs",
"received_events_url": "https://api.github.com/users/ExpHP/received_events",
"repos_url": "https://api.github.com/users/ExpHP/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExpHP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExpHP/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExpHP"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-02-02T17:02:03Z | 2017-02-02T20:27:06Z | 2017-02-02T20:26:55Z |
CONTRIBUTOR
| null |
- [x] closes #15289
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15294/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15294/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15294.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15294",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15294.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15294"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15295
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15295/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15295/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15295/events
|
https://github.com/pandas-dev/pandas/pull/15295
| 205,108,450 |
MDExOlB1bGxSZXF1ZXN0MTA0NDk5ODcx
| 15,295 |
Added a tutorial for pandas dataframes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8349123?v=4",
"events_url": "https://api.github.com/users/Kacawi-zz/events{/privacy}",
"followers_url": "https://api.github.com/users/Kacawi-zz/followers",
"following_url": "https://api.github.com/users/Kacawi-zz/following{/other_user}",
"gists_url": "https://api.github.com/users/Kacawi-zz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kacawi-zz",
"id": 8349123,
"login": "Kacawi-zz",
"node_id": "MDQ6VXNlcjgzNDkxMjM=",
"organizations_url": "https://api.github.com/users/Kacawi-zz/orgs",
"received_events_url": "https://api.github.com/users/Kacawi-zz/received_events",
"repos_url": "https://api.github.com/users/Kacawi-zz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kacawi-zz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kacawi-zz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kacawi-zz"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2017-02-03T09:28:24Z | 2017-02-03T13:50:29Z | 2017-02-03T13:50:26Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15295/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15295/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15295.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15295",
"merged_at": "2017-02-03T13:50:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/15295.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15295"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15296
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15296/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15296/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15296/events
|
https://github.com/pandas-dev/pandas/issues/15296
| 205,118,977 |
MDU6SXNzdWUyMDUxMTg5Nzc=
| 15,296 |
read_msgpack returns garbage for non-existing files in python2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1336287?v=4",
"events_url": "https://api.github.com/users/languitar/events{/privacy}",
"followers_url": "https://api.github.com/users/languitar/followers",
"following_url": "https://api.github.com/users/languitar/following{/other_user}",
"gists_url": "https://api.github.com/users/languitar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/languitar",
"id": 1336287,
"login": "languitar",
"node_id": "MDQ6VXNlcjEzMzYyODc=",
"organizations_url": "https://api.github.com/users/languitar/orgs",
"received_events_url": "https://api.github.com/users/languitar/received_events",
"repos_url": "https://api.github.com/users/languitar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/languitar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/languitar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/languitar"
}
|
[
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 4 | 2017-02-03T10:17:51Z | 2017-10-30T12:53:40Z | 2017-10-30T12:53:40Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: u'0.19.2'
In [3]: pd.read_msgpack('/tmp/bla.txt')
Out[3]: [47, 116, 109, 112, 47, 98, 108, 97, 46, 116, 120, 116]
```
That file does not exist.
The same code with the same version on python 3 correctly raises an exception.
#### Problem description
Reading a non existing file returns a list of integers instead of failing if pandas is used in python 2. This makes detecting error quite hard.
#### Expected Output
An exception.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.13.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.6-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.utf8
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 34.1.0
Cython: None
numpy: 1.11.3
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.5
boto: None
pandas_datareader: None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15296/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15296/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15297
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15297/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15297/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15297/events
|
https://github.com/pandas-dev/pandas/issues/15297
| 205,132,810 |
MDU6SXNzdWUyMDUxMzI4MTA=
| 15,297 |
Weird behavior using nlargest/nsmallest when there are the n smallest/largest values are identical
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3211163?v=4",
"events_url": "https://api.github.com/users/RogerThomas/events{/privacy}",
"followers_url": "https://api.github.com/users/RogerThomas/followers",
"following_url": "https://api.github.com/users/RogerThomas/following{/other_user}",
"gists_url": "https://api.github.com/users/RogerThomas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RogerThomas",
"id": 3211163,
"login": "RogerThomas",
"node_id": "MDQ6VXNlcjMyMTExNjM=",
"organizations_url": "https://api.github.com/users/RogerThomas/orgs",
"received_events_url": "https://api.github.com/users/RogerThomas/received_events",
"repos_url": "https://api.github.com/users/RogerThomas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RogerThomas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RogerThomas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RogerThomas"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2017-02-03T11:22:54Z | 2017-04-06T13:41:25Z | 2017-04-06T13:41:25Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```
python -c "import pandas as pd; df = pd.DataFrame(dict(a=[1, 1, 2, 3], b=[1, 2, 3, 4])); print(df.nsmallest(2, 'a'))"
```
#### Problem description
When using nlargest/nsmallest and the n largest / smallest values are identical, the method seems to return the dataframe concatenated with the filtered version of itself.
Furthermore if all values are identical, you get the full dataframe concatenated with itself, regardless of the choice of `n`
#### Expected Output
Not really sure, I guess in the example above you should simply get a dataframe that looks like this
```pd.DataFrame(dict(a=[1, 1], b=[1, 2]))```
however if you were to have
``` df = pd.DataFrame(dict(a=[1, 1, 1, 1], b=[1, 2, 3, 4]))```
and asked for
```df.nlargest(2, 'a')``` you should again get
```pd.DataFrame(dict(a=[1, 1], b=[1, 2]))```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.0-34-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_IE.UTF-8
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 28.3.0
Cython: 0.23.4
numpy: 1.12.0
scipy: 0.16.1
statsmodels: 0.6.1
xarray: None
IPython: None
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.2.0
numexpr: 2.4.6
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15297/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15297/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15298
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15298/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15298/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15298/events
|
https://github.com/pandas-dev/pandas/issues/15298
| 205,171,997 |
MDU6SXNzdWUyMDUxNzE5OTc=
| 15,298 |
No module named 'request' (from panda import PandaRequest)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3926190?v=4",
"events_url": "https://api.github.com/users/nolimitech/events{/privacy}",
"followers_url": "https://api.github.com/users/nolimitech/followers",
"following_url": "https://api.github.com/users/nolimitech/following{/other_user}",
"gists_url": "https://api.github.com/users/nolimitech/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nolimitech",
"id": 3926190,
"login": "nolimitech",
"node_id": "MDQ6VXNlcjM5MjYxOTA=",
"organizations_url": "https://api.github.com/users/nolimitech/orgs",
"received_events_url": "https://api.github.com/users/nolimitech/received_events",
"repos_url": "https://api.github.com/users/nolimitech/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nolimitech/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nolimitech/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nolimitech"
}
|
[
{
"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 | 5 | 2017-02-03T14:29:51Z | 2019-12-22T20:14:34Z | 2017-02-03T14:31:35Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
import panda as pd
Traceback:
File "/usr/local/lib/python3.4/dist-package/panda/__init__.py", line 1, in <module>
from request import PandaRequest
```
#### Problem description
I'm working with python 3.4.2, gcc 4.9.1
I have installed everything with pip, all the requirement is good. All the version is good and up to date (my pip3.4 and setuptools, is up to date too).
I've installed Panda and Pandas. (the same)
I've tried to install request, requests (already had)
Don't really know, what to do now :)
#### Expected Output
I can't enter inside the module itself. I can't event know the version.
#### Output of ``pd.show_versions()``
Thanks to help me
NLT
|
{
"+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/15298/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15298/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15299
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15299/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15299/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15299/events
|
https://github.com/pandas-dev/pandas/pull/15299
| 205,207,076 |
MDExOlB1bGxSZXF1ZXN0MTA0NTY4MzIy
| 15,299 |
Fix nsmallest/nlargest With Identical Values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3211163?v=4",
"events_url": "https://api.github.com/users/RogerThomas/events{/privacy}",
"followers_url": "https://api.github.com/users/RogerThomas/followers",
"following_url": "https://api.github.com/users/RogerThomas/following{/other_user}",
"gists_url": "https://api.github.com/users/RogerThomas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RogerThomas",
"id": 3211163,
"login": "RogerThomas",
"node_id": "MDQ6VXNlcjMyMTExNjM=",
"organizations_url": "https://api.github.com/users/RogerThomas/orgs",
"received_events_url": "https://api.github.com/users/RogerThomas/received_events",
"repos_url": "https://api.github.com/users/RogerThomas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RogerThomas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RogerThomas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RogerThomas"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 20 | 2017-02-03T16:38:25Z | 2017-04-06T13:44:30Z | 2017-04-06T13:41:25Z |
NONE
| null |
- [x] closes #15297
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15299/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15299/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15299.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15299",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15299.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15299"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15300
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15300/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15300/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15300/events
|
https://github.com/pandas-dev/pandas/pull/15300
| 205,231,560 |
MDExOlB1bGxSZXF1ZXN0MTA0NTg1Mjk0
| 15,300 |
ENH: .isnull and .notnull have been added as methods to Index to make this more consistent with the Series API
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2017-02-03T18:20:34Z | 2017-02-04T18:29:13Z | 2017-02-04T18:29:13Z |
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/15300/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15300/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15300.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15300",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15300.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15300"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/15301
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15301/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15301/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15301/events
|
https://github.com/pandas-dev/pandas/pull/15301
| 205,265,470 |
MDExOlB1bGxSZXF1ZXN0MTA0NjA4NzY2
| 15,301 |
TST: Timestamp and Timeseries tests reorg (gh14854)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4",
"events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}",
"followers_url": "https://api.github.com/users/TrigonaMinima/followers",
"following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}",
"gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TrigonaMinima",
"id": 2520893,
"login": "TrigonaMinima",
"node_id": "MDQ6VXNlcjI1MjA4OTM=",
"organizations_url": "https://api.github.com/users/TrigonaMinima/orgs",
"received_events_url": "https://api.github.com/users/TrigonaMinima/received_events",
"repos_url": "https://api.github.com/users/TrigonaMinima/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TrigonaMinima"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 18 | 2017-02-03T20:46:57Z | 2017-02-04T18:30:05Z | 2017-02-04T18:27:59Z |
CONTRIBUTOR
| null |
- [x] Partially completes #14854
- [x] Tests reorganized (```test_timeseries.py``` + ```test_tslib.py``` -> ```test_timestamp.py```)
- [x] Passes ``git diff upstream/master | flake8 --diff``
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15301/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15301/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/15301.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/15301",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/15301.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/15301"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15302
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15302/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15302/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15302/events
|
https://github.com/pandas-dev/pandas/issues/15302
| 205,277,337 |
MDU6SXNzdWUyMDUyNzczMzc=
| 15,302 |
BUG: read_csv with date_parser lock file open on failure
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11539619?v=4",
"events_url": "https://api.github.com/users/rsheftel/events{/privacy}",
"followers_url": "https://api.github.com/users/rsheftel/followers",
"following_url": "https://api.github.com/users/rsheftel/following{/other_user}",
"gists_url": "https://api.github.com/users/rsheftel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rsheftel",
"id": 11539619,
"login": "rsheftel",
"node_id": "MDQ6VXNlcjExNTM5NjE5",
"organizations_url": "https://api.github.com/users/rsheftel/orgs",
"received_events_url": "https://api.github.com/users/rsheftel/received_events",
"repos_url": "https://api.github.com/users/rsheftel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rsheftel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsheftel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rsheftel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
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"
}
| 13 | 2017-02-03T21:44:28Z | 2021-09-12T18:06:50Z | null |
NONE
| null |
#### Problem description
When using the date_parser functionality of read_csv() if the file read fails then the file is left locked open. My use case is that I am trying to enforce a strict datetime format that must include the time zone offset. Another thread stated that the way to accomplish this is with date_parser. My issue is that I would like to move a file that fails being loaded to another directory, but I cannot because the failure in the date_parser keeps the file open until the python session is terminated.
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import datetime
def strict_parser(dates):
datetimes = [pd.Timestamp(datetime.datetime.strptime(date, '%Y-%m-%d %H:%M:%S%z'), tz='UTC') for date in dates]
return pd.DatetimeIndex(datetimes)
filename = 'c:/temp/data.csv'
data = pd.read_csv(filename, parse_dates=['datetime'], index_col=['datetime'], date_parser=strict_parser)
```
The file data.csv is:
datetime,data
2010-05-05 09:30:00-0500,10
2010-05-05 09:35:00-0500,20
2010-05-05 09:40:00,30
#### Output of ``pd.show_versions()``
pandas: 0.19.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/15302/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15302/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15303
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15303/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15303/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15303/events
|
https://github.com/pandas-dev/pandas/issues/15303
| 205,301,437 |
MDU6SXNzdWUyMDUzMDE0Mzc=
| 15,303 |
Can't use dt.ceil, dt.floor, dt.round with coarser target frequencies
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4",
"events_url": "https://api.github.com/users/rosnfeld/events{/privacy}",
"followers_url": "https://api.github.com/users/rosnfeld/followers",
"following_url": "https://api.github.com/users/rosnfeld/following{/other_user}",
"gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rosnfeld",
"id": 5356340,
"login": "rosnfeld",
"node_id": "MDQ6VXNlcjUzNTYzNDA=",
"organizations_url": "https://api.github.com/users/rosnfeld/orgs",
"received_events_url": "https://api.github.com/users/rosnfeld/received_events",
"repos_url": "https://api.github.com/users/rosnfeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rosnfeld"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
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"
}
| 11 | 2017-02-03T23:52:51Z | 2021-08-22T11:28:43Z | null |
CONTRIBUTOR
| null |
#### Code Sample
This works fine:
```
In [16]: hours = pd.Series(pd.date_range('2017-01-01', '2017-01-31', freq='H'))
In [17]: hours.dt.ceil('D')
Out[17]:
0 2017-01-01
1 2017-01-02
2 2017-01-02
3 2017-01-02
4 2017-01-02
...
```
But this doesn't:
```
In [18]: days = pd.Series(pd.date_range('2017-01-01', '2017-01-31', freq='D'))
In [19]: days.dt.ceil('M')
...
/home/andrew/git/pandas-rosnfeld-py3/pandas/tseries/offsets.py in nanos(self)
510 @property
511 def nanos(self):
--> 512 raise ValueError("{0} is a non-fixed frequency".format(self))
513
514
ValueError: <MonthEnd> is a non-fixed frequency
```
#### Problem description
I haven't done an exhaustive test, but it seems that one can't use coarser frequencies like 'M', 'Q', 'A' in the dt.ceil/floor/round set of methods.
#### Expected Output
It would seem reasonable to be able to take a series of scattered dates and be able to "coarsen" them into month-ends, quarter-ends, year-ends, etc.
#### Output of ``pd.show_versions()``
<details>
(admittedly some pretty old stuff in this environment but I also got the same behavior on 0.19.2 with latest of everything else)
INSTALLED VERSIONS
------------------
commit: 74e20a0c4146919a82312c1027dcb57b48b613e3
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-62-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.19.0+300.g74e20a0.dirty
nose: 1.3.7
pip: 7.1.2
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
feather: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.2
lxml: 3.5.0
bs4: None
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: 0.6.7.None
psycopg2: None
jinja2: 2.8
s3fs: None
pandas_datareader: None
</details>
|
{
"+1": 22,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 22,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15303/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15303/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15304
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15304/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15304/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15304/events
|
https://github.com/pandas-dev/pandas/issues/15304
| 205,313,169 |
MDU6SXNzdWUyMDUzMTMxNjk=
| 15,304 |
passing a function to DataFrameGroupBy.agg - confusing documentation/behaviour
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/695907?v=4",
"events_url": "https://api.github.com/users/colinmorris/events{/privacy}",
"followers_url": "https://api.github.com/users/colinmorris/followers",
"following_url": "https://api.github.com/users/colinmorris/following{/other_user}",
"gists_url": "https://api.github.com/users/colinmorris/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinmorris",
"id": 695907,
"login": "colinmorris",
"node_id": "MDQ6VXNlcjY5NTkwNw==",
"organizations_url": "https://api.github.com/users/colinmorris/orgs",
"received_events_url": "https://api.github.com/users/colinmorris/received_events",
"repos_url": "https://api.github.com/users/colinmorris/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinmorris/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinmorris/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinmorris"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
open
| false | null |
[] | null | 7 | 2017-02-04T01:45:49Z | 2017-02-05T20:29:10Z | null |
NONE
| null |
#### Problem description
For clarity, I'll split this into 3 sub-issues related to DataFrameGroupBy.agg and its documentation.
##### 1. Not clear what kind of custom function should be provided
The docstring on [DataFrameGroupBy.agg](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.core.groupby.DataFrameGroupBy.agg.html#pandas.core.groupby.DataFrameGroupBy.agg) says that you can pass in a function, but it's unclear what that function should expect to receive as input, and how what it returns relates to the return value of agg.
After some poking around, it seems to me that the typical pattern is to pass a function that takes a series and returns a scalar, with the dataframe returned by agg having the property that `aggregated.loc[group_foo, col_bar]` is the result of calling the function on the series that is the column `col_bar` for rows belonging to `group_foo`.
If that is the expected behaviour, it should be explained in the docs.
##### 2. Passing an arbitrary kwarg changes the function behaviour
I stumbled on this weirdness while trying to figure out how agg worked:
```python
>>> df = pd.DataFrame(np.random.rand(4,2), columns=['b', 'c'])
>>> df['a'] = [1, 0, 0, 0]
>>> g = df.groupby('a')
>>> g.agg(lambda x: np.product(x.shape))
b c
a
0 3.0 3.0
1 1.0 1.0
>>> g.agg(lambda x, foo=0: np.product(x.shape), foo=0)
b c
a
0 9 9
1 3 3
```
In other words, by passing in any meaningless kwarg, my function is now called `ngroups` times with a dataframe for each group, rather than being called with a series `ngroups * ncolumns` times.
Also, when called in this way, it seems my function can return a list or series of length `ncolumns` which gets expanded (this doesn't work in the non-kwarg version):
```python
>>> g.agg(lambda x, foo=0: [20, 17], foo=0)
b c
a
0 20 17
1 20 17
```
##### 3. Note on numpy special casing is confusing
The docstring has this note:
> Numpy functions mean/median/prod/sum/std/var are special cased so the default behavior is applying the function along axis=0 (e.g., np.mean(arr_2d, axis=0)) as opposed to mimicking the default Numpy behavior (e.g., np.mean(arr_2d)).
Which is confusing because passing in `lambda x: np.mean(x)` does seem to give the 'right' answer (the same one as passing `lambda x: np.mean(x, axis=0)`, or `np.mean`, or `'mean'`). This is true whether or not I throw in a kwarg.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 32
OS: Linux
OS-release: 3.13.0-107-generic
machine: i686
processor: i686
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 25.1.0
Cython: None
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 1.5.7
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.1.3
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: 0.8.0
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15304/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15304/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15305
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15305/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15305/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15305/events
|
https://github.com/pandas-dev/pandas/issues/15305
| 205,345,507 |
MDU6SXNzdWUyMDUzNDU1MDc=
| 15,305 |
Rolling apply on DataFrame with Datetime index returns NaN
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14115305?v=4",
"events_url": "https://api.github.com/users/cafischer/events{/privacy}",
"followers_url": "https://api.github.com/users/cafischer/followers",
"following_url": "https://api.github.com/users/cafischer/following{/other_user}",
"gists_url": "https://api.github.com/users/cafischer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cafischer",
"id": 14115305,
"login": "cafischer",
"node_id": "MDQ6VXNlcjE0MTE1MzA1",
"organizations_url": "https://api.github.com/users/cafischer/orgs",
"received_events_url": "https://api.github.com/users/cafischer/received_events",
"repos_url": "https://api.github.com/users/cafischer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cafischer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cafischer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cafischer"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 2 | 2017-02-04T12:37:19Z | 2017-08-10T12:32:47Z | 2017-08-10T12:32:47Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'A': [0, 1, 2, 3, 4]},
index=[pd.Timestamp('20130101 09:00:00'),
pd.Timestamp('20130101 09:00:01'),
pd.Timestamp('20130101 09:00:02'),
pd.Timestamp('20130101 09:00:03'),
pd.Timestamp('20130101 09:00:04')])
rolled = df.rolling('3s', 3)
print rolled.sum()
print rolled.apply(sum)
```
outputs
```
A
2013-01-01 09:00:00 NaN
2013-01-01 09:00:01 NaN
2013-01-01 09:00:02 3.0
2013-01-01 09:00:03 6.0
2013-01-01 09:00:04 9.0
A
2013-01-01 09:00:00 NaN
2013-01-01 09:00:01 NaN
2013-01-01 09:00:02 NaN
2013-01-01 09:00:03 NaN
2013-01-01 09:00:04 NaN
```
#### Problem description
rolled.apply.sum() should give the same output as rolled.apply(sum) but instead only returns nan.
#### Expected Output
same as rolled.sum()
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 20.7.0
Cython: None
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: 2.38.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15305/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15305/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15306
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15306/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15306/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15306/events
|
https://github.com/pandas-dev/pandas/issues/15306
| 205,379,701 |
MDU6SXNzdWUyMDUzNzk3MDE=
| 15,306 |
Groupby transform idxmax return floats
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10682573?v=4",
"events_url": "https://api.github.com/users/jesrael/events{/privacy}",
"followers_url": "https://api.github.com/users/jesrael/followers",
"following_url": "https://api.github.com/users/jesrael/following{/other_user}",
"gists_url": "https://api.github.com/users/jesrael/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jesrael",
"id": 10682573,
"login": "jesrael",
"node_id": "MDQ6VXNlcjEwNjgyNTcz",
"organizations_url": "https://api.github.com/users/jesrael/orgs",
"received_events_url": "https://api.github.com/users/jesrael/received_events",
"repos_url": "https://api.github.com/users/jesrael/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jesrael/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jesrael/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jesrael"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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 | 2017-02-04T21:42:03Z | 2019-03-30T19:17:29Z | 2019-03-30T19:17:29Z |
NONE
| null |
`Transform` with `idxmax` return wrong output - floats instead `datetimes`
Sample:
rng = pd.date_range('1/1/2011', periods=15, freq='D')
np.random.seed(4)
stocks = pd.DataFrame({
'price':(np.random.randn(15).cumsum() + 10) },index = rng)
stocks['week_id'] = pd.to_datetime(stocks.index).week #used for the groupby
print (stocks)
price week_id
2011-01-01 10.050562 52
2011-01-02 10.550513 52
2011-01-03 9.554604 1
2011-01-04 10.248203 1
2011-01-05 9.829901 1
2011-01-06 8.245324 1
2011-01-07 7.597617 1
2011-01-08 8.196192 1
2011-01-09 8.528442 1
2011-01-10 7.380966 2
2011-01-11 7.999635 2
2011-01-12 7.911648 2
2011-01-13 8.336721 2
2011-01-14 8.668974 2
2011-01-15 7.512158 2
<!-- -->
print (stocks.groupby(stocks['week_id'])['price'].transform('idxmax'))
2011-01-01 1.293926e+18
2011-01-02 1.293926e+18
2011-01-03 1.294099e+18
2011-01-04 1.294099e+18
2011-01-05 1.294099e+18
2011-01-06 1.294099e+18
2011-01-07 1.294099e+18
2011-01-08 1.294099e+18
2011-01-09 1.294099e+18
2011-01-10 1.294963e+18
2011-01-11 1.294963e+18
2011-01-12 1.294963e+18
2011-01-13 1.294963e+18
2011-01-14 1.294963e+18
2011-01-15 1.294963e+18
Freq: D, Name: price, dtype: float64
print (stocks.groupby(stocks['week_id'])['price'].idxmax())
week_id
1 2011-01-04
2 2011-01-14
52 2011-01-02
Name: price, dtype: datetime64[ns]
[SO question](http://stackoverflow.com/questions/42045549/using-groupby-and-transform-to-get-idxmax-per-week).
print (pd.show_versions())
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: sk_SK
LOCALE: None.None
pandas: 0.19.2+0.g825876c.dirty
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.1
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: 0.2.1
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/15306/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15306/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/15307
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/15307/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15307/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/15307/events
|
https://github.com/pandas-dev/pandas/issues/15307
| 205,388,432 |
MDU6SXNzdWUyMDUzODg0MzI=
| 15,307 |
ENH: Add AutoFilter option to to_excel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10188148?v=4",
"events_url": "https://api.github.com/users/jeffcarey/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffcarey/followers",
"following_url": "https://api.github.com/users/jeffcarey/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffcarey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffcarey",
"id": 10188148,
"login": "jeffcarey",
"node_id": "MDQ6VXNlcjEwMTg4MTQ4",
"organizations_url": "https://api.github.com/users/jeffcarey/orgs",
"received_events_url": "https://api.github.com/users/jeffcarey/received_events",
"repos_url": "https://api.github.com/users/jeffcarey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffcarey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffcarey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffcarey"
}
|
[
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
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"
}
| 0 | 2017-02-05T00:09:59Z | 2018-11-14T22:46:48Z | null |
CONTRIBUTOR
| null |
As originally mentioned in #15160 , `DataFrame.to_excel()` should support an optional parameter that would turn Excel's AutoFilter on.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/15307/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/15307/timeline
| null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.