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/11904 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11904/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11904/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11904/events | https://github.com/pandas-dev/pandas/pull/11904 | 123,912,567 | MDExOlB1bGxSZXF1ZXN0NTQ1OTgwMTY= | 11,904 | Issue 11833-2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| 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 | 2015-12-26T06:36:46Z | 2015-12-26T11:16:37Z | 2015-12-26T11:16:03Z | CONTRIBUTOR | null | updated the to_string() function of DataFrameFormatter(TableFormatter) class ,in format.py file, of the core directory.This is another commit . I hope this works
#11833
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11904/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11904/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11904.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11904",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11904.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11904"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11905 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11905/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11905/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11905/events | https://github.com/pandas-dev/pandas/issues/11905 | 123,919,448 | MDU6SXNzdWUxMjM5MTk0NDg= | 11,905 | from_dict / to_dict should accept same orient parameter | {
"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"
} | []
| closed | false | null | []
| null | 7 | 2015-12-26T09:28:23Z | 2019-08-27T09:43:35Z | 2015-12-26T13:36:14Z | NONE | null | Hello,
`pd.DataFrame.to_dict` accepts `orient` parameter in
`['dict', 'list', 'series', 'split', 'records', 'index']` (default being `'dict'`)
http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.to_dict.html
`from_dict` only accepts `orient` parameter in `['columns', 'index']` (default being `'columns'`)
I think that `from_dict` should accept same parameter `orient` for API consistency
http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.from_dict.html
Same for `Panel`
http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.Panel.from_dict.html
`to_dict`: missing method for Panel
Same for `Series`
http://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.Series.to_dict.html
`from_dict`: missing method for Series
Kind regards
| {
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11905/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11905/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11906 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11906/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11906/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11906/events | https://github.com/pandas-dev/pandas/pull/11906 | 123,929,429 | MDExOlB1bGxSZXF1ZXN0NTQ2MDIyNDc= | 11,906 | Issue-11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| closed | false | null | []
| null | 0 | 2015-12-26T13:22:36Z | 2015-12-26T13:23:00Z | 2015-12-26T13:23:00Z | 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/11906/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11906/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11906.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11906",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11906.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11906"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11907 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11907/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11907/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11907/events | https://github.com/pandas-dev/pandas/pull/11907 | 123,929,533 | MDExOlB1bGxSZXF1ZXN0NTQ2MDIyNjU= | 11,907 | issue-11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| closed | false | null | []
| null | 0 | 2015-12-26T13:24:40Z | 2015-12-26T13:24:57Z | 2015-12-26T13:24:57Z | 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/11907/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11907/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11907.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11907",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11907.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11907"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11908 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11908/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11908/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11908/events | https://github.com/pandas-dev/pandas/pull/11908 | 123,929,561 | MDExOlB1bGxSZXF1ZXN0NTQ2MDIyODI= | 11,908 | fix for the issue-11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| closed | false | null | []
| null | 0 | 2015-12-26T13:25:39Z | 2015-12-26T13:26:04Z | 2015-12-26T13:26:04Z | CONTRIBUTOR | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11908/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11908/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11908.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11908",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11908.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11908"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11909 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11909/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11909/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11909/events | https://github.com/pandas-dev/pandas/pull/11909 | 123,929,841 | MDExOlB1bGxSZXF1ZXN0NTQ2MDIzNjI= | 11,909 | fix for the issue-11833 #11903 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| closed | false | null | []
| null | 2 | 2015-12-26T13:32:15Z | 2015-12-26T18:06:11Z | 2015-12-26T13:33:05Z | CONTRIBUTOR | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11909/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11909/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11909.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11909",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11909.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11909"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11910 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11910/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11910/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11910/events | https://github.com/pandas-dev/pandas/pull/11910 | 123,944,949 | MDExOlB1bGxSZXF1ZXN0NTQ2MDYzMDA= | 11,910 | issue-11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | []
| closed | false | null | []
| null | 4 | 2015-12-26T19:23:28Z | 2015-12-27T04:31:20Z | 2015-12-27T04:31:20Z | CONTRIBUTOR | null | Updated the format.py file in pandas core directory
Function updated : to_string()
Class : DataFrameFormatter
.travis.yml also changed to for fewer builds
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11910/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11910/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11910.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11910",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11910.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11910"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11911 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11911/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11911/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11911/events | https://github.com/pandas-dev/pandas/issues/11911 | 123,966,024 | MDU6SXNzdWUxMjM5NjYwMjQ= | 11,911 | New syntax request - filtering with Python's 'is in' | {
"avatar_url": "https://avatars.githubusercontent.com/u/6841988?v=4",
"events_url": "https://api.github.com/users/DeepSpace2/events{/privacy}",
"followers_url": "https://api.github.com/users/DeepSpace2/followers",
"following_url": "https://api.github.com/users/DeepSpace2/following{/other_user}",
"gists_url": "https://api.github.com/users/DeepSpace2/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DeepSpace2",
"id": 6841988,
"login": "DeepSpace2",
"node_id": "MDQ6VXNlcjY4NDE5ODg=",
"organizations_url": "https://api.github.com/users/DeepSpace2/orgs",
"received_events_url": "https://api.github.com/users/DeepSpace2/received_events",
"repos_url": "https://api.github.com/users/DeepSpace2/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DeepSpace2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeepSpace2/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DeepSpace2"
} | []
| 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 | 2015-12-27T07:28:56Z | 2015-12-27T13:59:08Z | 2015-12-27T12:12:36Z | NONE | null | Hi all.
With the current version in order to achieve filtering that is reversed to 'pd.Series.isin()' we need to define a function or use a lambda, ie:
```
df = df[df['city'].apply(lambda x: 'TA' in x if x is not None else False)]
```
I tought it could be a bit easier if we could have a syntax like:
```
df = df['TA' is in df['city']]
```
I believe this will involve overriding `__contains__` in `pd.Series`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11911/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11911/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11912 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11912/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11912/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11912/events | https://github.com/pandas-dev/pandas/pull/11912 | 123,969,707 | MDExOlB1bGxSZXF1ZXN0NTQ2MTQ1NTA= | 11,912 | Leading space in to_string, #11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 10 | 2015-12-27T09:27:06Z | 2016-01-02T10:51:32Z | 2016-01-02T10:51:32Z | CONTRIBUTOR | null | closes #11833
Final Commits
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11912/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11912/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11912.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11912",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11912.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11912"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11913 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11913/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11913/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11913/events | https://github.com/pandas-dev/pandas/pull/11913 | 123,983,944 | MDExOlB1bGxSZXF1ZXN0NTQ2MTk0Mzk= | 11,913 | ENH: add pd.test to enable nose test runnning from the imported session, #4327 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 14 | 2015-12-27T15:44:51Z | 2016-03-10T00:52:08Z | 2016-01-08T14:07:46Z | CONTRIBUTOR | null | closes #4327
copied from `numpy` nosetester.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11913/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11913/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11913.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11913",
"merged_at": "2016-01-08T14:07:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11913.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11913"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11914 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11914/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11914/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11914/events | https://github.com/pandas-dev/pandas/pull/11914 | 123,989,919 | MDExOlB1bGxSZXF1ZXN0NTQ2MjEyOTY= | 11,914 | EHN encoding parameter for to_latex | {
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 12 | 2015-12-27T17:52:12Z | 2016-01-15T16:27:25Z | 2016-01-15T16:24:35Z | CONTRIBUTOR | null | closes #7061
I'm working on solving issue #7061: currently, with Python 2 it is not possible to use `.to_latex()` when the dataframe contains utf-8 strings. This PR adds an `encoding` parameter to make it possible.
The work is not completely done though, and I'm making this PR to start a discussion here. In its current state, the PR quickly fixes the issue and provides tests, so it is kind of a minimal PR.
@jreback in the discussion on issue #7061, you made the following suggestion:
> you _may_ want to add a `LatexFormatter` (as a sub-class of `DataFrameFormatter`) as this will allow some re-factoring to be internally done later on.
I would be glad to work in that direction, but I'm a bit confused by the current organization of the code. This `LatexFormatter` would seem to me to be similar to `HTMLFormatter`, which inherits from `TableFormatter` (exactly as `DataFrameFormatter`). In that case, `DataFrameFormatter` would use `LatexFormatter` for `.to_latex()` exactly as it uses `HTMLFormatter` for `.to_html()`. Is that what you had in mind?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11914/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11914/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11914.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11914",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11914.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11914"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11915 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11915/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11915/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11915/events | https://github.com/pandas-dev/pandas/issues/11915 | 124,021,239 | MDU6SXNzdWUxMjQwMjEyMzk= | 11,915 | io/common.py: boto3 with python 3.5 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4134823?v=4",
"events_url": "https://api.github.com/users/stharrold/events{/privacy}",
"followers_url": "https://api.github.com/users/stharrold/followers",
"following_url": "https://api.github.com/users/stharrold/following{/other_user}",
"gists_url": "https://api.github.com/users/stharrold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stharrold",
"id": 4134823,
"login": "stharrold",
"node_id": "MDQ6VXNlcjQxMzQ4MjM=",
"organizations_url": "https://api.github.com/users/stharrold/orgs",
"received_events_url": "https://api.github.com/users/stharrold/received_events",
"repos_url": "https://api.github.com/users/stharrold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stharrold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stharrold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stharrold"
} | [
{
"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": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"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"
} | 30 | 2015-12-28T05:37:00Z | 2016-12-19T12:55:55Z | 2016-12-19T12:55:55Z | NONE | null | Pandas v0.17.1 won't import for Python 3.5 due to boto. Replacing with boto3 appears to fix the issue. I'd like to suggest replacing dependencies on boto with boto3 for at least Python 3.5. I didn't test with other Python 3x versions. Thank you
Update (2016-01-10T02:45:00Z): There are significant API changes between `boto` and `boto3` (http://boto3.readthedocs.org/en/latest/guide/migrations3.html). Doing `import boto3 as boto` as below will allow pandas to import for Python 3.5, but then AWS functionality is broken.
```
samuel_harrold@instance-20151227t225000z:~$ ipython
Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec 7 2015, 11:16:01)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import pandas
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-d6ac987968b6> in <module>()
----> 1 import pandas
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/__init__.py in <module>()
40
41 # let init-time option registration happen
---> 42 import pandas.core.config_init
43
44 from pandas.core.api import *
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/core/config_init.py in <module>()
15 is_instance_factory, is_one_of_factory,
16 get_default_val)
---> 17 from pandas.core.format import detect_console_encoding
18
19
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/core/format.py in <module>()
8 from pandas.core.base import PandasObject
9 from pandas.core.common import adjoin, notnull
---> 10 from pandas.core.index import Index, MultiIndex, _ensure_index
11 from pandas import compat
12 from pandas.compat import(StringIO, lzip, range, map, zip, reduce, u,
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/core/index.py in <module>()
29 from pandas.core.strings import StringAccessorMixin
30 from pandas.core.config import get_option
---> 31 from pandas.io.common import PerformanceWarning
32
33
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/io/common.py in <module>()
66
67 try:
---> 68 from boto.s3 import key
69 class BotoFileLikeReader(key.Key):
70 """boto Key modified to be more file-like
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/boto/__init__.py in <module>()
1214 return storage_uri(uri_str)
1215
-> 1216 boto.plugin.load_plugins(config)
/home/samuel_harrold/anaconda3/lib/python3.5/site-packages/boto/plugin.py in load_plugins(config)
90 return
91 directory = config.get('Plugin', 'plugin_directory')
---> 92 for file in glob.glob(os.path.join(directory, '*.py')):
93 _import_module(file)
/home/samuel_harrold/anaconda3/lib/python3.5/posixpath.py in join(a, *p)
87 path += sep + b
88 except (TypeError, AttributeError, BytesWarning):
---> 89 genericpath._check_arg_types('join', a, *p)
90 raise
91 return path
/home/samuel_harrold/anaconda3/lib/python3.5/genericpath.py in _check_arg_types(funcname, *args)
141 else:
142 raise TypeError('%s() argument must be str or bytes, not %r' %
--> 143 (funcname, s.__class__.__name__)) from None
144 if hasstr and hasbytes:
145 raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: join() argument must be str or bytes, not 'NoneType'
In [2]: exit()
samuel_harrold@instance-20151227t225000z:~$ cp /home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/io/common_boto3.py /home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/io/common.py
samuel_harrold@instance-20151227t225000z:~$ diff /home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/io/common.py /home/samuel_harrold/anaconda3/lib/python3.5/site-packages/pandas/io/common_orig.py
68c68
< from boto3.s3 import key
---
> from boto.s3 import key
272c272
< import boto3 as boto
---
> import boto
samuel_harrold@instance-20151227t225000z:~$ ipython
Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec 7 2015, 11:16:01)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import pandas
In [2]: # success
In [3]: exit()
samuel_harrold@instance-20151227t225000z:~$ ipython
Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec 7 2015, 11:16:01)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import pandas as pd
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-0.bpo.4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
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: None
In [3]:
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11915/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11915/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11916 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11916/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11916/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11916/events | https://github.com/pandas-dev/pandas/pull/11916 | 124,047,585 | MDExOlB1bGxSZXF1ZXN0NTQ2NDQ5ODk= | 11,916 | DOC: adapt remaining occurences of pf.rolling_ | {
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2015-12-28T10:15:46Z | 2015-12-28T11:18:32Z | 2015-12-28T11:18:32Z | 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/11916/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11916/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11916.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11916",
"merged_at": "2015-12-28T11:18:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11916.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11916"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11917 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11917/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11917/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11917/events | https://github.com/pandas-dev/pandas/pull/11917 | 124,096,161 | MDExOlB1bGxSZXF1ZXN0NTQ2NzEzMjE= | 11,917 | DOC: fix get_dummies function examples | {
"avatar_url": "https://avatars.githubusercontent.com/u/502306?v=4",
"events_url": "https://api.github.com/users/moutai/events{/privacy}",
"followers_url": "https://api.github.com/users/moutai/followers",
"following_url": "https://api.github.com/users/moutai/following{/other_user}",
"gists_url": "https://api.github.com/users/moutai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moutai",
"id": 502306,
"login": "moutai",
"node_id": "MDQ6VXNlcjUwMjMwNg==",
"organizations_url": "https://api.github.com/users/moutai/orgs",
"received_events_url": "https://api.github.com/users/moutai/received_events",
"repos_url": "https://api.github.com/users/moutai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moutai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moutai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moutai"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2015-12-28T17:41:23Z | 2015-12-28T17:52:03Z | 2015-12-28T17:51:54Z | CONTRIBUTOR | null | Small change, to include the pd alias and to remove an extra colon on the last example.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11917/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11917/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11917.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11917",
"merged_at": "2015-12-28T17:51:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11917.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11917"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11918 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11918/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11918/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11918/events | https://github.com/pandas-dev/pandas/pull/11918 | 124,108,963 | MDExOlB1bGxSZXF1ZXN0NTQ2NzY3Mjk= | 11,918 | BUG in DataFrameGroupBy.rank raising an obscure TypeError | {
"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": "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 | []
| null | 40 | 2015-12-28T19:11:55Z | 2016-11-22T11:53:33Z | 2016-11-22T11:53:33Z | CONTRIBUTOR | null | Fix issue #11759
Two things:
1. `Series.rank` and `DataFrame.rank` have been moved to `generic.py` and get the same signature [done with PR #11924]
2. It can happen that aggregate functions are applied to grouped object in a recursive way. Instead of raising a plain `ValueError` when that fails, and catching it afterwards indistinctly, I propose to raise an `_ErrorContainer` exception containing the last meaningful error to have been raised. Thus, when everything else has failed, we can still recover a meaningful exception and throw it back at the user.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11918/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11918/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11918.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11918",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11918.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11918"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11919 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11919/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11919/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11919/events | https://github.com/pandas-dev/pandas/issues/11919 | 124,132,764 | MDU6SXNzdWUxMjQxMzI3NjQ= | 11,919 | list recent Pandas tutorial in Wiki and webpage | {
"avatar_url": "https://avatars.githubusercontent.com/u/4312421?v=4",
"events_url": "https://api.github.com/users/stonebig/events{/privacy}",
"followers_url": "https://api.github.com/users/stonebig/followers",
"following_url": "https://api.github.com/users/stonebig/following{/other_user}",
"gists_url": "https://api.github.com/users/stonebig/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stonebig",
"id": 4312421,
"login": "stonebig",
"node_id": "MDQ6VXNlcjQzMTI0MjE=",
"organizations_url": "https://api.github.com/users/stonebig/orgs",
"received_events_url": "https://api.github.com/users/stonebig/received_events",
"repos_url": "https://api.github.com/users/stonebig/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stonebig/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stonebig/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stonebig"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| null | 14 | 2015-12-28T22:04:06Z | 2019-08-22T17:23:13Z | 2019-08-22T17:23:13Z | CONTRIBUTOR | null | I found the excellent and excellently-recorded pycon 2015 pandas tutorial among a forest of tutorials.
wouldn't it be nice for newcomer to find a link to it (or other excellent ones) in the website or the Wiki ?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11919/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11919/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11920 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11920/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11920/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11920/events | https://github.com/pandas-dev/pandas/pull/11920 | 124,160,677 | MDExOlB1bGxSZXF1ZXN0NTQ3MDExNjE= | 11,920 | ENH: raise exception when sqlalchemy is required for database string URI | {
"avatar_url": "https://avatars.githubusercontent.com/u/2092714?v=4",
"events_url": "https://api.github.com/users/ksindi/events{/privacy}",
"followers_url": "https://api.github.com/users/ksindi/followers",
"following_url": "https://api.github.com/users/ksindi/following{/other_user}",
"gists_url": "https://api.github.com/users/ksindi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ksindi",
"id": 2092714,
"login": "ksindi",
"node_id": "MDQ6VXNlcjIwOTI3MTQ=",
"organizations_url": "https://api.github.com/users/ksindi/orgs",
"received_events_url": "https://api.github.com/users/ksindi/received_events",
"repos_url": "https://api.github.com/users/ksindi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ksindi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ksindi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ksindi"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 21 | 2015-12-29T04:09:22Z | 2016-08-10T10:15:35Z | 2016-08-10T10:15:35Z | CONTRIBUTOR | null | - I get a cryptic error `AttributeError: 'str' object has no attribute 'cursor'` if sqlalchemy is not installed and I pass a database string URI to `pandas.read_sql`. I think the error should be made more explicit.
- Also I think there is a shadowing issue with`_SQLALCHEMY_INSTALLED` in `_engine_builder`.
```
/opt/conda/lib/python3.4/site-packages/pandas/io/sql.py in read_sql_query(sql, con, index_col, coerce_float, params, parse_dates, chunksize)
427 return pandas_sql.read_query(
428 sql, index_col=index_col, params=params, coerce_float=coerce_float,
--> 429 parse_dates=parse_dates, chunksize=chunksize)
430
431
/opt/conda/lib/python3.4/site-packages/pandas/io/sql.py in read_query(self, sql, index_col, coerce_float, params, parse_dates, chunksize)
1569
1570 args = _convert_params(sql, params)
-> 1571 cursor = self.execute(*args)
1572 columns = [col_desc[0] for col_desc in cursor.description]
1573
/opt/conda/lib/python3.4/site-packages/pandas/io/sql.py in execute(self, *args, **kwargs)
1532 cur = self.con
1533 else:
-> 1534 cur = self.con.cursor()
1535 try:
1536 if kwargs:
AttributeError: 'str' object has no attribute 'cursor'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11920/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11920/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11920.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11920",
"merged_at": "2016-08-10T10:15:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11920.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11920"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11921 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11921/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11921/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11921/events | https://github.com/pandas-dev/pandas/issues/11921 | 124,173,100 | MDU6SXNzdWUxMjQxNzMxMDA= | 11,921 | Specify columns [indices?] to return raw HTML on read_html()? | {
"avatar_url": "https://avatars.githubusercontent.com/u/3202506?v=4",
"events_url": "https://api.github.com/users/jeremyabramson/events{/privacy}",
"followers_url": "https://api.github.com/users/jeremyabramson/followers",
"following_url": "https://api.github.com/users/jeremyabramson/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremyabramson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeremyabramson",
"id": 3202506,
"login": "jeremyabramson",
"node_id": "MDQ6VXNlcjMyMDI1MDY=",
"organizations_url": "https://api.github.com/users/jeremyabramson/orgs",
"received_events_url": "https://api.github.com/users/jeremyabramson/received_events",
"repos_url": "https://api.github.com/users/jeremyabramson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeremyabramson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremyabramson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeremyabramson"
} | [
{
"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"
},
{
"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 | []
| null | 1 | 2015-12-29T06:58:56Z | 2015-12-29T19:22:23Z | 2015-12-29T19:22:23Z | NONE | null | As per this: http://stackoverflow.com/questions/34236870/pandas-read-html-to-return-raw-html-contents-for-certain-rows-cells-etc?noredirect=1#comment56359521_34236870 Pandas returns the HTML stripped text of tables it scrapes. It might be nice to be able to specify columns for which you would return the raw HTML for post-processing. This would let you maintain references to images, grab links, etc.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11921/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11921/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11922 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11922/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11922/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11922/events | https://github.com/pandas-dev/pandas/issues/11922 | 124,207,749 | MDU6SXNzdWUxMjQyMDc3NDk= | 11,922 | Wrong behavior for df.groupby(()) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1009428?v=4",
"events_url": "https://api.github.com/users/kynnjo/events{/privacy}",
"followers_url": "https://api.github.com/users/kynnjo/followers",
"following_url": "https://api.github.com/users/kynnjo/following{/other_user}",
"gists_url": "https://api.github.com/users/kynnjo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kynnjo",
"id": 1009428,
"login": "kynnjo",
"node_id": "MDQ6VXNlcjEwMDk0Mjg=",
"organizations_url": "https://api.github.com/users/kynnjo/orgs",
"received_events_url": "https://api.github.com/users/kynnjo/received_events",
"repos_url": "https://api.github.com/users/kynnjo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kynnjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kynnjo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kynnjo"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 3 | 2015-12-29T12:59:37Z | 2015-12-29T19:19:33Z | 2015-12-29T19:19:33Z | NONE | null | (I know that the following bug report will be dismissed, since what I refer to here as a "bug" is clearly intentional. I'm posting it only for-the-record.)
Currently, an exception is raised if DataFrame.groupby is called with an empty tuple as argument:
```
>>> df.groupby(by=())
...
ValueError: No group keys passed!
```
Indeed, the underlying code is pretty direct about it:
```
.../python2.7/site-packages/pandas/core/groupby.pyc in _get_grouper(obj, key, axis, level, sort)
2277
2278 if len(groupings) == 0:
-> 2279 raise ValueError('No group keys passed!')
2280
```
This is not the correct behavior for this condition. It is therefore a "design bug". The correct behavior should be returning a trivial grouping, consisting of exactly 1 group (containing, of course, all the rows). This is consistent with the semantics "each group consists of the rows that agree on the grouping columns": when there are no grouping columns, all rows fall into one group.
In particular, the proposed behavior will render the expression
```
df.groupby(by=tuple(df.columns))
```
valid even when `df` has no columns. The expression above groups identical rows together, and it should work for all valid dataframes. In a dataframe with no columns, all the rows are identical.
| {
"+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/11922/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11922/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11923 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11923/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11923/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11923/events | https://github.com/pandas-dev/pandas/pull/11923 | 124,252,754 | MDExOlB1bGxSZXF1ZXN0NTQ3NDg5MjA= | 11,923 | API: GH11885 DataFrame.round() now returns non-numeric columns unchanged | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 3 | 2015-12-29T18:51:08Z | 2015-12-29T21:12:59Z | 2015-12-29T21:12:56Z | CONTRIBUTOR | null | closes #11885
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11923/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11923/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11923.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11923",
"merged_at": "2015-12-29T21:12:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11923.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11923"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11924 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11924/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11924/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11924/events | https://github.com/pandas-dev/pandas/pull/11924 | 124,276,954 | MDExOlB1bGxSZXF1ZXN0NTQ3NjM1MDA= | 11,924 | CLN: Moving Series.rank and DataFrame.rank to generic.py | {
"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": "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": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 13 | 2015-12-29T22:27:20Z | 2016-01-28T21:46:58Z | 2016-01-28T21:41:24Z | CONTRIBUTOR | null | I'm pulling this out from PR #11918. It is a first step toward solving issue #11759
The signature of `Series.rank` changes, and is now the same as `DataFrame.rank`. This may cause some problems...
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11924/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11924/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11924.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11924",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11924.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11924"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11925 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11925/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11925/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11925/events | https://github.com/pandas-dev/pandas/issues/11925 | 124,278,392 | MDU6SXNzdWUxMjQyNzgzOTI= | 11,925 | BUG: subtraction of datetime / timedelta should be allowed | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2015-12-29T22:39:08Z | 2015-12-31T13:46:31Z | 2015-12-31T13:46:31Z | MEMBER | null | ```
In [12]: s2
Out[12]:
0 1 days
1 2 days
2 3 days
dtype: timedelta64[ns]
In [9]: pd.Timestamp('2012-01-01') + s2
Out[9]:
0 2012-01-02
1 2012-01-03
2 2012-01-04
dtype: datetime64[ns]
In [10]: pd.Timestamp('2012-01-01') - s2
TypeError: can only operate on a timedelta/DateOffset and a datetime for addition, but the operator [__rsub__] was passed
In [11]: pd.Timestamp('2012-01-01') + (-s2)
Out[11]:
0 2011-12-31
1 2011-12-30
2 2011-12-29
dtype: datetime64[ns]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11925/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11925/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11926 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11926/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11926/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11926/events | https://github.com/pandas-dev/pandas/issues/11926 | 124,299,071 | MDU6SXNzdWUxMjQyOTkwNzE= | 11,926 | BUG: selecting from HDFStore with a tz-aware level of a multi-index | {
"avatar_url": "https://avatars.githubusercontent.com/u/8992201?v=4",
"events_url": "https://api.github.com/users/iyer/events{/privacy}",
"followers_url": "https://api.github.com/users/iyer/followers",
"following_url": "https://api.github.com/users/iyer/following{/other_user}",
"gists_url": "https://api.github.com/users/iyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iyer",
"id": 8992201,
"login": "iyer",
"node_id": "MDQ6VXNlcjg5OTIyMDE=",
"organizations_url": "https://api.github.com/users/iyer/orgs",
"received_events_url": "https://api.github.com/users/iyer/received_events",
"repos_url": "https://api.github.com/users/iyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iyer"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"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": "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 | 2015-12-30T03:17:51Z | 2019-07-01T11:41:25Z | 2019-07-01T11:41:25Z | NONE | null | I'm encountering a bug when I query for a multiindex dataframe with a timezoned DatetimeIndex in one of the multiindex levels.
This only happens
1) for a multiindex with one of the levels as timestamps with timezones (As seen in [1]). If timestamps have no timezone set, there is no issue (As seen in [2])
2) if the query returns no rows
3) in pandas 0.17.\* This was working fine in pandas 0.16.*
``` python
In [1]: periods = 10
...: dts = pd.date_range('20151201', periods=periods, freq='D', tz='UTC') #WITH TIMEZONE
...: mi = pd.MultiIndex.from_arrays([dts, range(periods)], names = ['DATE', 'NO'])
...: df = pd.DataFrame({'MYCOL':0}, index=mi)
...: file_path = 'table.h5'
...: key = 'mykey'
...: with pd.HDFStore(file_path, 'w') as store:
...: store.append(key, df, format='table', append=True)
...: dfres = store.select(key, where="""DATE > '20151220'""")
...: print(dfres)
...:
...:
Traceback (most recent call last):
File "<ipython-input-1-e0b7db50fd4d>", line 9, in <module>
dfres = store.select(key, where="""DATE > '20151220'""")
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/io/pytables.py", line 669, in select
return it.get_result()
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/io/pytables.py", line 1352, in get_result
results = self.func(self.start, self.stop, where)
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/io/pytables.py", line 662, in func
columns=columns, **kwargs)
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/io/pytables.py", line 4170, in read
df = super(AppendableMultiFrameTable, self).read(**kwargs)
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/io/pytables.py", line 4029, in read
df = concat(frames, axis=1, verify_integrity=False).consolidate()
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/tools/merge.py", line 813, in concat
return op.get_result()
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/tools/merge.py", line 995, in get_result
mgrs_indexers, self.new_axes, concat_axis=self.axis, copy=self.copy)
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/core/internals.py", line 4456, in concatenate_block_managers
for placement, join_units in concat_plan]
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/core/internals.py", line 4456, in <listcomp>
for placement, join_units in concat_plan]
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/core/internals.py", line 4553, in concatenate_join_units
for ju in join_units]
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/core/internals.py", line 4553, in <listcomp>
for ju in join_units]
File "/export/data/anaconda/anaconda3.2.4/lib/python3.5/site-packages/pandas/core/internals.py", line 4801, in get_reindexed_values
missing_arr = np.empty(self.shape, dtype=empty_dtype)
TypeError: data type not understood
In [2]: periods = 10
...: dts = pd.date_range('20151201', periods=periods, freq='D') #WITHOUT TIMEZONE
...: mi = pd.MultiIndex.from_arrays([dts, range(periods)], names = ['DATE', 'NO'])
...: df = pd.DataFrame({'MYCOL':0}, index=mi)
...: file_path = 'table.h5'
...: key = 'mykey'
...: with pd.HDFStore(file_path, 'w') as store:
...: store.append(key, df, format='table', append=True)
...: dfres = store.select(key, where="""DATE > '20151220'""")
...: print(dfres)
...:
...:
Empty DataFrame
Columns: [MYCOL]
Index: []
In [3]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.11.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
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
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.10
pymysql: None
psycopg2: None
Jinja2: 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/11926/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11926/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11927 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11927/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11927/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11927/events | https://github.com/pandas-dev/pandas/issues/11927 | 124,326,450 | MDU6SXNzdWUxMjQzMjY0NTA= | 11,927 | read_excel: Wrong dtypes for numeric text fields | {
"avatar_url": "https://avatars.githubusercontent.com/u/5754862?v=4",
"events_url": "https://api.github.com/users/suokunlong/events{/privacy}",
"followers_url": "https://api.github.com/users/suokunlong/followers",
"following_url": "https://api.github.com/users/suokunlong/following{/other_user}",
"gists_url": "https://api.github.com/users/suokunlong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/suokunlong",
"id": 5754862,
"login": "suokunlong",
"node_id": "MDQ6VXNlcjU3NTQ4NjI=",
"organizations_url": "https://api.github.com/users/suokunlong/orgs",
"received_events_url": "https://api.github.com/users/suokunlong/received_events",
"repos_url": "https://api.github.com/users/suokunlong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/suokunlong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/suokunlong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/suokunlong"
} | [
{
"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"
},
{
"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 | []
| null | 1 | 2015-12-30T09:41:15Z | 2015-12-30T15:22:19Z | 2015-12-30T15:22:19Z | NONE | null | In the following example, df column a are exported as text (string) in xlsx file, but imported back to df2 as int.
In [161]: df = pd.DataFrame({'a':['01','02','03','04'], 'b':[5,6,7,8]})
In [162]: df
Out[162]:
a b
0 01 5
1 02 6
2 03 7
3 04 8
In [163]: df.dtypes
Out[163]:
a object
b int64
dtype: object
In [164]: df.to_excel('tmp.xlsx')
In [165]: df2 = pd.read_excel('tmp.xlsx')
In [166]: df2
Out[166]:
a b
0 1 5
1 2 6
2 3 7
3 4 8
In [167]: df2.dtypes
Out[167]:
a int64
b int64
dtype: object
Users usually set columns (which contain numeric data) as "text" in excel for special purposes, pandas should keep these dtypes as str, please do not try to convert it back to numberic. At least, pandas should provide an option in pd.read_excel() to switch this dtype conversion.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11927/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11927/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11928 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11928/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11928/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11928/events | https://github.com/pandas-dev/pandas/issues/11928 | 124,338,279 | MDU6SXNzdWUxMjQzMzgyNzk= | 11,928 | Linting and PEP8 compliance | {
"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"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 35 | 2015-12-30T11:47:38Z | 2016-02-03T14:11:24Z | 2016-02-03T14:06:28Z | MEMBER | null | - [ ] update docs with tools to use & that Travis is checking
I have been away from the codebase for a while and ouch, my eyes. I have used pyflakes or flake8 assiduously for Python development for a long time now and it seems that conventional style isn't being followed in the codebase:
$ flake8 pandas/core | wc -l
2047
It's a big codebase so adding a pre-commit hook might be too onerous, but can we get flake8 back to zero (with some well-placed `# noqa` marks on unintentionally-unused-imports)?
Secondly, perhaps we should add a Readability or Style label for these kinds of issues?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11928/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11928/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11929 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11929/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11929/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11929/events | https://github.com/pandas-dev/pandas/issues/11929 | 124,363,511 | MDU6SXNzdWUxMjQzNjM1MTE= | 11,929 | to_datetime() works until 2262-04-11 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6040191?v=4",
"events_url": "https://api.github.com/users/su79eu7k/events{/privacy}",
"followers_url": "https://api.github.com/users/su79eu7k/followers",
"following_url": "https://api.github.com/users/su79eu7k/following{/other_user}",
"gists_url": "https://api.github.com/users/su79eu7k/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/su79eu7k",
"id": 6040191,
"login": "su79eu7k",
"node_id": "MDQ6VXNlcjYwNDAxOTE=",
"organizations_url": "https://api.github.com/users/su79eu7k/orgs",
"received_events_url": "https://api.github.com/users/su79eu7k/received_events",
"repos_url": "https://api.github.com/users/su79eu7k/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/su79eu7k/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/su79eu7k/subscriptions",
"type": "User",
"url": "https://api.github.com/users/su79eu7k"
} | []
| closed | false | null | []
| null | 2 | 2015-12-30T15:44:55Z | 2015-12-30T15:48:07Z | 2015-12-30T15:47:08Z | NONE | null | ```
>>> import pandas as pd
>>> print pd.to_datetime('22620411')
2262-04-11 00:00:00
>>> print pd.to_datetime('22620412')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Anaconda3\envs\py27\lib\site-packages\pandas\util\decorators.py", line 89, in wrapper
return func(*args, **kwargs)
File "C:\Anaconda3\envs\py27\lib\site-packages\pandas\tseries\tools.py", line 276, in to_datetime
unit=unit, infer_datetime_format=infer_datetime_format)
File "C:\Anaconda3\envs\py27\lib\site-packages\pandas\tseries\tools.py", line 397, in _to_datetime
return _convert_listlike(np.array([ arg ]), box, format)[0]
File "C:\Anaconda3\envs\py27\lib\site-packages\pandas\tseries\tools.py", line 383, in _convert_listlike
raise e
pandas.tslib.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 2262-04-12 00:00:00
>>>
```
Please someone confirm the to_datetime() error above. I checked on both python 2.7.11 and python 3.5.1. The exact day could be different with 22620411. You can reproduce easily with 99991231 which is the important day for many ERP related SQL database to represent permanent valid date.
I think the above is very similar with https://github.com/pydata/pandas/issues/4255 which is the closed one.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11929/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11929/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11930 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11930/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11930/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11930/events | https://github.com/pandas-dev/pandas/issues/11930 | 124,377,333 | MDU6SXNzdWUxMjQzNzczMzM= | 11,930 | DataFrame.head(0) doesn't return an empty frame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1843539?v=4",
"events_url": "https://api.github.com/users/trvrm/events{/privacy}",
"followers_url": "https://api.github.com/users/trvrm/followers",
"following_url": "https://api.github.com/users/trvrm/following{/other_user}",
"gists_url": "https://api.github.com/users/trvrm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trvrm",
"id": 1843539,
"login": "trvrm",
"node_id": "MDQ6VXNlcjE4NDM1Mzk=",
"organizations_url": "https://api.github.com/users/trvrm/orgs",
"received_events_url": "https://api.github.com/users/trvrm/received_events",
"repos_url": "https://api.github.com/users/trvrm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trvrm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trvrm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trvrm"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 7 | 2015-12-30T17:32:06Z | 2016-01-02T06:39:59Z | 2016-01-02T06:39:59Z | NONE | null | ``` python
pandas.DataFrame({"stuff":[1,2,3,4,5]}).head(0)
```
returns
``` python
stuff
0 1
1 2
2 3
3 4
4 5
```
I would expect an empty data frame, in the same way that
``` python
[1,2,3,4,5][0:0]
```
returns an empty list.
This is with pandas version 0.15.0.
The documentation (http://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.DataFrame.head.html) says `head(n)` returns 'first n rows', so I'd expect 0 rows if n is 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/11930/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11930/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11931 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11931/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11931/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11931/events | https://github.com/pandas-dev/pandas/issues/11931 | 124,384,359 | MDU6SXNzdWUxMjQzODQzNTk= | 11,931 | Test failure on OpenBSD: Couldn't find a tree builder with the features you requested: html5lib | {
"avatar_url": "https://avatars.githubusercontent.com/u/604955?v=4",
"events_url": "https://api.github.com/users/vext01/events{/privacy}",
"followers_url": "https://api.github.com/users/vext01/followers",
"following_url": "https://api.github.com/users/vext01/following{/other_user}",
"gists_url": "https://api.github.com/users/vext01/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vext01",
"id": 604955,
"login": "vext01",
"node_id": "MDQ6VXNlcjYwNDk1NQ==",
"organizations_url": "https://api.github.com/users/vext01/orgs",
"received_events_url": "https://api.github.com/users/vext01/received_events",
"repos_url": "https://api.github.com/users/vext01/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vext01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vext01/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vext01"
} | []
| closed | false | null | []
| null | 3 | 2015-12-30T18:37:53Z | 2015-12-30T21:23:39Z | 2015-12-30T21:23:39Z | NONE | null | Hi,
I'm trying to port pandas-0.17.1 to OpenBSD. There are some failing tests. The first class of failure looks like this:
```
FAIL: test_invalid_url (pandas.io.tests.test_html.TestReadHtml)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pandas/util/testing.py", line 1790, in wrapper
return t(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pandas/io/tests/test_html.py", line 290, in test_invalid_url
tm.assert_equal(str(e), 'No tables found')
File "/usr/local/lib/python2.7/site-packages/pandas/util/testing.py", line 600, in assert_equal
assert a == b, "%s: %r != %r" % (msg.format(a,b), a, b)
AssertionError: : "Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?" != 'No tables found'
```
I have installed:
```
py-beautifulsoup-3.2.1
py-beautifulsoup4-4.1.3
py-html5lib-0.11.1
```
Any ideas? Thanks.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11931/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11931/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11932 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11932/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11932/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11932/events | https://github.com/pandas-dev/pandas/issues/11932 | 124,385,151 | MDU6SXNzdWUxMjQzODUxNTE= | 11,932 | Test failure on OpenBSD: unexpected keyword argument 'encoding' | {
"avatar_url": "https://avatars.githubusercontent.com/u/604955?v=4",
"events_url": "https://api.github.com/users/vext01/events{/privacy}",
"followers_url": "https://api.github.com/users/vext01/followers",
"following_url": "https://api.github.com/users/vext01/following{/other_user}",
"gists_url": "https://api.github.com/users/vext01/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vext01",
"id": 604955,
"login": "vext01",
"node_id": "MDQ6VXNlcjYwNDk1NQ==",
"organizations_url": "https://api.github.com/users/vext01/orgs",
"received_events_url": "https://api.github.com/users/vext01/received_events",
"repos_url": "https://api.github.com/users/vext01/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vext01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vext01/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vext01"
} | [
{
"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 | []
| null | 1 | 2015-12-30T18:43:45Z | 2015-12-31T13:51:28Z | 2015-12-31T13:51:17Z | NONE | null | On pandas-0.17.1 on OpenBSD, many tests are failing like this:
```
ERROR: test_infer_s3_compression (pandas.io.tests.test_parsers.TestS3)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pandas/util/testing.py", line 1790, in wrapper
return t(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pandas/io/tests/test_parsers.py", line 4368, in test_infer_s3_compression
engine='python', compression='infer')
File "/usr/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 498, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python2.7/site-packages/pandas/io/parsers.py", line 262, in _read
compression=kwds.get('compression', None))
File "/usr/local/lib/python2.7/site-packages/pandas/io/common.py", line 290, in get_filepath_or_buffer
encoding=encoding))
TypeError: get_contents_as_string() got an unexpected keyword argument 'encoding'
```
This is under Python-2.7.11.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11932/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11932/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11933 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11933/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11933/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11933/events | https://github.com/pandas-dev/pandas/issues/11933 | 124,391,403 | MDU6SXNzdWUxMjQzOTE0MDM= | 11,933 | BUG: rounding selectively not working | {
"avatar_url": "https://avatars.githubusercontent.com/u/12434323?v=4",
"events_url": "https://api.github.com/users/stoffprof/events{/privacy}",
"followers_url": "https://api.github.com/users/stoffprof/followers",
"following_url": "https://api.github.com/users/stoffprof/following{/other_user}",
"gists_url": "https://api.github.com/users/stoffprof/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stoffprof",
"id": 12434323,
"login": "stoffprof",
"node_id": "MDQ6VXNlcjEyNDM0MzIz",
"organizations_url": "https://api.github.com/users/stoffprof/orgs",
"received_events_url": "https://api.github.com/users/stoffprof/received_events",
"repos_url": "https://api.github.com/users/stoffprof/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stoffprof/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stoffprof/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stoffprof"
} | [
{
"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"
} | 8 | 2015-12-30T19:40:43Z | 2015-12-30T20:45:27Z | 2015-12-30T20:38:38Z | NONE | null | I was trying to use the round method on a dataframe and was getting some columns not rounded. This example replicates it:
```
0 1
0 163.339996338 55.178787875
1 166.788757324 47.98198625
2 199.475143433 64.40626575
3 257.137786865 88.855215375
4 248.984573364 86.0543125
df.dtypes:
0 float32
1 float64
dtype: object
df.round(3)
0 163.339996338 55.179
1 166.789001465 47.982
2 199.475006104 64.406
3 257.138000488 88.855
4 248.98500061 86.054
```
I'm not sure if this is being caused only by the different types for each column, but if I convert column 0 to a `float64` the rounding is applied to both columns.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11933/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11933/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11934 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11934/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11934/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11934/events | https://github.com/pandas-dev/pandas/issues/11934 | 124,391,988 | MDU6SXNzdWUxMjQzOTE5ODg= | 11,934 | Bug: UTC in to_datetime() not working in 0.17.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/14838612?v=4",
"events_url": "https://api.github.com/users/yueatwork/events{/privacy}",
"followers_url": "https://api.github.com/users/yueatwork/followers",
"following_url": "https://api.github.com/users/yueatwork/following{/other_user}",
"gists_url": "https://api.github.com/users/yueatwork/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yueatwork",
"id": 14838612,
"login": "yueatwork",
"node_id": "MDQ6VXNlcjE0ODM4NjEy",
"organizations_url": "https://api.github.com/users/yueatwork/orgs",
"received_events_url": "https://api.github.com/users/yueatwork/received_events",
"repos_url": "https://api.github.com/users/yueatwork/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yueatwork/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yueatwork/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yueatwork"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2015-12-30T19:46:48Z | 2016-02-20T18:27:34Z | 2016-02-20T18:27:34Z | NONE | null | In the case below, setting `utc=True` in pandas.to_datetime actually removes the UTC attribute from the input:
```
import pandas as pd
import pytz
start = pd.Timestamp('2014-01-01', tz=pytz.UTC)
end = pd.Timestamp('2014-01-03', tz=pytz.UTC)
date_range = pd.bdate_range(start, end)
df = pd.DataFrame({'x':1}, index=date_range)
df.index
# DatetimeIndex([...], dtype='datetime64[ns, UTC]', freq='B')
pd.to_datetime(df.index, utc=True)
# DatetimeIndex([...], dtype='datetime64[ns]', freq='B')
```
the last function removes the UTC attribute from the input, even though `utc` is set to `True`.
This only happens in pandas 0.17.1. pandas 0.16.x have a different implementation and does not have this issue.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11934/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11934/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11935 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11935/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11935/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11935/events | https://github.com/pandas-dev/pandas/pull/11935 | 124,404,815 | MDExOlB1bGxSZXF1ZXN0NTQ4MzI4NDU= | 11,935 | [WIP] adding overby to core api | {
"avatar_url": "https://avatars.githubusercontent.com/u/884032?v=4",
"events_url": "https://api.github.com/users/CamDavidsonPilon/events{/privacy}",
"followers_url": "https://api.github.com/users/CamDavidsonPilon/followers",
"following_url": "https://api.github.com/users/CamDavidsonPilon/following{/other_user}",
"gists_url": "https://api.github.com/users/CamDavidsonPilon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CamDavidsonPilon",
"id": 884032,
"login": "CamDavidsonPilon",
"node_id": "MDQ6VXNlcjg4NDAzMg==",
"organizations_url": "https://api.github.com/users/CamDavidsonPilon/orgs",
"received_events_url": "https://api.github.com/users/CamDavidsonPilon/received_events",
"repos_url": "https://api.github.com/users/CamDavidsonPilon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CamDavidsonPilon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CamDavidsonPilon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CamDavidsonPilon"
} | []
| closed | false | null | []
| null | 4 | 2015-12-30T21:57:57Z | 2015-12-31T16:51:33Z | 2015-12-31T13:44:21Z | NONE | null | **I'd love to get some feedback on this before I proceed further.** @jreback and @TomAugspurger available?
### What is this?
This adds a new function to core DataFrames called `overby`. The main use case for this is to group data, sort within groups and apply a function to the resulting iterator.
It's very similar to the `OVER` clauses in some [SQL engines](https://my.vertica.com/docs/4.1/HTML/Master/10955.htm).
### Examples:
#### Cumulative Sum within group
Suppose I want to do groupby + cumulative sum within groups. The current best answer is to do [groupby twice](http://stackoverflow.com/questions/22650833/pandas-groupby-cumulative-sum):
```
df.groupby(by=['name','day']).sum().groupby(level=[0]).cumsum()
```
With overby, this becomes:
``` python
def cumulative_sum(iterrows):
cumsum = 0
for _, row in iterrows:
cumsum += row['no']
yield cumsum
result = df.overby('name', 'day', cumulative_sum)
```
This is more efficient than two `groupby`s.
In a different example, to have a better understanding of what's going on:
``` python
print df
"""
id t x
0 0 1 2
1 2 1 0
2 1 0 2
3 1 0 1
4 0 0 1
5 2 1 1
6 2 1 1
7 0 0 1
"""
def cumulative_sum(iterrows):
sum_ = 0
for _, row in iterrows:
sum_ += row['x']
yield {'cumsum':sum_, 'value_added': row['x']}
print df.overby('id', 't', cumulative_sum)
"""
cumsum value_added
id
0 0 1 1
1 2 1
2 4 2
2 0 0 0
1 1 1
2 2 1
1 0 1 1
1 3 2
"""
```
#### `nlargest` simplified
`nlargest` is a Pandas function that operates on grouped objects to find the largest values. With overby, an alternative implementation is clear:
``` python
df = pd.DataFrame([
{'id': 1,'x': 0},
{'id': 1,'x': 2},
{'id': 1,'x': 1},
{'id': 2,'x': 1},
{'id': 2,'x': 3},
{'id': 2,'x': 10},
])
## more verbose
def first_n(iterrows, n=2):
counter = 0
for _, row in iterrows:
yield row['x']
counter += 1
if counter >= n:
break
top_2 = df.overby('id', 'x', first_n, ascending=False)
## less verbose and a one liner
top_2 = df.overby('id', 'x', lambda iter: (row['x'] for _, row in islice(iter,2)), ascending=False)
```
This implementation is obviously much slower than the builtin version, _but_ it offers much more flexibility (example: one can put conditionals before the yield to filter some things out)
### Accumulating fact tables
This is an example from my production environment at work. Using `overby`, it's possible to build very powerful accumulating fact tables for use in data warehousing. Consider the following:
``` python
previous_input = pd.DataFrame([
{'user': 1, 'number_of_purchases`: 9, 'first_purchase_at': Jan 01, 2015, '10th_purchase_at`: None}
])
new_purchases = pd.DataFrame([
{'user': 1, 'first_purchase_at': Jan 05, 2015, 'number_of_purchases': 1, '10th_purchase_at`: None},
{'user': 2, 'first_purchase_at': Jan 05, 2015, 'number_of_purchases': 1, '10th_purchase_at`: None},
])
all_data = pd.concat([previous_input, new_purchases])
def reduce_metrics(iterrows):
return reduce(iterrows)
def reduce(current_row, next_row):
return
{
'user': current_row['user'],
'first_purchase_at': min(current_row['first_purchase_at'], next_row['first_purchase_at']),
'10th_purchase_at': something_more_complicated_than_min(current_row, next_row),
'number_of_purchases': current_row['number_of_purchases'] + next_row[''number_of_purchases']
}
all_data.overby('user', 'first_purchase_at', reduce_metrics)
"""
results look like:
{'user': 1, 'first_purchase_at': Jan 01, 2015, 'number_of_purchases': 10, '10th_purchase_at`: Jan 05, 2015},
{'user': 2, 'first_purchase_at': Jan 05, 2015, 'number_of_purchases': 1, '10th_purchase_at`: None},
"""
```
### To Do
- [ ] tests
- [ ] docs
- [ ] reviews
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11935/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11935/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11935.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11935",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11935.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11935"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11936 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11936/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11936/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11936/events | https://github.com/pandas-dev/pandas/issues/11936 | 124,459,831 | MDU6SXNzdWUxMjQ0NTk4MzE= | 11,936 | API: allow interpolating backwards at start of series without limit | {
"avatar_url": "https://avatars.githubusercontent.com/u/1150402?v=4",
"events_url": "https://api.github.com/users/kdebrab/events{/privacy}",
"followers_url": "https://api.github.com/users/kdebrab/followers",
"following_url": "https://api.github.com/users/kdebrab/following{/other_user}",
"gists_url": "https://api.github.com/users/kdebrab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kdebrab",
"id": 1150402,
"login": "kdebrab",
"node_id": "MDQ6VXNlcjExNTA0MDI=",
"organizations_url": "https://api.github.com/users/kdebrab/orgs",
"received_events_url": "https://api.github.com/users/kdebrab/received_events",
"repos_url": "https://api.github.com/users/kdebrab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kdebrab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kdebrab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kdebrab"
} | []
| closed | false | null | []
| null | 1 | 2015-12-31T11:06:46Z | 2018-10-21T01:40:56Z | 2018-10-21T01:40:56Z | CONTRIBUTOR | null | By default, interpolate only works in forward direction
``` python
In [1]: import numpy as np
...: import pandas as pd
...: ser = pd.Series([np.nan, np.nan, 5, np.nan, np.nan, 13, np.nan, np.nan])
In [2]: ser.interpolate()
Out[2]:
0 NaN
1 NaN
2 5.000000
3 7.666667
4 10.333333
5 13.000000
6 13.000000
7 13.000000
dtype: float64
```
In order to interpolate backwards at the start of the series, the only option one currently has is to provide a limit value:
``` python
In [3]: ser.interpolate(limit_direction='both', limit=1000)
Out[3]:
0 5.000000
1 5.000000
2 5.000000
3 7.666667
4 10.333333
5 13.000000
6 13.000000
7 13.000000
dtype: float64
```
Actually, once the limit is set, the argument limit_direction does not only apply to the limit, but also to the direction of the interpolation itself at start and end of the series:
``` python
In [4]: ser.interpolate(limit_direction='backward', limit=1000)
Out[4]:
0 5.000000
1 5.000000
2 5.000000
3 7.666667
4 10.333333
5 13.000000
6 NaN
7 NaN
dtype: float64
```
Thus, a logic API change seems to replace the argument 'limit_direction' by 'direction', and extending its use to the cases where limit is None (which here corresponds to infinity). Then one would be able to do:
``` python
In [5]: ser.interpolate(direction='both')
Out[5]:
0 5.000000
1 5.000000
2 5.000000
3 7.666667
4 10.333333
5 13.000000
6 13.000000
7 13.000000
dtype: float64
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11936/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11936/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11937 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11937/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11937/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11937/events | https://github.com/pandas-dev/pandas/pull/11937 | 124,501,189 | MDExOlB1bGxSZXF1ZXN0NTQ4NzkyNzE= | 11,937 | head(0) and tail(0) return empty DataFrames | {
"avatar_url": "https://avatars.githubusercontent.com/u/1843539?v=4",
"events_url": "https://api.github.com/users/trvrm/events{/privacy}",
"followers_url": "https://api.github.com/users/trvrm/followers",
"following_url": "https://api.github.com/users/trvrm/following{/other_user}",
"gists_url": "https://api.github.com/users/trvrm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trvrm",
"id": 1843539,
"login": "trvrm",
"node_id": "MDQ6VXNlcjE4NDM1Mzk=",
"organizations_url": "https://api.github.com/users/trvrm/orgs",
"received_events_url": "https://api.github.com/users/trvrm/received_events",
"repos_url": "https://api.github.com/users/trvrm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trvrm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trvrm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trvrm"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 12 | 2015-12-31T20:28:05Z | 2016-01-02T06:40:03Z | 2016-01-02T06:39:59Z | NONE | null | closes #11930
frame.head(0) and frame.tail(0) now return empty DataFrames.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11937/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11937/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11937.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11937",
"merged_at": "2016-01-02T06:39:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11937.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11937"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11938 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11938/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11938/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11938/events | https://github.com/pandas-dev/pandas/issues/11938 | 124,545,305 | MDU6SXNzdWUxMjQ1NDUzMDU= | 11,938 | API: .snap, xref Second().rollback(ts), rollforward(ts), onOffset(ts) does not change the timestamp | {
"avatar_url": "https://avatars.githubusercontent.com/u/6908933?v=4",
"events_url": "https://api.github.com/users/yonil7/events{/privacy}",
"followers_url": "https://api.github.com/users/yonil7/followers",
"following_url": "https://api.github.com/users/yonil7/following{/other_user}",
"gists_url": "https://api.github.com/users/yonil7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yonil7",
"id": 6908933,
"login": "yonil7",
"node_id": "MDQ6VXNlcjY5MDg5MzM=",
"organizations_url": "https://api.github.com/users/yonil7/orgs",
"received_events_url": "https://api.github.com/users/yonil7/received_events",
"repos_url": "https://api.github.com/users/yonil7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yonil7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yonil7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yonil7"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| open | false | null | []
| null | 13 | 2016-01-01T13:51:36Z | 2021-04-21T05:31:09Z | null | NONE | null | for example:
``` python
Second().rollback(pd.Timestamp('2015-02-02 08:35:22.555'))
```
does not change the timestamp and returns:
``` python
Timestamp('2015-02-02 08:35:22.555000')
```
This will probably also affect `DatetimeIndex.snap()` method.
(using pandas 0.17.1)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11938/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11938/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11939 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11939/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11939/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11939/events | https://github.com/pandas-dev/pandas/issues/11939 | 124,558,418 | MDU6SXNzdWUxMjQ1NTg0MTg= | 11,939 | str accessor fails for object-typed data that is actually numeric | {
"avatar_url": "https://avatars.githubusercontent.com/u/1712022?v=4",
"events_url": "https://api.github.com/users/michaelbilow/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelbilow/followers",
"following_url": "https://api.github.com/users/michaelbilow/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelbilow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelbilow",
"id": 1712022,
"login": "michaelbilow",
"node_id": "MDQ6VXNlcjE3MTIwMjI=",
"organizations_url": "https://api.github.com/users/michaelbilow/orgs",
"received_events_url": "https://api.github.com/users/michaelbilow/received_events",
"repos_url": "https://api.github.com/users/michaelbilow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelbilow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelbilow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelbilow"
} | [
{
"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": "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 | []
| null | 5 | 2016-01-01T19:35:58Z | 2016-01-02T02:16:16Z | 2016-01-02T01:25:50Z | NONE | null | One thing that is important for me, since convert_objects has been deprecated (#11221), is that removing it from my code yields a bug that I've reproduced in simplified form here:
``` python
import pandas as pd
import numpy as np
df = pd.DataFrame({'a': [1, 2]})
print df.dtypes #The dtype of a is an int64
df.a = df.a.astype(np.object)
print df.dtypes #Now, the dtype of a is an object
df.a.str.decode('utf-8', errors='ignore').str.encode('utf-8')
## AttributeError: Can only use .str accessor with string values,
## which use np.object_ dtype in pandas
```
In my code, I use convert_objects to convert everything that can be converted away from an object into something else, then I use the column's dtype to check if it can be handled by the unicode decode-encode step.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11939/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11939/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11940 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11940/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11940/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11940/events | https://github.com/pandas-dev/pandas/pull/11940 | 124,571,147 | MDExOlB1bGxSZXF1ZXN0NTQ4OTk3NTc= | 11,940 | DOC: several minor doc improvements | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-02T02:11:56Z | 2016-01-02T02:20:57Z | 2016-01-02T02:20:55Z | 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/11940/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11940/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11940.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11940",
"merged_at": "2016-01-02T02:20:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11940.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11940"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11941 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11941/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11941/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11941/events | https://github.com/pandas-dev/pandas/pull/11941 | 124,573,401 | MDExOlB1bGxSZXF1ZXN0NTQ5MDA1NDI= | 11,941 | PEP8: add in flake8 checking | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 3 | 2016-01-02T03:42:34Z | 2016-01-03T15:43:55Z | 2016-01-03T15:43:55Z | CONTRIBUTOR | null | don't actually fail this till #11928 is clean.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11941/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11941/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11941.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11941",
"merged_at": "2016-01-03T15:43:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11941.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11941"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11942 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11942/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11942/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11942/events | https://github.com/pandas-dev/pandas/pull/11942 | 124,582,909 | MDExOlB1bGxSZXF1ZXN0NTQ5MDM4Njc= | 11,942 | Leading space in to_string(index=False), #11833 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10365536?v=4",
"events_url": "https://api.github.com/users/Vutsuak16/events{/privacy}",
"followers_url": "https://api.github.com/users/Vutsuak16/followers",
"following_url": "https://api.github.com/users/Vutsuak16/following{/other_user}",
"gists_url": "https://api.github.com/users/Vutsuak16/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Vutsuak16",
"id": 10365536,
"login": "Vutsuak16",
"node_id": "MDQ6VXNlcjEwMzY1NTM2",
"organizations_url": "https://api.github.com/users/Vutsuak16/orgs",
"received_events_url": "https://api.github.com/users/Vutsuak16/received_events",
"repos_url": "https://api.github.com/users/Vutsuak16/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Vutsuak16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vutsuak16/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Vutsuak16"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-01-02T09:42:35Z | 2016-01-03T16:36:16Z | 2016-01-03T16:36:16Z | CONTRIBUTOR | null | closes #11833
I had to create a new PR , due to unresolved conflicts
Just look at the third commit , it is all squashed , ignore the rest
I don't get it why the travis build is not being executed for the third commit, it fails for its parent(the first commit) , but would pass for itself , as it is an updated version of its parent and the bug in the parent in tackled
I even checked for the merge-ability of the third commit , it merges with the branch. Still the travis build is not being executed
@jreback
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11942/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11942/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11942.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11942",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11942.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11942"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11943 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11943/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11943/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11943/events | https://github.com/pandas-dev/pandas/pull/11943 | 124,611,954 | MDExOlB1bGxSZXF1ZXN0NTQ5MTI4MTI= | 11,943 | ENH: allow indices and other list-likes in set_index GH10797 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6488220?v=4",
"events_url": "https://api.github.com/users/StephenKappel/events{/privacy}",
"followers_url": "https://api.github.com/users/StephenKappel/followers",
"following_url": "https://api.github.com/users/StephenKappel/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenKappel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/StephenKappel",
"id": 6488220,
"login": "StephenKappel",
"node_id": "MDQ6VXNlcjY0ODgyMjA=",
"organizations_url": "https://api.github.com/users/StephenKappel/orgs",
"received_events_url": "https://api.github.com/users/StephenKappel/received_events",
"repos_url": "https://api.github.com/users/StephenKappel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/StephenKappel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenKappel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/StephenKappel"
} | []
| closed | false | null | []
| null | 0 | 2016-01-02T21:22:37Z | 2016-01-02T22:51:23Z | 2016-01-02T21:53:39Z | 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/11943/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11943/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11943.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11943",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11943.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11943"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11944 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11944/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11944/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11944/events | https://github.com/pandas-dev/pandas/pull/11944 | 124,615,628 | MDExOlB1bGxSZXF1ZXN0NTQ5MTQyMjc= | 11,944 | ENH: allow index of col names in set_index GH10797 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6488220?v=4",
"events_url": "https://api.github.com/users/StephenKappel/events{/privacy}",
"followers_url": "https://api.github.com/users/StephenKappel/followers",
"following_url": "https://api.github.com/users/StephenKappel/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenKappel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/StephenKappel",
"id": 6488220,
"login": "StephenKappel",
"node_id": "MDQ6VXNlcjY0ODgyMjA=",
"organizations_url": "https://api.github.com/users/StephenKappel/orgs",
"received_events_url": "https://api.github.com/users/StephenKappel/received_events",
"repos_url": "https://api.github.com/users/StephenKappel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/StephenKappel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenKappel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/StephenKappel"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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 | []
| null | 14 | 2016-01-02T22:48:53Z | 2016-09-09T22:45:16Z | 2016-09-09T22:45:16Z | CONTRIBUTOR | null | See #10797
The desired result is to allow slices of the column index to be used in set_index. Like this:
```
>>> import pandas as pd
>>> data1 = 'x'*5 + 'y'*5
>>> data2 = ['a','b','c','d','e']*2
>>> data3 = range(10)
>>> data_dict = {'Cat': list(data1), 'SubCat': list(data2), 'Vals':data3}
>>> df = pd.DataFrame(data_dict)
>>> ordered_df = df[['Cat', 'SubCat', 'Vals']]
>>> ordered_df.set_index(ordered_df.columns[:2])
Vals
Cat SubCat
x a 0
b 1
c 2
d 3
e 4
y a 5
b 6
c 7
d 8
e 9
```
However, passing an Index of values to set_index currently has similar behavior to passing an array of values; the index will be used as the values of the new index. As to not break this behavior, this PR only treats the index like a list of column labels when the length of the index is not the same as the length of the DataFrame.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11944/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11944/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11944.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11944",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11944.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11944"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11945 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11945/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11945/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11945/events | https://github.com/pandas-dev/pandas/pull/11945 | 124,648,279 | MDExOlB1bGxSZXF1ZXN0NTQ5MjQ2NDg= | 11,945 | WIP/PEP8: pandas/core | {
"avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4",
"events_url": "https://api.github.com/users/rockg/events{/privacy}",
"followers_url": "https://api.github.com/users/rockg/followers",
"following_url": "https://api.github.com/users/rockg/following{/other_user}",
"gists_url": "https://api.github.com/users/rockg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rockg",
"id": 3195015,
"login": "rockg",
"node_id": "MDQ6VXNlcjMxOTUwMTU=",
"organizations_url": "https://api.github.com/users/rockg/orgs",
"received_events_url": "https://api.github.com/users/rockg/received_events",
"repos_url": "https://api.github.com/users/rockg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rockg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rockg"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 13 | 2016-01-03T13:21:24Z | 2016-01-04T02:53:58Z | 2016-01-04T02:53:54Z | CONTRIBUTOR | null | xref #11928
Putting this out there as a start. Will add to this over the next couple of days.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11945/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11945/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11945.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11945",
"merged_at": "2016-01-04T02:53:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11945.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11945"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11946 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11946/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11946/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11946/events | https://github.com/pandas-dev/pandas/issues/11946 | 124,653,301 | MDU6SXNzdWUxMjQ2NTMzMDE= | 11,946 | Series doesn't have an is_unique attribute | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | [
{
"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": "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": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2016-01-03T15:25:15Z | 2016-01-06T17:07:02Z | 2016-01-06T17:07:02Z | CONTRIBUTOR | null | Hello,
Series doesn't have is a `is_unique` attribute
Index have a `is_unique` attribute but not (values of a) Series
``` python
>>> df.index.is_unique
True
>>> df['Column1'].is_unique
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-417-c450d4c4ceda> in <module>()
----> 1 df['Date'].is_unique
//anaconda/envs/py27/lib/python2.7/site-packages/pandas/core/generic.pyc in __getattr__(self, name)
2358 return self[name]
2359 raise AttributeError("'%s' object has no attribute '%s'" %
-> 2360 (type(self).__name__, name))
2361
2362 def __setattr__(self, name, value):
AttributeError: 'Series' object has no attribute 'is_unique'
```
I'm doing this
``` python
def is_unique(ser):
return len(np.unique(ser.values)) == len(ser.values)
```
but this kind of attribute could be useful when you want to set a column as index and ensure that there is no duplicate keys.
PS: I know there is
``` python
df.set_index('Column1', verify_integrity=True)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11946/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11946/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11947 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11947/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11947/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11947/events | https://github.com/pandas-dev/pandas/issues/11947 | 124,657,721 | MDU6SXNzdWUxMjQ2NTc3MjE= | 11,947 | API: expose pd.to_time | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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"
}
]
| 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 | 2016-01-03T16:28:37Z | 2021-04-16T19:46:26Z | 2021-04-16T11:03:57Z | CONTRIBUTOR | null | xref: https://github.com/pydata/pandas/pull/11832 allows `pandas.tseries.tools.to_time` to parse `time` types (into `datetime.time`) objects. These are not first class within the pandas data structures. But still may want to expose this.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11947/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11947/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11948 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11948/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11948/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11948/events | https://github.com/pandas-dev/pandas/pull/11948 | 124,658,132 | MDExOlB1bGxSZXF1ZXN0NTQ5Mjc5MjM= | 11,948 | ENH: add is_unique attr to Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | [
{
"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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-01-03T16:40:57Z | 2016-01-06T17:06:45Z | 2016-01-06T17:06:45Z | CONTRIBUTOR | null | Try to fix https://github.com/pydata/pandas/issues/11946
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11948/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11948/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11948.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11948",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11948.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11948"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11949 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11949/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11949/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11949/events | https://github.com/pandas-dev/pandas/issues/11949 | 124,662,341 | MDU6SXNzdWUxMjQ2NjIzNDE= | 11,949 | Excel encoding issue | {
"avatar_url": "https://avatars.githubusercontent.com/u/7460499?v=4",
"events_url": "https://api.github.com/users/cschwem2er/events{/privacy}",
"followers_url": "https://api.github.com/users/cschwem2er/followers",
"following_url": "https://api.github.com/users/cschwem2er/following{/other_user}",
"gists_url": "https://api.github.com/users/cschwem2er/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cschwem2er",
"id": 7460499,
"login": "cschwem2er",
"node_id": "MDQ6VXNlcjc0NjA0OTk=",
"organizations_url": "https://api.github.com/users/cschwem2er/orgs",
"received_events_url": "https://api.github.com/users/cschwem2er/received_events",
"repos_url": "https://api.github.com/users/cschwem2er/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cschwem2er/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cschwem2er/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cschwem2er"
} | [
{
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "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 | []
| null | 7 | 2016-01-03T18:08:48Z | 2020-04-22T14:46:00Z | 2016-01-04T01:07:33Z | NONE | null | I want to read in Excel-Data (.xlsx) and have a problem with a wrong encoding of special characters. In the Excel-File, portuguese special characters, for example on "A", look like this:

**Á**
However, after reading in the data with Pandas Excel IO, they look like this:

**Ã**
I have no idea why this happens and how to solve this. Any help would be great.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11949/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11949/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11950 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11950/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11950/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11950/events | https://github.com/pandas-dev/pandas/pull/11950 | 124,666,057 | MDExOlB1bGxSZXF1ZXN0NTQ5MzAzOTM= | 11,950 | [WIP] ENH: add to_xarray conversion method | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-03T19:15:08Z | 2016-01-06T16:19:41Z | 2016-01-06T16:19:41Z | CONTRIBUTOR | null | xref #10000
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11950/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11950/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11950.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11950",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11950.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11950"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11951 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11951/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11951/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11951/events | https://github.com/pandas-dev/pandas/pull/11951 | 124,672,667 | MDExOlB1bGxSZXF1ZXN0NTQ5MzI5MjA= | 11,951 | PEP: pandas/core round 2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4",
"events_url": "https://api.github.com/users/rockg/events{/privacy}",
"followers_url": "https://api.github.com/users/rockg/followers",
"following_url": "https://api.github.com/users/rockg/following{/other_user}",
"gists_url": "https://api.github.com/users/rockg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rockg",
"id": 3195015,
"login": "rockg",
"node_id": "MDQ6VXNlcjMxOTUwMTU=",
"organizations_url": "https://api.github.com/users/rockg/orgs",
"received_events_url": "https://api.github.com/users/rockg/received_events",
"repos_url": "https://api.github.com/users/rockg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rockg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rockg"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 37 | 2016-01-03T21:47:08Z | 2016-01-16T17:12:07Z | 2016-01-16T15:13:58Z | CONTRIBUTOR | null | Fix layout and pep8 compliance for categorical, common, and frame. Used YAPF with default settings and then manual modifications including:
-fixing line length of comments/docstrings for pep8 compliance
-converting lambdas to functions for pep8 compliance
-change YAPF default formatting of error strings
-change some YAPF line break choices to make them more natural in my eyes. For example converting
```
if (function1(argument) and function2(
argument)):
```
to
```
if (function1(argument) and
function2(argument)):
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11951/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11951/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11951.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11951",
"merged_at": "2016-01-16T15:13:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11951.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11951"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11952 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11952/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11952/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11952/events | https://github.com/pandas-dev/pandas/issues/11952 | 124,685,664 | MDU6SXNzdWUxMjQ2ODU2NjQ= | 11,952 | Categorical.from_codes(codes, categories, ordered=False, name=None) | {
"avatar_url": "https://avatars.githubusercontent.com/u/5546684?v=4",
"events_url": "https://api.github.com/users/ChristopherShort/events{/privacy}",
"followers_url": "https://api.github.com/users/ChristopherShort/followers",
"following_url": "https://api.github.com/users/ChristopherShort/following{/other_user}",
"gists_url": "https://api.github.com/users/ChristopherShort/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ChristopherShort",
"id": 5546684,
"login": "ChristopherShort",
"node_id": "MDQ6VXNlcjU1NDY2ODQ=",
"organizations_url": "https://api.github.com/users/ChristopherShort/orgs",
"received_events_url": "https://api.github.com/users/ChristopherShort/received_events",
"repos_url": "https://api.github.com/users/ChristopherShort/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ChristopherShort/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChristopherShort/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ChristopherShort"
} | [
{
"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": "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": 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"
} | 7 | 2016-01-04T02:04:06Z | 2016-01-04T13:15:20Z | 2016-01-04T02:07:23Z | NONE | null | The parameter for categories is documented as being `index-like`.
Does that include dictionaries?
If so, some unexpected results occurred when working with integers and dictionaries in version 0.17.1
The following sets out what I found
``` python
sex = [1,2,0,1]
categories = {1:'Male', 2:'Female', 0:'Unknown'}
pd.Categorical.from_codes(sex, categories=categories)
```
returns the the array with keys instead of the values (though i suspect that was luck given outcomes below)
```
[1, 2, 0, 1]
Categories (3, int64): [0, 1, 2]
```
Swapping the dictionary key/values around shows doesn't match values to keys though:
```
sex = [1,2,0,1]
categories = {'Male':1, 'Female':2, 'Unknown':0}
pd.Categorical.from_codes(sex, categories=categories)
```
returns an array that has incorrectly mapped codes and categories
```
[Unknown, Male, Female, Unknown]
Categories (3, object): [Female, Unknown, Male]
```
Using a non-sequential numerical ordering for the codes fails with a dictionary
``` python
sex = [1,2,9,1]
categories = {'Male':1, 'Female':2, 'Unknown':9}
pd.Categorical.from_codes(sex, categories=categories)
```
Fails with `ValueError: codes need to be between -1 and len(categories)-1`
at line 386 in categorical.py at `if len(codes) and (codes.max() >= len(categories) or codes.min() < -1)`
presumably because the second logical element.
I'm guessing it's meant to be a cheque on the count of the number of unique elements in `codes` being greater than or equal to the number of items in `categories`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11952/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11952/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11953 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11953/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11953/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11953/events | https://github.com/pandas-dev/pandas/issues/11953 | 124,770,140 | MDU6SXNzdWUxMjQ3NzAxNDA= | 11,953 | BUG: fillna('') does not replace NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
]
| open | false | null | []
| null | 6 | 2016-01-04T14:38:12Z | 2021-10-26T08:51:02Z | null | CONTRIBUTOR | null | pandas generally tries to coerce values to fit the column dtype, or upcasts the dtype to fit.
For a setting operation this is convenient & I think expected as a user
```
In [35]: df = DataFrame({'A' : Series(dtype='M8[ns]'), 'B' : Series([np.nan],dtype='object'), 'C' : ['foo'], 'D' : [1]})
In [36]: df
Out[36]:
A B C D
0 NaT NaN foo 1
In [37]: df.dtypes
Out[37]:
A datetime64[ns]
B object
C object
D int64
dtype: object
In [38]: df.loc[0,'D'] = 1.0
In [39]: df.dtypes
Out[39]:
A datetime64[ns]
B object
C object
D float64
dtype: object
```
However for a `.fillna` (or `.replace`) operation this might be a bit unexpected. So `A` was coerced to `object` dtype, even though it was `datetime64[ns]`.
```
In [40]: df.fillna('')
Out[40]:
A B C D
0 foo 1
In [41]: df.fillna('').dtypes
Out[41]:
A object
B object
C object
D float64
dtype: object
```
So a possibility is to add a keyword `errors='raise'|'coerce'|'ignore'`. This last behavior would be equiv of `errors='coerce'`. While skipping this column would be done with `errors='coerce'`. (and of course `raise` would raise.
Ideally would have a default of `coerce` I think (to skip for non-compat values). Any thoughts on this?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11953/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11953/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11954 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11954/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11954/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11954/events | https://github.com/pandas-dev/pandas/issues/11954 | 124,791,342 | MDU6SXNzdWUxMjQ3OTEzNDI= | 11,954 | Style: removing unnecessary usages of `\` from the codebase | {
"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"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 7 | 2016-01-04T16:34:21Z | 2019-10-16T22:33:22Z | 2019-10-16T22:33:15Z | MEMBER | null | I've found that using parentheses (which allow for automatic continuation) instead of `\` results in a lot more readable code. The lone exception is using `\` with long strings and avoiding a line break at the start of the string.
Worse:
```
return GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOD and LET and THE and HATE and FLOW\
and THROUGH and YOU
```
Better:
```
return (GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOD and LET and THE and HATE and FLOW
and THROUGH and YOU)
```
OK:
```
return """\
GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOD and LET and THE and HATE and FLOW
and THROUGH and YOU"""
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11954/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11954/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11955 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11955/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11955/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11955/events | https://github.com/pandas-dev/pandas/issues/11955 | 124,792,429 | MDU6SXNzdWUxMjQ3OTI0Mjk= | 11,955 | Docs: start a pandas style guide | {
"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"
} | [
{
"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": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| null | 3 | 2016-01-04T16:38:55Z | 2019-12-12T14:47:28Z | 2019-12-12T14:47:28Z | MEMBER | null | Per things like #11954 it would be good to make a list of style preferences that are not officially a part of PEP8 or linting tools
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11955/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11955/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11956 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11956/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11956/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11956/events | https://github.com/pandas-dev/pandas/pull/11956 | 124,797,216 | MDExOlB1bGxSZXF1ZXN0NTQ5OTcxMTI= | 11,956 | Reformat with YAPF | {
"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": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
]
| closed | false | null | []
| null | 13 | 2016-01-04T17:02:48Z | 2016-01-07T09:50:15Z | 2016-01-07T01:25:09Z | MEMBER | null | Just as an example (using the default configuration). The same files are adjusted as in https://github.com/pydata/pandas/pull/11951
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11956/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11956/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11956.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11956",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11956.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11956"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11957 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11957/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11957/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11957/events | https://github.com/pandas-dev/pandas/pull/11957 | 124,860,068 | MDExOlB1bGxSZXF1ZXN0NTUwMzUwMzM= | 11,957 | BUG: GH11835 where comparison of Timedelta array caused infinite loop | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-04T23:09:14Z | 2016-01-05T00:39:06Z | 2016-01-05T00:39:03Z | CONTRIBUTOR | null | closes #11835
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11957/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11957/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11957.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11957",
"merged_at": "2016-01-05T00:39:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11957.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11957"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11958 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11958/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11958/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11958/events | https://github.com/pandas-dev/pandas/issues/11958 | 124,872,280 | MDU6SXNzdWUxMjQ4NzIyODA= | 11,958 | Performance issue with DataFrames with numpy fortran-order arrays and pd.concat | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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": 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"
} | 20 | 2016-01-05T00:54:47Z | 2016-01-08T13:51:46Z | 2016-01-08T13:51:46Z | CONTRIBUTOR | null | Hi,
When trying to concat() multiple big fortran order arrays, there is a big performance hit, as most of the work goes into calling ravel().
See:
https://github.com/pydata/pandas/blob/master/pandas/core/internals.py#L4772
You can see the `is_null(self)` is using just a few values from the data after calling `.ravel()`
An easy fix is to change that line to `values_flat = values.ravel(order='K')`
Here is a link to numpy.ravel docs: http://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ravel.html
`‘K’ means to read the elements in the order they occur in memory, except for reversing the data when strides are negative. By default, ‘C’ index order is used.`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11958/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11958/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11959 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11959/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11959/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11959/events | https://github.com/pandas-dev/pandas/issues/11959 | 124,879,920 | MDU6SXNzdWUxMjQ4Nzk5MjA= | 11,959 | DataFrame.boxplot() ignored figsize keyword | {
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2016-01-05T02:04:15Z | 2017-06-12T21:56:38Z | 2017-06-07T21:53:06Z | CONTRIBUTOR | null | The [DataFrame.boxplot](http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.boxplot.html) reference documentation says I can change the size of a plot though the `figsize` keyword, but this appears not to work.
Using `df.plot(kind='box')` does respect `figsize`.
```
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import sys
print("pandas version = {}".format(pandas.__version__))
print("python version = {}".format(sys.version))
df = pd.DataFrame(np.random.rand(10, 5), columns=['A', 'B', 'C', 'D', 'E'])
df.plot(kind='box', figsize=(12,8))
plt.show()
df.boxplot(return_type='axes', figsize=(12,8))
plt.show()
```

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11959/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11959/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11960 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11960/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11960/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11960/events | https://github.com/pandas-dev/pandas/pull/11960 | 124,908,737 | MDExOlB1bGxSZXF1ZXN0NTUwNjAwNDQ= | 11,960 | BRANCH: libpandas native core experiments | {
"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"
} | []
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 4,
"created_at": "2016-08-16T13:21:24Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2022-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/42",
"id": 1945020,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42/labels",
"node_id": "MDk6TWlsZXN0b25lMTk0NTAyMA==",
"number": 42,
"open_issues": 11,
"state": "open",
"title": "2.0",
"updated_at": "2021-10-07T22:01:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42"
} | 18 | 2016-01-05T06:54:27Z | 2016-09-15T20:47:43Z | 2016-01-06T22:08:00Z | MEMBER | null | Summary of implementation approach
- Base `pandas::Array` class
- Implement dtype-specific Array subclasses and use dynamic dispatch to invoke generic array methods
- Hold NumPy arrays internally
- For data types that don't have a well-defined NA values, use a bitmask to store null/not-null
I adapted several bits of code from github.com/libdynd/dynd-python to save me time sorting out issues with NumPy's PyArray_API global variable and other fun stuff. We'll need to add a copyright notice to the LICENSES directoy
Demo:
``` python
In [1]: import pandas.native as nt
In [2]: arr = np.arange(10)
In [3]: parr = nt.to_array(arr)
In [4]: parr
Out[4]: <pandas.native.Array at 0x7f51dfce3e40>
In [5]: parr.dtype
Out[5]: PandasType(int64)
In [6]: parr[3]
Out[6]: 3
In [7]: from pandas.native import NA
In [8]: parr[3] = NA
In [10]: parr[3]
Out[10]: NA
In [11]: parr[3] = 12
In [13]: parr[3]
Out[13]: 12
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11960/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11960/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11960.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11960",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11960.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11960"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11961 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11961/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11961/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11961/events | https://github.com/pandas-dev/pandas/issues/11961 | 124,940,519 | MDU6SXNzdWUxMjQ5NDA1MTk= | 11,961 | io: to_excel leads to TypeError when index with tz | {
"avatar_url": "https://avatars.githubusercontent.com/u/8660305?v=4",
"events_url": "https://api.github.com/users/dacoex/events{/privacy}",
"followers_url": "https://api.github.com/users/dacoex/followers",
"following_url": "https://api.github.com/users/dacoex/following{/other_user}",
"gists_url": "https://api.github.com/users/dacoex/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dacoex",
"id": 8660305,
"login": "dacoex",
"node_id": "MDQ6VXNlcjg2NjAzMDU=",
"organizations_url": "https://api.github.com/users/dacoex/orgs",
"received_events_url": "https://api.github.com/users/dacoex/received_events",
"repos_url": "https://api.github.com/users/dacoex/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dacoex/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dacoex/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dacoex"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "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"
} | 2 | 2016-01-05T10:45:40Z | 2016-01-05T12:43:24Z | 2016-01-05T11:14:45Z | CONTRIBUTOR | null | I would like to save a _df_ with the following _index_ to an Excel file:
```dtype='datetime64[ns, Atlantic/Reykjavik]', name=u'Dates', length=4360, freq='H')
```
it shows the following error:
```
TypeError: Timestamp subtraction must have the same timezones or no timezones
```
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11961/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11961/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11962 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11962/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11962/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11962/events | https://github.com/pandas-dev/pandas/issues/11962 | 124,956,442 | MDU6SXNzdWUxMjQ5NTY0NDI= | 11,962 | DOC: fully document Index types | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "fbca04",
"default": false,
"description": "High level tracker for similar issues",
"id": 183784729,
"name": "Master Tracker",
"node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-01-05T12:16:26Z | 2018-03-07T09:27:24Z | 2018-03-07T09:27:24Z | CONTRIBUTOR | null | - add to API.rst
- [ ] `Int64Index`
- [ ] `Float64Index`
- [ ] `PeriodIndex`
- [x] `MultiIndex` (#11893)
- [ ] `RangeIndex` (#11892)
- add to main docs (`CategoricalIndex` / `Float64Index` described in MultiIndex / Advanced Indexing sections). Expand this section to include.
- [ ] `Index`
- [ ] `DatetimeIndex/TimedeltaIndex/PeriodIndex` (already in timeseries.rst/timedelta.rst, need to cross-link to new section)
- [x] `Int64Index`
- [x] `RangeIndex`
cross-link from internals.rst about the Index internals.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11962/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11962/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11963 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11963/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11963/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11963/events | https://github.com/pandas-dev/pandas/issues/11963 | 124,957,072 | MDU6SXNzdWUxMjQ5NTcwNzI= | 11,963 | Timestamp rounding wrong implementation | {
"avatar_url": "https://avatars.githubusercontent.com/u/6661307?v=4",
"events_url": "https://api.github.com/users/Tux1/events{/privacy}",
"followers_url": "https://api.github.com/users/Tux1/followers",
"following_url": "https://api.github.com/users/Tux1/following{/other_user}",
"gists_url": "https://api.github.com/users/Tux1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Tux1",
"id": 6661307,
"login": "Tux1",
"node_id": "MDQ6VXNlcjY2NjEzMDc=",
"organizations_url": "https://api.github.com/users/Tux1/orgs",
"received_events_url": "https://api.github.com/users/Tux1/received_events",
"repos_url": "https://api.github.com/users/Tux1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Tux1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tux1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Tux1"
} | [
{
"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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 4 | 2016-01-05T12:20:57Z | 2016-01-12T20:24:46Z | 2016-01-12T20:24:46Z | CONTRIBUTOR | null | Hi,
I was looking at the recent ENH #4314 and there is a wrong implementation of `round` method for datetime.
``` cython
def round(self, freq):
"""
return a new Timestamp rounded to this resolution
Parameters
----------
freq : a freq string indicating the rouding resolution
"""
cdef int64_t unit
cdef object result, value
from pandas.tseries.frequencies import to_offset
unit = to_offset(freq).nanos
if self.tz is not None:
value = self.tz_localize(None).value
else:
value = self.value
result = Timestamp(unit*np.floor(value/unit),unit='ns')
if self.tz is not None:
result = result.tz_localize(self.tz)
return result
```
You are flooring the nano timestamp instead of rounding. You should replace `np.floor` by `np.round`.
Also I propose to add `floor` and `ceil` method to Timestamp in order to have the same behavior that `float`. (It is very usefull to get the upper/lower bound for a specific freq, likely more usefull than round)
Do you agree @jreback ?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11963/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11963/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11964 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11964/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11964/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11964/events | https://github.com/pandas-dev/pandas/pull/11964 | 124,978,138 | MDExOlB1bGxSZXF1ZXN0NTUwOTcxNTU= | 11,964 | BUG: Timestamp rounding wrong implementation fixed #11963 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6661307?v=4",
"events_url": "https://api.github.com/users/Tux1/events{/privacy}",
"followers_url": "https://api.github.com/users/Tux1/followers",
"following_url": "https://api.github.com/users/Tux1/following{/other_user}",
"gists_url": "https://api.github.com/users/Tux1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Tux1",
"id": 6661307,
"login": "Tux1",
"node_id": "MDQ6VXNlcjY2NjEzMDc=",
"organizations_url": "https://api.github.com/users/Tux1/orgs",
"received_events_url": "https://api.github.com/users/Tux1/received_events",
"repos_url": "https://api.github.com/users/Tux1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Tux1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tux1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Tux1"
} | [
{
"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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-01-05T14:33:23Z | 2016-01-12T20:25:09Z | 2016-01-12T20:25:09Z | CONTRIBUTOR | null | closes #11963
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11964/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11964/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11964.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11964",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11964.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11964"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11965 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11965/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11965/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11965/events | https://github.com/pandas-dev/pandas/issues/11965 | 124,988,488 | MDU6SXNzdWUxMjQ5ODg0ODg= | 11,965 | Add method to change the .name attribute on the axes | {
"avatar_url": "https://avatars.githubusercontent.com/u/379413?v=4",
"events_url": "https://api.github.com/users/wcbeard/events{/privacy}",
"followers_url": "https://api.github.com/users/wcbeard/followers",
"following_url": "https://api.github.com/users/wcbeard/following{/other_user}",
"gists_url": "https://api.github.com/users/wcbeard/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wcbeard",
"id": 379413,
"login": "wcbeard",
"node_id": "MDQ6VXNlcjM3OTQxMw==",
"organizations_url": "https://api.github.com/users/wcbeard/orgs",
"received_events_url": "https://api.github.com/users/wcbeard/received_events",
"repos_url": "https://api.github.com/users/wcbeard/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wcbeard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wcbeard/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wcbeard"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-01-05T15:27:00Z | 2016-02-11T02:42:04Z | 2016-02-11T02:42:04Z | CONTRIBUTOR | null | It would be nice to have a method to change the `.name` attribute on the columns/index, to permit it in a method chain. (This is a suggestion based on [this stackoverflow question](http://stackoverflow.com/questions/34598733/dataframe-method-for-renaming-axis).)
Instead of
```
df.columns.name = 'A'
df.index.name = 'B'
df
A 0 1
B
0 9 4
1 15 0
2 17 16
```
it would allow something like
```
df.rename_columns('A').rename_index('B')
```
or perhaps be a keyword argument to the existing `.rename()`. Does this seem like something that would fit in with pandas?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11965/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11965/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11966 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11966/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11966/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11966/events | https://github.com/pandas-dev/pandas/pull/11966 | 125,002,733 | MDExOlB1bGxSZXF1ZXN0NTUxMTI3MjA= | 11,966 | Exception handler should use column NA values if available | {
"avatar_url": "https://avatars.githubusercontent.com/u/648190?v=4",
"events_url": "https://api.github.com/users/nmichaud/events{/privacy}",
"followers_url": "https://api.github.com/users/nmichaud/followers",
"following_url": "https://api.github.com/users/nmichaud/following{/other_user}",
"gists_url": "https://api.github.com/users/nmichaud/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmichaud",
"id": 648190,
"login": "nmichaud",
"node_id": "MDQ6VXNlcjY0ODE5MA==",
"organizations_url": "https://api.github.com/users/nmichaud/orgs",
"received_events_url": "https://api.github.com/users/nmichaud/received_events",
"repos_url": "https://api.github.com/users/nmichaud/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmichaud/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmichaud/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmichaud"
} | [
{
"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 | []
| null | 2 | 2016-01-05T16:39:34Z | 2016-01-07T13:02:59Z | 2016-01-07T13:02:51Z | CONTRIBUTOR | null | Exception handler didn't use the list of columnar NaN types if they were generated.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11966/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11966/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11966.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11966",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11966.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11966"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11967 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11967/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11967/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11967/events | https://github.com/pandas-dev/pandas/pull/11967 | 125,076,051 | MDExOlB1bGxSZXF1ZXN0NTUxNTc4MTg= | 11,967 | Concat perf | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-01-05T23:25:10Z | 2016-01-08T16:55:56Z | 2016-01-08T13:51:34Z | CONTRIBUTOR | null | fixes #11958
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11967/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11967/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11967.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11967",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11967.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11967"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11968 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11968/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11968/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11968/events | https://github.com/pandas-dev/pandas/issues/11968 | 125,080,620 | MDU6SXNzdWUxMjUwODA2MjA= | 11,968 | DataFrame.to_csv convert int to float all the time | {
"avatar_url": "https://avatars.githubusercontent.com/u/15672652?v=4",
"events_url": "https://api.github.com/users/channingxiao/events{/privacy}",
"followers_url": "https://api.github.com/users/channingxiao/followers",
"following_url": "https://api.github.com/users/channingxiao/following{/other_user}",
"gists_url": "https://api.github.com/users/channingxiao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/channingxiao",
"id": 15672652,
"login": "channingxiao",
"node_id": "MDQ6VXNlcjE1NjcyNjUy",
"organizations_url": "https://api.github.com/users/channingxiao/orgs",
"received_events_url": "https://api.github.com/users/channingxiao/received_events",
"repos_url": "https://api.github.com/users/channingxiao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/channingxiao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/channingxiao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/channingxiao"
} | [
{
"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 | 2016-01-06T00:02:50Z | 2020-04-27T03:08:10Z | 2016-01-13T02:53:38Z | NONE | null | When I use
test_labels.to_csv("./data/test_label.csv", headers=True, index = False)
to write dataframe into csv file, it always convert inteders into float number,(I check the test_labels.dtype, it shows <type "int">. How can I let it not convert. Thanks
python 2.7.11, pandas 0.17.1, windows 10
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11968/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11968/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11969 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11969/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11969/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11969/events | https://github.com/pandas-dev/pandas/issues/11969 | 125,172,356 | MDU6SXNzdWUxMjUxNzIzNTY= | 11,969 | Inconsistant datatype with type()? | {
"avatar_url": "https://avatars.githubusercontent.com/u/8689085?v=4",
"events_url": "https://api.github.com/users/matthewmav/events{/privacy}",
"followers_url": "https://api.github.com/users/matthewmav/followers",
"following_url": "https://api.github.com/users/matthewmav/following{/other_user}",
"gists_url": "https://api.github.com/users/matthewmav/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthewmav",
"id": 8689085,
"login": "matthewmav",
"node_id": "MDQ6VXNlcjg2ODkwODU=",
"organizations_url": "https://api.github.com/users/matthewmav/orgs",
"received_events_url": "https://api.github.com/users/matthewmav/received_events",
"repos_url": "https://api.github.com/users/matthewmav/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthewmav/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthewmav/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthewmav"
} | [
{
"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"
} | 9 | 2016-01-06T13:00:53Z | 2016-01-06T16:42:44Z | 2016-01-06T14:15:09Z | NONE | null | **[in]**
```
for cl in train.columns:
print cl, type(train.loc[0, cl])
print cl, type(train[cl][0])
break
```
**[out]**
```
record_ID <type 'numpy.float64'>
record_ID <type 'numpy.int64'>
```
Though I can solve it in many cases with `train[cl].dtype`, which gives the correct output:
**[out]**
```
record_ID int64
```
But if we work with string data types the output will be `object` instead of `str` as data type.
Something shortstop by me or what happens?
Thank you.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11969/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11969/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11970 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11970/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11970/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11970/events | https://github.com/pandas-dev/pandas/issues/11970 | 125,181,556 | MDU6SXNzdWUxMjUxODE1NTY= | 11,970 | ENH/INT: libpandas refactor | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
]
| closed | false | null | []
| {
"closed_at": 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"
} | 7 | 2016-01-06T14:01:57Z | 2020-01-01T16:02:31Z | 2020-01-01T15:54:11Z | CONTRIBUTOR | null | xref #11960
Create `libpandas` to support current user-facing API and container API (currently only numpy).
- `ImmutableArray`, single immutable dtyped container with a `pandas.DataType` dtype mirroring numpy/python scalars as well as current pandas extension types (`Categorical`, `datetime w/tz`), integer/boolean NA support, future types (`string` w/encoding, var-len), maybe ragged array etc.
- cached-properties:
- `isnull/notnull`
- `is_monotonic_increasing/is_monotonic_decreasing`
- methods:
- indexing getitem ops (positional, slicing, fancy)
- `Array` - mutable sub-class of `ImmutableArray`
- cached-properties above are now just properties
- indexing supports setitem as well
- `Table` - ordered-dict-like container of `Array`
| {
"+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/11970/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11970/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11971 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11971/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11971/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11971/events | https://github.com/pandas-dev/pandas/issues/11971 | 125,207,575 | MDU6SXNzdWUxMjUyMDc1NzU= | 11,971 | What processing is involved in transposing a dataframe? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4",
"events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}",
"followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers",
"following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}",
"gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amelio-vazquez-reina",
"id": 1993919,
"login": "amelio-vazquez-reina",
"node_id": "MDQ6VXNlcjE5OTM5MTk=",
"organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs",
"received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events",
"repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amelio-vazquez-reina"
} | [
{
"color": "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": "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": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 2 | 2016-01-06T16:10:11Z | 2016-01-06T16:16:05Z | 2016-01-06T16:14:12Z | CONTRIBUTOR | null | Sorry, I know this is more of a question (and maybe implementation/platform-specific) than anything else, so apologies if this is not the right venue.
Consider a large dataframe. Does transposing it trigger a full re-allocation of its data in memory? And if so, could that be improved?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11971/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11971/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11972 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11972/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11972/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11972/events | https://github.com/pandas-dev/pandas/pull/11972 | 125,209,614 | MDExOlB1bGxSZXF1ZXN0NTUyMzExNDE= | 11,972 | ENH: add to_xarray conversion method | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 16 | 2016-01-06T16:19:35Z | 2016-02-10T22:25:27Z | 2016-02-10T17:48:52Z | CONTRIBUTOR | null | supersedes #11950
xref #10000
using `xarray` >= 07.0
```
In [10]: Series([1,2,3]).to_xarray()
Out[10]:
<xarray.DataArray (index: 3)>
array([1, 2, 3])
Coordinates:
* index (index) int64 0 1 2
In [11]: DataFrame({'A' : [1,2,3], 'B' : ['foo','bar','baz']}).to_xarray()
Out[11]:
<xarray.Dataset>
Dimensions: (index: 3)
Coordinates:
* index (index) int64 0 1 2
Data variables:
A (index) int64 1 2 3
B (index) object 'foo' 'bar' 'baz'
In [14]: Panel(np.random.randn(2, 3, 4)).to_xarray()
Out[14]:
<xarray.DataArray (items: 2, major_axis: 3, minor_axis: 4)>
array([[[ 0.23726039, 0.44636322, 0.04425575, 1.06178388],
[-0.58236405, 0.62602167, 0.36156612, -0.12687913],
[-0.67854107, 0.72270844, -1.15402631, -1.89758909]],
[[ 0.42948622, 0.93227075, -0.13943692, 0.83043343],
[ 1.0355157 , -0.30532004, -0.16337369, -0.29283026],
[ 0.65199775, -0.11131818, 0.37853134, 1.56620844]]])
Coordinates:
* items (items) int64 0 1
* major_axis (major_axis) int64 0 1 2
* minor_axis (minor_axis) int64 0 1 2 3
```
TODO:
- [ ] examples in doc-string
- [ ] how-to-convert/use xarray
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11972/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11972/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11972.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11972",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11972.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11972"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11973 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11973/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11973/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11973/events | https://github.com/pandas-dev/pandas/issues/11973 | 125,236,739 | MDU6SXNzdWUxMjUyMzY3Mzk= | 11,973 | Datetime index error? | {
"avatar_url": "https://avatars.githubusercontent.com/u/180487?v=4",
"events_url": "https://api.github.com/users/vgoklani/events{/privacy}",
"followers_url": "https://api.github.com/users/vgoklani/followers",
"following_url": "https://api.github.com/users/vgoklani/following{/other_user}",
"gists_url": "https://api.github.com/users/vgoklani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vgoklani",
"id": 180487,
"login": "vgoklani",
"node_id": "MDQ6VXNlcjE4MDQ4Nw==",
"organizations_url": "https://api.github.com/users/vgoklani/orgs",
"received_events_url": "https://api.github.com/users/vgoklani/received_events",
"repos_url": "https://api.github.com/users/vgoklani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vgoklani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vgoklani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vgoklani"
} | [
{
"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": "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": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| null | 3 | 2016-01-06T18:45:50Z | 2016-01-06T21:17:19Z | 2016-01-06T21:17:03Z | NONE | null | I have a dataframe of tweets, where the "created_at" column is stored as a datetime object. I just upgraded to the latest version of pandas, and now get this error:
```
df['created_at'].map(lambda d: d.strftime("%Y%m%d"))
TypeError: Argument 'arr' has incorrect type (expected numpy.ndarray, got DatetimeIndex)
```
strangely enough, everything works correctly if I do this:
```
df2 = df.set_index('created_at')
df2.index.map(lambda x: x.strftime("%Y%m%d"))
```
and this:
```
def f(d):
return d['created_at'].strftime("%Y%m%d")
df.apply(lambda row: f(row), axis=1)
```
What is going on here?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11973/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11973/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11974 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11974/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11974/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11974/events | https://github.com/pandas-dev/pandas/issues/11974 | 125,240,081 | MDU6SXNzdWUxMjUyNDAwODE= | 11,974 | Series.skew() for constant series returns inconsistent values | {
"avatar_url": "https://avatars.githubusercontent.com/u/6908933?v=4",
"events_url": "https://api.github.com/users/yonil7/events{/privacy}",
"followers_url": "https://api.github.com/users/yonil7/followers",
"following_url": "https://api.github.com/users/yonil7/following{/other_user}",
"gists_url": "https://api.github.com/users/yonil7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yonil7",
"id": 6908933,
"login": "yonil7",
"node_id": "MDQ6VXNlcjY5MDg5MzM=",
"organizations_url": "https://api.github.com/users/yonil7/orgs",
"received_events_url": "https://api.github.com/users/yonil7/received_events",
"repos_url": "https://api.github.com/users/yonil7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yonil7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yonil7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yonil7"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-01-06T19:04:40Z | 2016-01-25T15:40:47Z | 2016-01-25T15:40:47Z | NONE | null | I'm not sure if this is a bug, but I'v noticed a strange behavior of skew() and kurt() on constant series:
``` python
#skew:
pd.Series(3075.3, np.arange(300)).skew() #returns -105683727.49921818
pd.Series(3075.2, np.arange(300)).skew() #returns nan
pd.Series(3075.5, np.arange(300)).skew() #returns 0
#kurt:
pd.Series(3075.3, np.arange(300)).kurt() #returns 9305221026420888.0
pd.Series(3075.2, np.arange(300)).kurt() #returns -7459707710545691.0
pd.Series(3075.5, np.arange(300)).kurt() #returns 0
```
(using pandas 0.17.1 (from anacondas) on a 64bit intel windows 7 pc)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11974/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11974/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11975 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11975/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11975/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11975/events | https://github.com/pandas-dev/pandas/pull/11975 | 125,299,023 | MDExOlB1bGxSZXF1ZXN0NTUyODc0MDM= | 11,975 | TST: fix comparison message for #10174 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2016-01-07T01:01:04Z | 2016-01-07T01:16:19Z | 2016-01-07T01:16:19Z | 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/11975/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11975/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11975.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11975",
"merged_at": "2016-01-07T01:16:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11975.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11975"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/11976 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11976/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11976/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11976/events | https://github.com/pandas-dev/pandas/pull/11976 | 125,302,146 | MDExOlB1bGxSZXF1ZXN0NTUyODkyNjU= | 11,976 | DOC: whatsnew Timestamp addition example fix up | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-07T01:27:59Z | 2016-01-07T01:32:01Z | 2016-01-07T01:32:01Z | CONTRIBUTOR | null | The problem was I only had 7 digits in the date string.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11976/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11976/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11976.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11976",
"merged_at": "2016-01-07T01:32:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11976.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11976"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11977 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11977/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11977/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11977/events | https://github.com/pandas-dev/pandas/issues/11977 | 125,302,814 | MDU6SXNzdWUxMjUzMDI4MTQ= | 11,977 | ERR: better error message on invalid timestamp parsing | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2016-01-07T01:33:27Z | 2016-11-18T11:56:19Z | 2016-11-18T11:56:19Z | CONTRIBUTOR | null | ```
In [2]: pd.Timestamp('2010011')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-ccfd37d6ef5d> in <module>()
----> 1 pd.Timestamp('2010011')
/Users/jreback/pandas/pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:8958)()
296 cdef _Timestamp ts_base
297
--> 298 ts = convert_to_tsobject(ts_input, tz, unit)
299
300 if ts.value == NPY_NAT:
/Users/jreback/pandas/pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:24122)()
1232
1233 if util.is_string_object(ts):
-> 1234 return convert_str_to_tsobject(ts, tz, unit)
1235
1236 if ts is None or ts is NaT:
/Users/jreback/pandas/pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:26110)()
1361 ts = parse_datetime_string(ts, dayfirst=dayfirst, yearfirst=yearfirst)
1362 except Exception:
-> 1363 raise ValueError
1364
1365 return convert_to_tsobject(ts, tz, unit)
ValueError:
```
we are should have a nice error message here. This is normally caught for example in `to_datetime`, but if its only a single `Timestamp` no message.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11977/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11977/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11978 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11978/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11978/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11978/events | https://github.com/pandas-dev/pandas/issues/11978 | 125,305,108 | MDU6SXNzdWUxMjUzMDUxMDg= | 11,978 | ENH: other plotting tools via plot accessor | {
"avatar_url": "https://avatars.githubusercontent.com/u/1719223?v=4",
"events_url": "https://api.github.com/users/rhiever/events{/privacy}",
"followers_url": "https://api.github.com/users/rhiever/followers",
"following_url": "https://api.github.com/users/rhiever/following{/other_user}",
"gists_url": "https://api.github.com/users/rhiever/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhiever",
"id": 1719223,
"login": "rhiever",
"node_id": "MDQ6VXNlcjE3MTkyMjM=",
"organizations_url": "https://api.github.com/users/rhiever/orgs",
"received_events_url": "https://api.github.com/users/rhiever/received_events",
"repos_url": "https://api.github.com/users/rhiever/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhiever/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhiever/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhiever"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "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 | []
| null | 16 | 2016-01-07T01:57:26Z | 2021-04-21T05:40:37Z | 2021-04-21T05:40:37Z | NONE | null | - [ ] `scatter_matrix` (deprecate, redirect to `seaborn`)
- [ ] `andrews_curve`
- [ ] `parallel_coordinates`
- [ ] `lag_plot` (maybe rename to `lag`)
- [ ] `autocorrelation_plot` (maybe rename to `autocorrelation`?)
- [ ] `bootstrap_plot` (maybe rename to `bootstrap`?)
- [ ] `radviz`
I think it would be nice to allow [scatter_matrix](http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html#scatter-matrix-plot) to be called directly on a DataFrame. Currently, `scatter_matrix` is a separate function that takes a DataFrame as a parameter, but it seems like it would be easy enough to rework to allow it to be called directly on a DataFrame as well. Effectively, the convenience function would look something like:
``` python
def scatter_matrix(self, ...):
pandas.tools.plotting.scatter_matrix(self.data, ...)
```
Is this feature feasible?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11978/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11978/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11979 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11979/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11979/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11979/events | https://github.com/pandas-dev/pandas/issues/11979 | 125,321,728 | MDU6SXNzdWUxMjUzMjE3Mjg= | 11,979 | BUG: MultiIndex.set_names loses name | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 7 | 2016-01-07T04:48:14Z | 2021-04-21T05:41:26Z | null | CONTRIBUTOR | null | Seems surprising, I thought `.name` would come along.
``` python
In [31]: idx = pd.MultiIndex.from_product([['A'], ['a', 'b', 'c']])
In [32]: idx.name = 'foo'
In [33]: idx2 = idx.set_names(['l1', 'l2'])
In [34]: idx2.name
```
Bug, or user error since MultiIndex.name isn't all that useful?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11979/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11979/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11980 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11980/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11980/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11980/events | https://github.com/pandas-dev/pandas/pull/11980 | 125,322,740 | MDExOlB1bGxSZXF1ZXN0NTUyOTk5NTA= | 11,980 | ENH/API: Scalar values for Series.rename and NDFrame.rename_axis | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 25 | 2016-01-07T04:57:47Z | 2016-02-11T03:03:32Z | 2016-02-11T02:42:04Z | CONTRIBUTOR | null | closes https://github.com/pydata/pandas/issues/9494
closes https://github.com/pydata/pandas/issues/11965
Okay refactored to overload `NDFrame.rename` and `NDFrame.rename_axis`
New rules:
- Series.rename(scalar) or Series.rename(list-like) will alter `Series.name`
- NDFrame.rename(mapping) and NDFrame.rename(function) operate as before (alter labels)
- NDFrame.rename_axis(scaler) or NDFrame.rename_axis(list-like) will change the Index.name or MutliIndex.names
- NDFrame.rename_axis(mapping) and NDFrame.rename_axis(function) operate as before.
I don't like overloading the method like this, but `rename` and `rename_axis` are the right method names. It's _mostly_ backwards compatible, aside from people doing things like `try: series.rename(x): except TypeError: ...` and I don't know what our guarantees are around things like that.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11980/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11980/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11980.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11980",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11980.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11980"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11981 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11981/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11981/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11981/events | https://github.com/pandas-dev/pandas/issues/11981 | 125,362,395 | MDU6SXNzdWUxMjUzNjIzOTU= | 11,981 | interation of set_eng_float_format and pivot_tables | {
"avatar_url": "https://avatars.githubusercontent.com/u/5546684?v=4",
"events_url": "https://api.github.com/users/ChristopherShort/events{/privacy}",
"followers_url": "https://api.github.com/users/ChristopherShort/followers",
"following_url": "https://api.github.com/users/ChristopherShort/following{/other_user}",
"gists_url": "https://api.github.com/users/ChristopherShort/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ChristopherShort",
"id": 5546684,
"login": "ChristopherShort",
"node_id": "MDQ6VXNlcjU1NDY2ODQ=",
"organizations_url": "https://api.github.com/users/ChristopherShort/orgs",
"received_events_url": "https://api.github.com/users/ChristopherShort/received_events",
"repos_url": "https://api.github.com/users/ChristopherShort/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ChristopherShort/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChristopherShort/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ChristopherShort"
} | [
{
"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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 7 | 2016-01-07T10:04:04Z | 2016-05-11T22:18:27Z | 2016-05-11T22:18:27Z | NONE | null | There appears to be an interaction between the option for float display length and pivot_table methods on integers. This issue arose when working on a dataset with both floats and integers - but this arose on operations on integers part of the dataset.
The following example throws an error from the `format.py` module.
Swap the comments on the formatting options (undoing the setting for floats) and it runs fine.
In my dataset - there were no missing values following the pivot table operation and the error still occurs. In the sample code below, NaNs may be causing the formatting issue, but that didn't appear to be the case for me.
``` python
import pandas as pd
import numpy as np
#pd.set_option('display.float_format', None)
pd.set_eng_float_format(accuracy=1)
df = pd.DataFrame(data = np.random.randint(25, size=(10, 3)), columns = list('abc'))
df.pivot_table(values='a', index='b', columns='c')
```
cheers
Chris
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11981/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11981/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11982 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11982/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11982/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11982/events | https://github.com/pandas-dev/pandas/issues/11982 | 125,368,627 | MDU6SXNzdWUxMjUzNjg2Mjc= | 11,982 | How to concatenate two Panels without duplicating Items axis (i.e. like columns in DataFrames)? | {
"avatar_url": "https://avatars.githubusercontent.com/u/7330385?v=4",
"events_url": "https://api.github.com/users/esvhd/events{/privacy}",
"followers_url": "https://api.github.com/users/esvhd/followers",
"following_url": "https://api.github.com/users/esvhd/following{/other_user}",
"gists_url": "https://api.github.com/users/esvhd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/esvhd",
"id": 7330385,
"login": "esvhd",
"node_id": "MDQ6VXNlcjczMzAzODU=",
"organizations_url": "https://api.github.com/users/esvhd/orgs",
"received_events_url": "https://api.github.com/users/esvhd/received_events",
"repos_url": "https://api.github.com/users/esvhd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/esvhd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/esvhd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/esvhd"
} | [
{
"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 | 5 | 2016-01-07T10:39:41Z | 2016-01-07T23:09:28Z | 2016-01-07T12:53:18Z | NONE | null | I am trying to concatenating two Panels with duplicate `Items` (but different `major_axes`) together, without actually having to duplicate items... Did some searching but couldn't find much on SO.
Unfortunately I cannot upload pics to github at the moment.. **But screens are attached [here](http://stackoverflow.com/questions/34652835/pandas-how-to-concatenate-two-panels-without-duplicating-items-axis-i-e-colum).**
To illustrate what I mean:
```
# create data
import pandas as pd
df1 = pd.DataFrame({'A' : [1, 2, 3], 'B' : [2, 5, 6]}, index={0, 1, 2})
df2 = pd.DataFrame({'A' : [1, 2, 3], 'B' : [2, 5, 6]}, index={3, 4, 5})
df3 = pd.DataFrame({'A' : [5, 2, 3], 'B' : [2, 5, 6]}, index={6, 7, 8})
df4 = pd.DataFrame({'A' : [6, 2, 3], 'B' : [2, 5, 6]}, index={9, 10, 11})
pan1 = pd.Panel({'X' : df1, 'Y': df2})
pan2 = pd.Panel({'X' : df3, 'Y': df4})
# concat these two panels above
pan3 = pd.concat([pan1, pan2])
pan3
Output:
<class 'pandas.core.panel.Panel'>
Dimensions: 4 (items) x 12 (major_axis) x 2 (minor_axis)
Items axis: X to Y
Major_axis axis: 0 to 11
Minor_axis axis: A to B
```
**Note that the `Items` axis for `pan3` is of length 4, while `pan1` and `pan2` both have `Items` axis of length 2.**
Looking at `pan3`'s `minor_axis`, I get duplicated columns in the frame below. **This is my problem.**:
```
pan3.loc[:, :, 'B']
```
Screenshot: See this [link on SO](http://stackoverflow.com/questions/34652835/pandas-how-to-concatenate-two-panels-without-duplicating-items-axis-i-e-colum)
**What I actually want to see** can be replicated as follows in a more complicated way... (Not more duplicated columns in the screenshot):
```
df5 = pd.concat([df1, df3])
df6 = pd.concat([df2, df4])
pan4 = pd.Panel({'X':df5, 'Y':df6})
pan4.loc[:, :, 'B']
```
Screenshot: See this [link on SO](http://stackoverflow.com/questions/34652835/pandas-how-to-concatenate-two-panels-without-duplicating-items-axis-i-e-colum)
**Is this something that can be done with `pd.concat`?** Thanks guys.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11982/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11982/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11983 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11983/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11983/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11983/events | https://github.com/pandas-dev/pandas/issues/11983 | 125,369,922 | MDU6SXNzdWUxMjUzNjk5MjI= | 11,983 | Panel resample by periods does not work in 0.17.1 for certain panels | {
"avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4",
"events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}",
"followers_url": "https://api.github.com/users/rekcahpassyla/followers",
"following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}",
"gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rekcahpassyla",
"id": 7807926,
"login": "rekcahpassyla",
"node_id": "MDQ6VXNlcjc4MDc5MjY=",
"organizations_url": "https://api.github.com/users/rekcahpassyla/orgs",
"received_events_url": "https://api.github.com/users/rekcahpassyla/received_events",
"repos_url": "https://api.github.com/users/rekcahpassyla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rekcahpassyla"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": 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 | 2016-01-07T10:48:52Z | 2018-07-06T20:21:09Z | 2017-07-11T09:54:41Z | CONTRIBUTOR | null | This code works in 0.15.2 but breaks in 0.17.1
``` python
import pandas as pd
import numpy as np
pd.show_versions()
items = ['foo']
major_axis = pd.date_range('2013-04-01', '2013-06-30')
minor_axis = [0]
p = pd.Panel(
np.ones(major_axis.size).reshape(1, -1, 1),
items=items,
major_axis=major_axis
)
p.resample('Q', how='mean', axis=1, kind='period')
```
### 0.15.2:
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_GB
pandas: 0.15.2
nose: 1.3.7
Cython: 0.22
numpy: 1.9.3
scipy: 0.16.0
statsmodels: None
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.1
pytz: 2015.7
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Out[1]:
<class 'pandas.core.panel.Panel'>
Dimensions: 1 (items) x 1 (major_axis) x 1 (minor_axis)
Items axis: foo to foo
Major_axis axis: 2013Q2 to 2013Q2
Minor_axis axis: 0 to 0
```
### 0.17.1:
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 3.2.1
sphinx: 1.3
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.4.3
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.7.7
lxml: None
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.10
pymysql: None
psycopg2: None
Jinja2: None
In [11]: p.resample('Q', how='mean', axis=1, kind='period')
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-11-37b0fd9cdc67> in <module>()
----> 1 p.resample('Q', how='mean', axis=1, kind='period')
c:\python\envs\pandas-0.17\lib\site-packages\pandas\core\generic.pyc in resample(self, rule, how, axis, fill_method, closed, label, convention, kind,
loffset, limit, base)
3641 fill_method=fill_method, convention=convention,
3642 limit=limit, base=base)
-> 3643 return sampler.resample(self).__finalize__(self)
3644
3645 def first(self, offset):
c:\python\envs\pandas-0.17\lib\site-packages\pandas\tseries\resample.pyc in resample(self, obj)
80
81 if isinstance(ax, DatetimeIndex):
---> 82 rs = self._resample_timestamps()
83 elif isinstance(ax, PeriodIndex):
84 offset = to_offset(self.freq)
c:\python\envs\pandas-0.17\lib\site-packages\pandas\tseries\resample.pyc in _resample_timestamps(self, kind)
285 # downsample
286 grouped = obj.groupby(grouper, axis=self.axis)
--> 287 result = grouped.aggregate(self._agg_method)
288 # GH2073
289 if self.fill_method is not None:
c:\python\envs\pandas-0.17\lib\site-packages\pandas\core\groupby.pyc in aggregate(self, arg, *args, **kwargs)
3661 """
3662 if isinstance(arg, compat.string_types):
-> 3663 return getattr(self, arg)(*args, **kwargs)
3664
3665 return self._aggregate_generic(arg, *args, **kwargs)
c:\python\envs\pandas-0.17\lib\site-packages\pandas\core\groupby.pyc in mean(self)
764 self._set_selection_from_grouper()
765 f = lambda x: x.mean(axis=self.axis)
--> 766 return self._python_agg_general(f)
767
768 def median(self):
c:\python\envs\pandas-0.17\lib\site-packages\pandas\core\groupby.pyc in _python_agg_general(self, func, *args, **kwargs)
1223 # iterate through "columns" ex exclusions to populate output dict
1224 output = {}
-> 1225 for name, obj in self._iterate_slices():
1226 try:
1227 result, counts = self.grouper.agg_series(obj, f)
c:\python\envs\pandas-0.17\lib\site-packages\pandas\core\groupby.pyc in _iterate_slices(self)
3637 slicer = lambda x: self._selected_obj[x]
3638 else:
-> 3639 raise NotImplementedError("axis other than 0 is not supported")
3640
3641 for val in slice_axis:
NotImplementedError: axis other than 0 is not supported
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11983/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11983/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11984 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11984/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11984/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11984/events | https://github.com/pandas-dev/pandas/issues/11984 | 125,374,742 | MDU6SXNzdWUxMjUzNzQ3NDI= | 11,984 | Pandas replacing values on specific columns. view vs. copy | {
"avatar_url": "https://avatars.githubusercontent.com/u/15892408?v=4",
"events_url": "https://api.github.com/users/mcocdawc/events{/privacy}",
"followers_url": "https://api.github.com/users/mcocdawc/followers",
"following_url": "https://api.github.com/users/mcocdawc/following{/other_user}",
"gists_url": "https://api.github.com/users/mcocdawc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mcocdawc",
"id": 15892408,
"login": "mcocdawc",
"node_id": "MDQ6VXNlcjE1ODkyNDA4",
"organizations_url": "https://api.github.com/users/mcocdawc/orgs",
"received_events_url": "https://api.github.com/users/mcocdawc/received_events",
"repos_url": "https://api.github.com/users/mcocdawc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mcocdawc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mcocdawc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mcocdawc"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 10 | 2016-01-07T11:18:16Z | 2019-10-01T08:25:38Z | 2017-06-28T09:36:52Z | CONTRIBUTOR | null | Hello,
I asked a question on StackExchange which is explaining my bug/feature:
http://stackoverflow.com/questions/34653215/pandas-replacing-values-on-specific-columns
pd.show_versions() gives:
## INSTALLED VERSIONS
commit: None
python: 3.5.0.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-57-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.0
nose: 1.3.7
pip: 7.1.2
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.0
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.4.3
openpyxl: 2.2.6
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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11984/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11984/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11985 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11985/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11985/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11985/events | https://github.com/pandas-dev/pandas/issues/11985 | 125,420,526 | MDU6SXNzdWUxMjU0MjA1MjY= | 11,985 | writer.save() prevents the creation of addtional sheets | {
"avatar_url": "https://avatars.githubusercontent.com/u/6398777?v=4",
"events_url": "https://api.github.com/users/phil20686/events{/privacy}",
"followers_url": "https://api.github.com/users/phil20686/followers",
"following_url": "https://api.github.com/users/phil20686/following{/other_user}",
"gists_url": "https://api.github.com/users/phil20686/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phil20686",
"id": 6398777,
"login": "phil20686",
"node_id": "MDQ6VXNlcjYzOTg3Nzc=",
"organizations_url": "https://api.github.com/users/phil20686/orgs",
"received_events_url": "https://api.github.com/users/phil20686/received_events",
"repos_url": "https://api.github.com/users/phil20686/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phil20686/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phil20686/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phil20686"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "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 | []
| null | 2 | 2016-01-07T15:52:34Z | 2019-01-21T04:44:15Z | 2019-01-21T04:44:15Z | NONE | null | When using pd.ExcelWriter, it appears that calling the save method prevents you from subsequently creating new sheets. E.g. see the following test script
``` python
import pandas as pd
import numpy as np
import os
if __name__ == "__main__" :
dates = pd.date_range('20130101', periods=6)
df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD'))
currentpath = os.path.realpath(__file__)
outputpath = os.path.join(currentpath, "..\\test.xlsx")
writer = pd.ExcelWriter(outputpath)
df.to_excel(writer, "thing1")
writer.save() #if you remove this line it works as expected
new_sheet = writer.book.add_worksheet("thing2")
new_sheet.write(1,1,"test")
print writer.book.sheetnames
writer.save()
writer.close()
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11985/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11985/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11986 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11986/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11986/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11986/events | https://github.com/pandas-dev/pandas/issues/11986 | 125,432,159 | MDU6SXNzdWUxMjU0MzIxNTk= | 11,986 | BUG: DataFrame.round() drops column index name | {
"avatar_url": "https://avatars.githubusercontent.com/u/8992201?v=4",
"events_url": "https://api.github.com/users/iyer/events{/privacy}",
"followers_url": "https://api.github.com/users/iyer/followers",
"following_url": "https://api.github.com/users/iyer/following{/other_user}",
"gists_url": "https://api.github.com/users/iyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iyer",
"id": 8992201,
"login": "iyer",
"node_id": "MDQ6VXNlcjg5OTIyMDE=",
"organizations_url": "https://api.github.com/users/iyer/orgs",
"received_events_url": "https://api.github.com/users/iyer/received_events",
"repos_url": "https://api.github.com/users/iyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iyer"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-01-07T16:44:19Z | 2016-01-08T14:04:28Z | 2016-01-08T14:04:28Z | NONE | null | - DataFrame.round() drops the index name in the column
- This is also seen when using np.round() on the dataframe.
- Further this is not seen when using other elementwise numpy operations such as np.floor()
- This is only observed in pandas 0.17.\* This was working fine in pandas 0.16.*
``` python
import pandas as pd
import numpy as np
rows=5
cols=2
index = pd.Index(range(rows), name='MYINDEX')
columns = pd.Index(range(cols), name='MYCOLUMNS')
df = pd.DataFrame(np.random.rand(rows,cols), index=index, columns=columns)
df
Out[2]:
MYCOLUMNS 0 1
MYINDEX
0 0.163862 0.828853
1 0.560261 0.980514
2 0.736242 0.055051
3 0.825197 0.783094
4 0.153369 0.069713
df.round(2)
Out[3]:
0 1
MYINDEX
0 0.16 0.83
1 0.56 0.98
2 0.74 0.06
3 0.83 0.78
4 0.15 0.07
np.round(df, 2)
Out[4]:
0 1
MYINDEX
0 0.16 0.83
1 0.56 0.98
2 0.74 0.06
3 0.83 0.78
4 0.15 0.07
np.floor(df)
Out[5]:
MYCOLUMNS 0 1
MYINDEX
0 0 0
1 0 0
2 0 0
3 0 0
4 0 0
pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.11.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
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
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.10
pymysql: None
psycopg2: None
Jinja2: 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/11986/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11986/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11987 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11987/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11987/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11987/events | https://github.com/pandas-dev/pandas/issues/11987 | 125,432,235 | MDU6SXNzdWUxMjU0MzIyMzU= | 11,987 | separate sparsify for header and body | {
"avatar_url": "https://avatars.githubusercontent.com/u/8132456?v=4",
"events_url": "https://api.github.com/users/youlyst/events{/privacy}",
"followers_url": "https://api.github.com/users/youlyst/followers",
"following_url": "https://api.github.com/users/youlyst/following{/other_user}",
"gists_url": "https://api.github.com/users/youlyst/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/youlyst",
"id": 8132456,
"login": "youlyst",
"node_id": "MDQ6VXNlcjgxMzI0NTY=",
"organizations_url": "https://api.github.com/users/youlyst/orgs",
"received_events_url": "https://api.github.com/users/youlyst/received_events",
"repos_url": "https://api.github.com/users/youlyst/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/youlyst/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/youlyst/subscriptions",
"type": "User",
"url": "https://api.github.com/users/youlyst"
} | [
{
"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"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
]
| open | false | null | []
| null | 7 | 2016-01-07T16:44:29Z | 2021-09-09T13:45:38Z | null | NONE | null | hi
i would welcome if option `sparsify` could be set separately for header and body
as i want body without `sparsify=False` and head with `sparsify=True`
what do you think about it?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11987/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11987/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11988 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11988/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11988/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11988/events | https://github.com/pandas-dev/pandas/pull/11988 | 125,434,719 | MDExOlB1bGxSZXF1ZXN0NTUzNjA2ODU= | 11,988 | COMPAT: drop suppport for python 2.6, #7718 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 13 | 2016-01-07T16:49:44Z | 2016-01-08T14:07:20Z | 2016-01-08T14:07:14Z | CONTRIBUTOR | null | closes #8760
closes #7718
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11988/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11988/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11988.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11988",
"merged_at": "2016-01-08T14:07:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11988.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11988"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11989 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11989/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11989/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11989/events | https://github.com/pandas-dev/pandas/issues/11989 | 125,446,358 | MDU6SXNzdWUxMjU0NDYzNTg= | 11,989 | DOC: read_csv() ignores quotes when a regex is used in sep | {
"avatar_url": "https://avatars.githubusercontent.com/u/239185?v=4",
"events_url": "https://api.github.com/users/Fixman/events{/privacy}",
"followers_url": "https://api.github.com/users/Fixman/followers",
"following_url": "https://api.github.com/users/Fixman/following{/other_user}",
"gists_url": "https://api.github.com/users/Fixman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Fixman",
"id": 239185,
"login": "Fixman",
"node_id": "MDQ6VXNlcjIzOTE4NQ==",
"organizations_url": "https://api.github.com/users/Fixman/orgs",
"received_events_url": "https://api.github.com/users/Fixman/received_events",
"repos_url": "https://api.github.com/users/Fixman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Fixman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Fixman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Fixman"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-01-07T17:31:09Z | 2016-01-30T15:34:26Z | 2016-01-30T15:34:26Z | NONE | null | When using a regular expression in the `sep` argument of `read_csv`, the Python parser disregards quotes in the input file.
In the following example, `example.csv` is parsed correctly by `read_csv` without regexes in `sep`, while the version with regexes (which should evaluate to exactly the same as the previous version) fails because it parses the commas inside the quotes.
`example2.csv`, which doesn't contain quotes, is parsed correctly using the same code.
``` python
In [1]: import pandas
In [2]: !cat example.csv
a,b,c,d
q,w,e,r
a,s,d,f
"z,x,c,v",i,o,p
In [3]: pandas.read_csv('example.csv', engine = 'python', quotechar = '"', sep = ',')
Out[3]:
a b c d
0 q w e r
1 a s d f
2 z,x,c,v i o p
In [4]: pandas.read_csv('example.csv', engine = 'python', quotechar = '"', sep = '[,]')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-4-5f9ad4fdcd46> in <module>()
----> 1 pandas.read_csv('example.csv', engine = 'python', quotechar = '"', sep = '[,]')
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines)
489 skip_blank_lines=skip_blank_lines)
490
--> 491 return _read(filepath_or_buffer, kwds)
492
493 parser_f.__name__ = name
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
276 return parser
277
--> 278 return parser.read()
279
280 _parser_defaults = {
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in read(self, nrows)
738 raise ValueError('skip_footer not supported for iteration')
739
--> 740 ret = self._engine.read(nrows)
741
742 if self.options.get('as_recarray'):
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in read(self, rows)
1593 content = content[1:]
1594
-> 1595 alldata = self._rows_to_cols(content)
1596 data = self._exclude_implicit_index(alldata)
1597
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in _rows_to_cols(self, content)
1968 msg = ('Expected %d fields in line %d, saw %d' %
1969 (col_len, row_num + 1, zip_len))
-> 1970 raise ValueError(msg)
1971
1972 if self.usecols:
ValueError: Expected 4 fields in line 4, saw 7
In [5]: !cat example2.csv
a,b,c,d
q,w,e,r
a,s,d,f
z,x,c,v
In [6]: pandas.read_csv('example2.csv', engine = 'python', quotechar = '"', sep = '[,]')
Out[6]:
a b c d
0 q w e r
1 a s d f
2 z x c v
In [7]: pandas.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-74-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.0
nose: 1.3.1
pip: 1.5.4
setuptools: 1.1.4
Cython: None
numpy: 1.10.1
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 3.1.0
sphinx: None
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.2.2
matplotlib: 1.3.1
openpyxl: 1.7.0
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: 4.2.1
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11989/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11989/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11990 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11990/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11990/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11990/events | https://github.com/pandas-dev/pandas/issues/11990 | 125,454,342 | MDU6SXNzdWUxMjU0NTQzNDI= | 11,990 | select_dtypes fails on float16 typecode | {
"avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4",
"events_url": "https://api.github.com/users/jseabold/events{/privacy}",
"followers_url": "https://api.github.com/users/jseabold/followers",
"following_url": "https://api.github.com/users/jseabold/following{/other_user}",
"gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jseabold",
"id": 296164,
"login": "jseabold",
"node_id": "MDQ6VXNlcjI5NjE2NA==",
"organizations_url": "https://api.github.com/users/jseabold/orgs",
"received_events_url": "https://api.github.com/users/jseabold/received_events",
"repos_url": "https://api.github.com/users/jseabold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jseabold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jseabold"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-01-07T18:14:05Z | 2016-01-12T23:47:54Z | 2016-01-12T23:47:54Z | CONTRIBUTOR | null | I'll see if it's an easy fix.
```
import pandas as pd
import numpy as np
FLOAT_TYPES = list(np.typecodes['AllFloat'])
df = pd.util.testing.makeDataFrame()
df.select_dtypes(FLOAT_TYPES)
FLOAT_TYPES.remove('e')
df.select_dtypes(FLOAT_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/11990/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11990/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11991 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11991/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11991/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11991/events | https://github.com/pandas-dev/pandas/pull/11991 | 125,457,773 | MDExOlB1bGxSZXF1ZXN0NTUzNzI4MzQ= | 11,991 | BUG: Allow typecode of 'e' to be passed to select_dtypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4",
"events_url": "https://api.github.com/users/jseabold/events{/privacy}",
"followers_url": "https://api.github.com/users/jseabold/followers",
"following_url": "https://api.github.com/users/jseabold/following{/other_user}",
"gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jseabold",
"id": 296164,
"login": "jseabold",
"node_id": "MDQ6VXNlcjI5NjE2NA==",
"organizations_url": "https://api.github.com/users/jseabold/orgs",
"received_events_url": "https://api.github.com/users/jseabold/received_events",
"repos_url": "https://api.github.com/users/jseabold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jseabold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jseabold"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 11 | 2016-01-07T18:33:53Z | 2016-01-13T01:01:18Z | 2016-01-12T23:48:10Z | CONTRIBUTOR | null | Closes #11990.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11991/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11991/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11991.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11991",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11991.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11991"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11992 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11992/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11992/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11992/events | https://github.com/pandas-dev/pandas/pull/11992 | 125,458,159 | MDExOlB1bGxSZXF1ZXN0NTUzNzMwMTg= | 11,992 | BUG: DataFrame.round() drops column index name #11986 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1483534?v=4",
"events_url": "https://api.github.com/users/rcarneva/events{/privacy}",
"followers_url": "https://api.github.com/users/rcarneva/followers",
"following_url": "https://api.github.com/users/rcarneva/following{/other_user}",
"gists_url": "https://api.github.com/users/rcarneva/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rcarneva",
"id": 1483534,
"login": "rcarneva",
"node_id": "MDQ6VXNlcjE0ODM1MzQ=",
"organizations_url": "https://api.github.com/users/rcarneva/orgs",
"received_events_url": "https://api.github.com/users/rcarneva/received_events",
"repos_url": "https://api.github.com/users/rcarneva/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rcarneva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rcarneva/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rcarneva"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 10 | 2016-01-07T18:35:32Z | 2016-01-08T14:04:55Z | 2016-01-08T14:04:55Z | CONTRIBUTOR | null | Fixes #11986. Used the same reconstruction method as `DataFrame.isin()` to ensure that column names are kept through rounding. Works with `np.round` as well.
Pretty minor fix -- does this need a release note or anything else?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11992/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11992/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11992.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11992",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/11992.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11992"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11993 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11993/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11993/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11993/events | https://github.com/pandas-dev/pandas/issues/11993 | 125,488,951 | MDU6SXNzdWUxMjU0ODg5NTE= | 11,993 | COMPAT: add >= 2.7 features | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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 | []
| null | 3 | 2016-01-07T21:33:16Z | 2018-10-26T05:57:34Z | 2018-10-26T05:57:34Z | CONTRIBUTOR | null | xref #7718
xref #11988
since we recently removed 2.6 (and 3.3) support, we are now free to use some features of later releases.
Some of these may be useful. We should investigate and create individual issues.
see [here](https://docs.python.org/2/whatsnew/2.7.html)
- The syntax for set literals (`{1,2,3}` is a mutable set).
- Dictionary and set comprehensions (`{i: i*2 for i in range(3)}`).
- `io` library (#10470)
- `argparse` (rather then `optparse`)
- maybe dictviews
- memoryviews
- `sysconfig`
- automatic number in `.format`
```
>>> '{}:{}:{day}'.format(2009, 4, day='Sunday')
'2009:4:Sunday'
```
- using `assertRaises` as a context manager
```
with self.assertRaises(KeyError):
{}['foo']
```
- lots of other improved testing goodies!
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11993/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11993/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11994 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11994/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11994/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11994/events | https://github.com/pandas-dev/pandas/issues/11994 | 125,492,920 | MDU6SXNzdWUxMjU0OTI5MjA= | 11,994 | read_html leading zero problem | {
"avatar_url": "https://avatars.githubusercontent.com/u/16600418?v=4",
"events_url": "https://api.github.com/users/Matt2520/events{/privacy}",
"followers_url": "https://api.github.com/users/Matt2520/followers",
"following_url": "https://api.github.com/users/Matt2520/following{/other_user}",
"gists_url": "https://api.github.com/users/Matt2520/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Matt2520",
"id": 16600418,
"login": "Matt2520",
"node_id": "MDQ6VXNlcjE2NjAwNDE4",
"organizations_url": "https://api.github.com/users/Matt2520/orgs",
"received_events_url": "https://api.github.com/users/Matt2520/received_events",
"repos_url": "https://api.github.com/users/Matt2520/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Matt2520/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Matt2520/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Matt2520"
} | [
{
"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"
},
{
"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 | []
| null | 1 | 2016-01-07T21:52:03Z | 2016-01-07T22:00:06Z | 2016-01-07T21:59:53Z | NONE | null | Hi, new to python and pandas, but am trying to work with information off the web that has serial numbers. Many of the numbers have leading zeros which that are important to carry over, but pandas interprets the values as integers and drops the zero. I was trying to change the dtype to str but read_html doesn't have a dtype argument, and it seems like infer_types = False is depricated (or at least I get an exception for unexpected keyword argument). What is the best way to get these zeros back?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11994/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11994/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11995 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11995/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11995/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11995/events | https://github.com/pandas-dev/pandas/issues/11995 | 125,513,340 | MDU6SXNzdWUxMjU1MTMzNDA= | 11,995 | BUG: pd.Timedelta cannot handle unicode on Python 2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-08T00:08:08Z | 2016-01-08T18:20:15Z | 2016-01-08T18:20:15Z | MEMBER | null | This is on master:
``````
In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: '0.17.1+179.g44e4c96'
In [3]: pd.Timedelta('1H')
Out[3]: Timedelta('0 days 01:00:00')
In [4]: pd.Timedelta(u'1H')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-9b0d9f7ba675> in <module>()
----> 1 pd.Timedelta(u'1H')
/Users/shoyer/dev/pandas/pandas/tslib.pyx in pandas.tslib.Timedelta.__new__ (pandas/tslib.c:39786)()
2329 value = value.value
2330 elif util.is_string_object(value):
-> 2331 value = np.timedelta64(parse_timedelta_string(value, False))
2332 elif isinstance(value, timedelta):
2333 value = convert_to_timedelta64(value,'ns',False)
/Users/shoyer/dev/pandas/pandas/tslib.pyx in pandas.tslib.parse_timedelta_string (pandas/tslib.c:46542)()
2784 return NPY_NAT
2785
-> 2786 for c in ts:
2787
2788 # skip whitespace / commas
TypeError: Expected str, got unicode```
``````
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11995/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11995/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11996 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11996/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11996/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11996/events | https://github.com/pandas-dev/pandas/issues/11996 | 125,589,425 | MDU6SXNzdWUxMjU1ODk0MjU= | 11,996 | Dataframe diff unexpected result | {
"avatar_url": "https://avatars.githubusercontent.com/u/1150402?v=4",
"events_url": "https://api.github.com/users/kdebrab/events{/privacy}",
"followers_url": "https://api.github.com/users/kdebrab/followers",
"following_url": "https://api.github.com/users/kdebrab/following{/other_user}",
"gists_url": "https://api.github.com/users/kdebrab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kdebrab",
"id": 1150402,
"login": "kdebrab",
"node_id": "MDQ6VXNlcjExNTA0MDI=",
"organizations_url": "https://api.github.com/users/kdebrab/orgs",
"received_events_url": "https://api.github.com/users/kdebrab/received_events",
"repos_url": "https://api.github.com/users/kdebrab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kdebrab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kdebrab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kdebrab"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 2 | 2016-01-08T11:06:50Z | 2016-01-08T13:44:18Z | 2016-01-08T13:44:18Z | CONTRIBUTOR | null | Pandas version 0.17.1:
``` python
In [1]: import pandas as pd
...: data = pd.DataFrame({'d':[1,2,3],'e':[1.5,2,3],'f':[2,2,3]},index=list('abc'))
...: data.diff(axis=1)
Out[1]:
d e f
a NaN NaN 1
b NaN NaN 0
c NaN NaN 0
```
Hint: the following gives expected result
``` python
In [2]: data.astype(float).diff(axis=1)
Out[2]:
d e f
a NaN 0.5 0.5
b NaN 0.0 0.0
c NaN 0.0 0.0
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11996/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11996/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11997 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11997/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11997/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11997/events | https://github.com/pandas-dev/pandas/pull/11997 | 125,622,874 | MDExOlB1bGxSZXF1ZXN0NTU0NjcxMzU= | 11,997 | BUG: accept unicode in Timedelta constructor, #11995 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-01-08T14:32:32Z | 2016-01-08T18:28:57Z | 2016-01-08T18:20:15Z | CONTRIBUTOR | null | closes #11995
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11997/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11997/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/11997.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/11997",
"merged_at": "2016-01-08T18:20:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/11997.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/11997"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/11998 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11998/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11998/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11998/events | https://github.com/pandas-dev/pandas/issues/11998 | 125,649,122 | MDU6SXNzdWUxMjU2NDkxMjI= | 11,998 | Series/DataFrame lookup values behave inconsistently | {
"avatar_url": "https://avatars.githubusercontent.com/u/14838612?v=4",
"events_url": "https://api.github.com/users/yueatwork/events{/privacy}",
"followers_url": "https://api.github.com/users/yueatwork/followers",
"following_url": "https://api.github.com/users/yueatwork/following{/other_user}",
"gists_url": "https://api.github.com/users/yueatwork/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yueatwork",
"id": 14838612,
"login": "yueatwork",
"node_id": "MDQ6VXNlcjE0ODM4NjEy",
"organizations_url": "https://api.github.com/users/yueatwork/orgs",
"received_events_url": "https://api.github.com/users/yueatwork/received_events",
"repos_url": "https://api.github.com/users/yueatwork/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yueatwork/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yueatwork/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yueatwork"
} | [
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| null | 3 | 2016-01-08T16:57:58Z | 2016-01-08T21:04:48Z | 2016-01-08T18:26:10Z | NONE | null | One feature about DataFrame that I found uncomfortable is the inconsistency of results:
```
x = pd.DataFrame({'A': [1,2,3,4,5]}, index=['a','b','c','d','e'])
x.loc[['a', 'f']] # fine, value of 'f' is numpy.nan
x.loc[['f']] # throws
```
When developing data applications, I spend lot of time fixing this issue. I think we should make it more consistent. Either always returns (preferred) or always throws.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11998/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11998/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/11999 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/11999/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/11999/comments | https://api.github.com/repos/pandas-dev/pandas/issues/11999/events | https://github.com/pandas-dev/pandas/issues/11999 | 125,669,313 | MDU6SXNzdWUxMjU2NjkzMTM= | 11,999 | HDFStore unexpectedly changes data ordering for panels | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"color": "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 | []
| null | 2 | 2016-01-08T18:47:40Z | 2019-12-20T14:02:09Z | 2019-12-20T14:02:08Z | CONTRIBUTOR | null | ```
import pandas as pd
import numpy as np
df = pd.Panel(np.arange(8).reshape((2,2,2)))
print(df.values.flags)
print('-----')
with pd.HDFStore('temp.h5', 'w') as s:
s.put('df', df)
new_df = s.get('df')
print(new_df.values.flags)
```
outputs:
```
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
-----
C_CONTIGUOUS : False
F_CONTIGUOUS : True
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
```
Relevant link:
https://github.com/pydata/pandas/blob/f2b083beaee7302eb739d3847ea5271330ff5886/pandas/io/pytables.py#l2495
GenericFixed.write_array seems to transpose the data before writing, but unsure why that is the case
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/11999/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/11999/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12000 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12000/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12000/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12000/events | https://github.com/pandas-dev/pandas/pull/12000 | 125,679,580 | MDExOlB1bGxSZXF1ZXN0NTU1MDE3OTY= | 12,000 | Small improvements to str_cat | {
"avatar_url": "https://avatars.githubusercontent.com/u/2947268?v=4",
"events_url": "https://api.github.com/users/hack-c/events{/privacy}",
"followers_url": "https://api.github.com/users/hack-c/followers",
"following_url": "https://api.github.com/users/hack-c/following{/other_user}",
"gists_url": "https://api.github.com/users/hack-c/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hack-c",
"id": 2947268,
"login": "hack-c",
"node_id": "MDQ6VXNlcjI5NDcyNjg=",
"organizations_url": "https://api.github.com/users/hack-c/orgs",
"received_events_url": "https://api.github.com/users/hack-c/received_events",
"repos_url": "https://api.github.com/users/hack-c/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hack-c/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hack-c/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hack-c"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "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 | []
| null | 7 | 2016-01-08T19:42:42Z | 2016-02-11T21:22:45Z | 2016-02-11T21:22:45Z | CONTRIBUTOR | null | closes #11435
closes #11334.
Added some doc examples to make the behavior with `nan` more clear, and catch an error condition when a `sep` is passed instead of an `others` (array) as an argument and print a more intuitive error message.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12000/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12000/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12000.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12000",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12000.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12000"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12001 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12001/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12001/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12001/events | https://github.com/pandas-dev/pandas/pull/12001 | 125,710,116 | MDExOlB1bGxSZXF1ZXN0NTU1MjA2MzA= | 12,001 | DOC: fix escape in EWM docstring | {
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-01-08T22:46:06Z | 2016-01-09T15:15:38Z | 2016-01-09T15:15:38Z | MEMBER | null | Because of the `\a` in the `\alpha` otherwise being interpreted
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12001/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12001/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12001.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12001",
"merged_at": "2016-01-09T15:15:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/12001.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12001"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12002 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12002/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12002/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12002/events | https://github.com/pandas-dev/pandas/pull/12002 | 125,718,496 | MDExOlB1bGxSZXF1ZXN0NTU1MjU2NTQ= | 12,002 | DOC/CI: include api docs on travis | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 9 | 2016-01-08T23:51:02Z | 2016-01-25T20:12:42Z | 2016-01-24T23:04:08Z | MEMBER | null | Continuation of #11069 (It seems I cannot reopen that PR because I already force pushed the branch ..)
Closes #3800
TODO:
- [x] remove printing of doc build log file in after_script
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12002/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12002/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12002.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12002",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12002.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12002"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12003 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12003/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12003/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12003/events | https://github.com/pandas-dev/pandas/issues/12003 | 125,720,106 | MDU6SXNzdWUxMjU3MjAxMDY= | 12,003 | DOC: use RTD for doc builds / hosting | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
}
]
| null | 9 | 2016-01-09T00:04:24Z | 2018-07-13T04:55:53Z | 2018-07-13T04:55:46Z | CONTRIBUTOR | null | now RTD support conda, see [here](https://github.com/rtfd/readthedocs.org/issues/857).
for pure-python packages this is quite easy (e.g. @shoyer just added `xray` support).
We would have to build a conda package on travis. and push to our channel. Which is then pulled from RTD.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12003/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12003/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.