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/13804
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13804/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13804/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13804/events
|
https://github.com/pandas-dev/pandas/pull/13804
| 167,635,116 |
MDExOlB1bGxSZXF1ZXN0Nzg4NzE1NzM=
| 13,804 |
CLN: Removed the kwds param in to_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "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-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"
}
| 5 | 2016-07-26T15:21:51Z | 2016-07-29T07:56:37Z | 2016-07-29T07:56:20Z |
MEMBER
| null |
We aren't using it anymore with the removal of parameters like `engine`. Closes #8206.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13804/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13804/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13804.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13804",
"merged_at": "2016-07-29T07:56:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13804.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13804"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13805
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13805/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13805/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13805/events
|
https://github.com/pandas-dev/pandas/pull/13805
| 167,677,997 |
MDExOlB1bGxSZXF1ZXN0Nzg5MDE0MTk=
| 13,805 |
ASV: fix params to be strings (for better repr)
|
{
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 1 | 2016-07-26T18:29:31Z | 2016-07-27T10:19:32Z | 2016-07-27T10:19:31Z |
MEMBER
| null |
Small fix to using params in asv (otherwise the name was huge, list of 500000 elements)
cc @gfyoung (just so you know I changed this for future reference)
|
{
"+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/13805/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13805/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13805.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13805",
"merged_at": "2016-07-27T10:19:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13805.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13805"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13806
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13806/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13806/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13806/events
|
https://github.com/pandas-dev/pandas/issues/13806
| 167,679,766 |
MDU6SXNzdWUxNjc2Nzk3NjY=
| 13,806 |
"Or" does not have commutative property (possibly because it catches exceptions silently?)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1832193?v=4",
"events_url": "https://api.github.com/users/josepablog/events{/privacy}",
"followers_url": "https://api.github.com/users/josepablog/followers",
"following_url": "https://api.github.com/users/josepablog/following{/other_user}",
"gists_url": "https://api.github.com/users/josepablog/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josepablog",
"id": 1832193,
"login": "josepablog",
"node_id": "MDQ6VXNlcjE4MzIxOTM=",
"organizations_url": "https://api.github.com/users/josepablog/orgs",
"received_events_url": "https://api.github.com/users/josepablog/received_events",
"repos_url": "https://api.github.com/users/josepablog/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josepablog/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josepablog/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josepablog"
}
|
[
{
"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": "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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 13 | 2016-07-26T18:37:57Z | 2016-07-27T12:28:06Z | 2016-07-27T11:25:41Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
import pandas as pd
```
#Create sample dataframe
test = pd.DataFrame({"a":["12", float("nan"), "3", "meow" ]})
# Select rows that are null or numeric:
print len(test[ test["a"].isnull() | test["a"].str.isnumeric()])
# Select rows that are numeric or null
print len(test[ test["a"].str.isnumeric() | test["a"].isnull() ])
# These two should return the same result, right? Unfortunately they don't
```
Notice that `Series.str.isnumeric` throws an exception on null entries. However, I believe that this may introduce bugs silently
#### Expected Output
Expected output is:
2
2
Instead, I get:
3
2
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.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/13806/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13806/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13807
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13807/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13807/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13807/events
|
https://github.com/pandas-dev/pandas/pull/13807
| 167,693,696 |
MDExOlB1bGxSZXF1ZXN0Nzg5MTI0OTg=
| 13,807 |
DOC: contributing: explain how to set the asv reporting threshold
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35046?v=4",
"events_url": "https://api.github.com/users/pv/events{/privacy}",
"followers_url": "https://api.github.com/users/pv/followers",
"following_url": "https://api.github.com/users/pv/following{/other_user}",
"gists_url": "https://api.github.com/users/pv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pv",
"id": 35046,
"login": "pv",
"node_id": "MDQ6VXNlcjM1MDQ2",
"organizations_url": "https://api.github.com/users/pv/orgs",
"received_events_url": "https://api.github.com/users/pv/received_events",
"repos_url": "https://api.github.com/users/pv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pv"
}
|
[
{
"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-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"
}
| 2 | 2016-07-26T19:41:47Z | 2016-07-27T09:37:44Z | 2016-07-27T09:37:43Z |
CONTRIBUTOR
| null |
The default `asv continuous` reporting threshold is 100% change (2x), which probably is far too large for pandas use case, so instruct how to set it lower. (Probably the asv default should be changed, but that's a different issue.)
|
{
"+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/13807/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13807/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13807.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13807",
"merged_at": "2016-07-27T09:37:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13807.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13807"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13808
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13808/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13808/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13808/events
|
https://github.com/pandas-dev/pandas/issues/13808
| 167,695,321 |
MDU6SXNzdWUxNjc2OTUzMjE=
| 13,808 |
Initializing DataFrom from list of OrderedDicts does not preserve Column order
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1473799?v=4",
"events_url": "https://api.github.com/users/cod3monk/events{/privacy}",
"followers_url": "https://api.github.com/users/cod3monk/followers",
"following_url": "https://api.github.com/users/cod3monk/following{/other_user}",
"gists_url": "https://api.github.com/users/cod3monk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cod3monk",
"id": 1473799,
"login": "cod3monk",
"node_id": "MDQ6VXNlcjE0NzM3OTk=",
"organizations_url": "https://api.github.com/users/cod3monk/orgs",
"received_events_url": "https://api.github.com/users/cod3monk/received_events",
"repos_url": "https://api.github.com/users/cod3monk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cod3monk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cod3monk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cod3monk"
}
|
[
{
"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": "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": "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"
}
| 2 | 2016-07-26T19:49:47Z | 2016-07-26T22:52:55Z | 2016-07-26T22:20:56Z |
NONE
| null |
``` python
>>> import pandas as pd
>>> from collections import OrderedDict
>>> od = [OrderedDict([('z', 0), ('a', 1), ('*', 2)])]
>>> pd.DataFrame(od)
* a z
0 2 1 0
>>> pd.DataFrame.from_dict(od)
* a z
0 2 1 0
```
If OrderedDicts are used, I would expect the column order of the first OrderDict that is encountered to be preserved, as the following:
``` python
>>> pd.DataFrame(od, columns=od[0].keys())
z a *
0 0 1 2
>>>
```
If different orders occur in the list, the earlier would overwrite the later. If new columns are introduced with subsequent list entries, I would expect all new columns to be appended to the original columns, with their relative order preserved.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13808/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13808/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13809
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13809/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13809/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13809/events
|
https://github.com/pandas-dev/pandas/issues/13809
| 167,721,016 |
MDU6SXNzdWUxNjc3MjEwMTY=
| 13,809 |
Why is there no mode method for groupby objects?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3486466?v=4",
"events_url": "https://api.github.com/users/connerxyz/events{/privacy}",
"followers_url": "https://api.github.com/users/connerxyz/followers",
"following_url": "https://api.github.com/users/connerxyz/following{/other_user}",
"gists_url": "https://api.github.com/users/connerxyz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/connerxyz",
"id": 3486466,
"login": "connerxyz",
"node_id": "MDQ6VXNlcjM0ODY0NjY=",
"organizations_url": "https://api.github.com/users/connerxyz/orgs",
"received_events_url": "https://api.github.com/users/connerxyz/received_events",
"repos_url": "https://api.github.com/users/connerxyz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/connerxyz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/connerxyz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/connerxyz"
}
|
[
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2 | 2016-07-26T21:52:06Z | 2016-07-26T22:24:47Z | 2016-07-26T22:24:38Z |
NONE
| null |
There is `mean`, `max`, `median`, `min` and `mad` yet no `mode` for `groupby` objects. Is there a good reason? What if I add and issue pull-request?
|
{
"+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/13809/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13809/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13810
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13810/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13810/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13810/events
|
https://github.com/pandas-dev/pandas/pull/13810
| 167,744,692 |
MDExOlB1bGxSZXF1ZXN0Nzg5NDk0MzE=
| 13,810 |
DOC: Fix groupby nth
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 4 | 2016-07-27T00:48:19Z | 2016-07-29T00:28:27Z | 2016-07-29T00:28:21Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
Current API doc looks incorrect. Fixed it to meet #11039.
- http://pandas-docs.github.io/pandas-docs-travis/generated/pandas.core.groupby.GroupBy.nth.html
cc @behzadnouri
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13810/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13810/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13810.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13810",
"merged_at": "2016-07-29T00:28:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13810.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13810"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13811
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13811/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13811/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13811/events
|
https://github.com/pandas-dev/pandas/issues/13811
| 167,755,053 |
MDU6SXNzdWUxNjc3NTUwNTM=
| 13,811 |
specific-column-is-last
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1656188?v=4",
"events_url": "https://api.github.com/users/BMeridian/events{/privacy}",
"followers_url": "https://api.github.com/users/BMeridian/followers",
"following_url": "https://api.github.com/users/BMeridian/following{/other_user}",
"gists_url": "https://api.github.com/users/BMeridian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BMeridian",
"id": 1656188,
"login": "BMeridian",
"node_id": "MDQ6VXNlcjE2NTYxODg=",
"organizations_url": "https://api.github.com/users/BMeridian/orgs",
"received_events_url": "https://api.github.com/users/BMeridian/received_events",
"repos_url": "https://api.github.com/users/BMeridian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BMeridian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BMeridian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BMeridian"
}
|
[
{
"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"
}
| 7 | 2016-07-27T02:25:54Z | 2016-07-27T21:37:10Z | 2016-07-27T02:36:45Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
df.columns
Index([u'a', u'b', u'c', u'd'], dtype='object')
Dont do this, looks like a bug.
df.columns.drop(["b"]).insert(-1, 'b')
Index([u'a', u'c', u'b', u'd'], dtype='object')
df.columns.drop(["b"]).insert(-1, 'x')
Index([u'a', u'c', u'x', u'd'], dtype='object')
WORK Around:
df.columns.drop(["b"]).insert(99999, 'b')
Index([u'a', u'c', u'd', u'b'], dtype='object')
#### Expected Output
df.columns.drop(["b"]).insert(-1, 'b')
Index([u'a', u'c', u'd', u'b'], dtype='object')
#### output of `pd.show_versions()`
pandas 18.1
http://stackoverflow.com/questions/38601841/what-is-the-quickest-way-to-ensure-a-specific-column-is-last-or-first-in-a-dat/38602601#38602601
## INSTALLED VERSIONS
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 4.1.12-1-default
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.utf8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 24.0.2
Cython: None
numpy: 1.11.1
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.1
sphinx: 1.4.4
patsy: 0.4.0
dateutil: 2.5.3
pytz: 2016.4
blosc: 1.2.8
bottleneck: None
tables: None
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.2.3
bs4: 4.3.2
html5lib: 0.9999999
httplib2: 0.9.1
apiclient: 1.4.2
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.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/13811/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13811/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13812
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13812/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13812/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13812/events
|
https://github.com/pandas-dev/pandas/pull/13812
| 167,766,018 |
MDExOlB1bGxSZXF1ZXN0Nzg5NjI2MjA=
| 13,812 |
BUG, COMPAT: Fix multi-char sep + non-utf8 in read_csv for Python 2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-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"
}
| 5 | 2016-07-27T04:07:34Z | 2016-07-28T23:43:44Z | 2016-07-28T23:43:39Z |
MEMBER
| null |
Title is self-explanatory. Closes #3404.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13812/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13812/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13812.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13812",
"merged_at": "2016-07-28T23:43:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13812.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13812"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13813
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13813/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13813/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13813/events
|
https://github.com/pandas-dev/pandas/issues/13813
| 167,798,041 |
MDU6SXNzdWUxNjc3OTgwNDE=
| 13,813 |
Groupby and shift causing coredump
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/477551?v=4",
"events_url": "https://api.github.com/users/mynci/events{/privacy}",
"followers_url": "https://api.github.com/users/mynci/followers",
"following_url": "https://api.github.com/users/mynci/following{/other_user}",
"gists_url": "https://api.github.com/users/mynci/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mynci",
"id": 477551,
"login": "mynci",
"node_id": "MDQ6VXNlcjQ3NzU1MQ==",
"organizations_url": "https://api.github.com/users/mynci/orgs",
"received_events_url": "https://api.github.com/users/mynci/received_events",
"repos_url": "https://api.github.com/users/mynci/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mynci/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mynci/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mynci"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 3 | 2016-07-27T08:23:37Z | 2016-07-29T10:22:23Z | 2016-07-29T10:22:23Z |
NONE
| null |
Hi,
I have attempted to reduce this to the smallest example that exhibits this issue - rather than a useful example. The problem is that the operation causes python to core dump.
In the original case in which I discovered this the core dump would only occur sometimes (and when I put it in a loop it would occur on different iterations). This code seems to core dump on the third iteration every time I have run it.
Code example:
```
import os
import pandas as pd
df = pd.read_csv(os.path.join(os.getcwd(), 'error_report.txt'), sep='\t')
for i in range(0, 1000):
print "Pre shift {}".format(i)
df['shift_F'] = df.groupby(['B', 'C'])['F'].shift(-1)
print "Post shift {}".format(i)
```
With the attached data file (tab separated) - code assumes in the same directory:
[error_report.txt](https://github.com/pydata/pandas/files/385604/error_report.txt)
This the output I get:
```
python pandas_test.py
Pre shift 0
Post shift 0
Pre shift 1
Post shift 1
Pre shift 2
Segmentation fault (core dumped)
```
If I modify the code to use apply and then add the shifted column inside the apply function then there is no error. Similarly if I use .shift(0) I do not get the error.
Version info:
```
>>> pandas.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-24-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: 1.3.1
pip: 8.1.2
setuptools: 20.2.2
Cython: None
numpy: 1.11.1
scipy: 0.13.3
statsmodels: 0.5.0
xarray: None
IPython: 1.2.1
sphinx: None
patsy: 0.2.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.6.1
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: 0.7.2.None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
```
Regards
Stephen
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13813/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13813/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13814
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13814/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13814/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13814/events
|
https://github.com/pandas-dev/pandas/pull/13814
| 167,827,838 |
MDExOlB1bGxSZXF1ZXN0NzkwMDUwMjA=
| 13,814 |
TST: AmbiguousTimeError with set_index()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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-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"
}
| 3 | 2016-07-27T11:03:16Z | 2016-07-27T21:31:58Z | 2016-07-27T21:31:55Z |
MEMBER
| null |
- [x] closes #12920
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
this has been fixed by #13750. added tests.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13814/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13814/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13814.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13814",
"merged_at": "2016-07-27T21:31:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13814.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13814"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13815
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13815/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13815/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13815/events
|
https://github.com/pandas-dev/pandas/pull/13815
| 167,828,387 |
MDExOlB1bGxSZXF1ZXN0NzkwMDUzOTU=
| 13,815 |
BLD: use tempita for hashtable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 4 | 2016-07-27T11:06:35Z | 2016-07-28T23:42:08Z | 2016-07-28T23:41:41Z |
MEMBER
| null |
- [x] closes #13786
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13815/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13815/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13815.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13815",
"merged_at": "2016-07-28T23:41:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13815.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13815"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13816
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13816/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13816/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13816/events
|
https://github.com/pandas-dev/pandas/issues/13816
| 167,835,617 |
MDU6SXNzdWUxNjc4MzU2MTc=
| 13,816 |
pd.Series.min(skipna=True) is not working on a slice
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4955958?v=4",
"events_url": "https://api.github.com/users/dimi-tree/events{/privacy}",
"followers_url": "https://api.github.com/users/dimi-tree/followers",
"following_url": "https://api.github.com/users/dimi-tree/following{/other_user}",
"gists_url": "https://api.github.com/users/dimi-tree/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dimi-tree",
"id": 4955958,
"login": "dimi-tree",
"node_id": "MDQ6VXNlcjQ5NTU5NTg=",
"organizations_url": "https://api.github.com/users/dimi-tree/orgs",
"received_events_url": "https://api.github.com/users/dimi-tree/received_events",
"repos_url": "https://api.github.com/users/dimi-tree/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dimi-tree/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dimi-tree/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dimi-tree"
}
|
[
{
"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-07-27T11:52:32Z | 2016-07-27T21:29:47Z | 2016-07-27T21:29:36Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
``` Python
s = pd.Series(data=[1, 3, datetime(2016,7,27).date(), datetime(2015,7,27).date(), datetime(2017,7,27).date(), np.nan])
s
0 1
1 3
2 2016-07-27
3 2015-07-27
4 2017-07-27
5 NaN
dtype: object
s.iloc[2:]
2 2016-07-27
3 2015-07-27
4 2017-07-27
5 NaN
dtype: object
s.iloc[2:].min(skipna=True)
# ...
# TypeError: can't compare datetime.date to float
```
#### Expected Output
`'2015-07-27'`
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.1
setuptools: 21.2.1
Cython: 0.24
numpy: 1.10.2
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.13
pymysql: 0.6.7.None
psycopg2: 2.6.1 (dt dec pq3 ext)
jinja2: 2.8
boto: None
pandas_datareader: 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/13816/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13816/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13817
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13817/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13817/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13817/events
|
https://github.com/pandas-dev/pandas/issues/13817
| 167,841,999 |
MDU6SXNzdWUxNjc4NDE5OTk=
| 13,817 |
BUG: df.to_dict('record') casts ints to floats
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12202811?v=4",
"events_url": "https://api.github.com/users/lamyiowce/events{/privacy}",
"followers_url": "https://api.github.com/users/lamyiowce/followers",
"following_url": "https://api.github.com/users/lamyiowce/following{/other_user}",
"gists_url": "https://api.github.com/users/lamyiowce/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lamyiowce",
"id": 12202811,
"login": "lamyiowce",
"node_id": "MDQ6VXNlcjEyMjAyODEx",
"organizations_url": "https://api.github.com/users/lamyiowce/orgs",
"received_events_url": "https://api.github.com/users/lamyiowce/received_events",
"repos_url": "https://api.github.com/users/lamyiowce/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lamyiowce/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lamyiowce/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lamyiowce"
}
|
[
{
"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 |
[] | null | 2 | 2016-07-27T12:31:03Z | 2016-07-27T13:07:15Z | 2016-07-27T13:07:10Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```
df = pd.DataFrame({"a": [1, 2], "b": [42, 65], "c": [0.5, 0.4]})
df.to_dict("records")
>>> [{'a': 1.0, 'b': 42.0, 'c': 0.5},
{'a': 2.0, 'b': 65.0, 'c': 0.40000000000000002}]
```
#### Expected Output
```
[{'a': 1, 'b': 42, 'c': 0.5},
{'a': 2, 'b': 65, 'c': 0.40000000000000002}]
```
#### comment
Same bug for `df.to_dict("index")` and `df.to_dict("split")`, but not for the rest. If all data is integer, the function works properly.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-38-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: pl_PL.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
|
{
"+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/13817/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13817/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13818
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13818/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13818/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13818/events
|
https://github.com/pandas-dev/pandas/issues/13818
| 167,848,378 |
MDU6SXNzdWUxNjc4NDgzNzg=
| 13,818 |
DataFrame - Add chunksize to from_records()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5131271?v=4",
"events_url": "https://api.github.com/users/achapkowski/events{/privacy}",
"followers_url": "https://api.github.com/users/achapkowski/followers",
"following_url": "https://api.github.com/users/achapkowski/following{/other_user}",
"gists_url": "https://api.github.com/users/achapkowski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/achapkowski",
"id": 5131271,
"login": "achapkowski",
"node_id": "MDQ6VXNlcjUxMzEyNzE=",
"organizations_url": "https://api.github.com/users/achapkowski/orgs",
"received_events_url": "https://api.github.com/users/achapkowski/received_events",
"repos_url": "https://api.github.com/users/achapkowski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/achapkowski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/achapkowski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/achapkowski"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
open
| false | null |
[] | null | 17 | 2016-07-27T13:03:50Z | 2021-05-01T22:47:08Z | null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
Currently the from_records does not take a chunksize.
```
import pandas as pd
df = pd.DataFrame.from_records(data, index=None, exclude=None,
columns=None,
coerce_float=False,
nrows=None)
```
#### Enhancement
I would like to see the chunksize options like in read_csv()
```
import pandas as pd
dfs = pd.DataFrame.from_records(data, index=None, exclude=None,
columns=None,
coerce_float=False,
nrows=None, chunksize=10000)
res = []
for df in dfs:
df['col'] = 'blah'
res.append(df)
df = pd.concat(res)
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 32
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.16.1
nose: 1.3.7
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.1
sqlalchemy: None
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13818/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13818/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13819
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13819/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13819/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13819/events
|
https://github.com/pandas-dev/pandas/pull/13819
| 167,849,213 |
MDExOlB1bGxSZXF1ZXN0NzkwMjA1NzI=
| 13,819 |
BUG: group_shift_indexer checks for null group keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2227377?v=4",
"events_url": "https://api.github.com/users/ivannz/events{/privacy}",
"followers_url": "https://api.github.com/users/ivannz/followers",
"following_url": "https://api.github.com/users/ivannz/following{/other_user}",
"gists_url": "https://api.github.com/users/ivannz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivannz",
"id": 2227377,
"login": "ivannz",
"node_id": "MDQ6VXNlcjIyMjczNzc=",
"organizations_url": "https://api.github.com/users/ivannz/orgs",
"received_events_url": "https://api.github.com/users/ivannz/received_events",
"repos_url": "https://api.github.com/users/ivannz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivannz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivannz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivannz"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 9 | 2016-07-27T13:07:58Z | 2016-07-29T10:23:06Z | 2016-07-29T10:22:23Z |
CONTRIBUTOR
| null |
- [x] closes #13813
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13819/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13819/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13819.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13819",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13819.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13819"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13820
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13820/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13820/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13820/events
|
https://github.com/pandas-dev/pandas/issues/13820
| 167,885,574 |
MDU6SXNzdWUxNjc4ODU1NzQ=
| 13,820 |
ERR: better error message on invalid return from .apply
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2016449?v=4",
"events_url": "https://api.github.com/users/mhabets/events{/privacy}",
"followers_url": "https://api.github.com/users/mhabets/followers",
"following_url": "https://api.github.com/users/mhabets/following{/other_user}",
"gists_url": "https://api.github.com/users/mhabets/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mhabets",
"id": 2016449,
"login": "mhabets",
"node_id": "MDQ6VXNlcjIwMTY0NDk=",
"organizations_url": "https://api.github.com/users/mhabets/orgs",
"received_events_url": "https://api.github.com/users/mhabets/received_events",
"repos_url": "https://api.github.com/users/mhabets/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mhabets/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhabets/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mhabets"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 4 | 2016-07-27T15:37:16Z | 2020-01-07T23:45:41Z | 2020-01-07T23:45:41Z |
NONE
| null |
#### Code Sample
``` python
def apply_list (row):
return [2*row['A'], 4*row['C'], 3*row['B']]
df = pd.DataFrame(np.random.randn(6,4), columns=list('ABCD'))
df['E'] = pd.Timestamp('20130102')
df['L'] = df.apply(apply_list, axis=1)
```
#### (Wrong) Error Output
```
ValueError: Shape of passed values is (6, 3), indices imply (6, 7)
```
#### Expected Result & Use case
Expected: a Serie containing a list for each row which are **in my real case the result of a matrix multiplication processed with values coming from other columns** (see a complete example in the next section)
Note: It works with a DataFrame without a datetime column (but not with a DataFrame with it):
```
0 [0.513057023122, -0.473155481431, -4.51039058299]
1 [-0.331758428452, 3.92166465759, 2.75920806524]
2 [-2.07257568656, 1.22070341071, 0.809676040678]
3 [3.38079201699, 2.77074189984, 1.4351938036]
4 [2.27838740024, 3.04253558763, 3.57504651688]
5 [1.55497385554, 8.01021203173, -2.22893240905]
```
#### Complete example with matrix multiplication
``` python
from numpy import pi, mat, cos, sin
def rotation(lon_rad, lat_rad):
c_lat = cos(lat_rad); s_lat = sin(lat_rad)
c_lon = cos(lon_rad); s_lon = sin(lon_rad)
R = mat([[-s_lon, -s_lat*c_lon, c_lat*c_lon],
[ c_lon, -s_lat*s_lon, c_lat*s_lon],
[ 0, c_lat, s_lat]])
return R.T
def row_rotation(row):
return rotation_ECEF_to_ENU(row['A']*pi/180.0, row['B']*pi/180).tolist()
df = pd.DataFrame(np.random.randn(6,4), columns=list('ABCD'))
# If I don't add the line below, I get what I want
df['E'] = pd.Timestamp('20130102')
df['M'] = df.apply(row_rotation, axis=1)
```
It works as I want if there is no datetime column in df:
```
A B C D \
0 0.498796 0.209267 -0.551132 -0.066941
1 -0.576161 -0.160802 0.895587 -0.355315
2 -0.604028 0.959712 -1.388824 -0.356734
3 -0.351012 0.242736 0.339068 -0.531425
4 -1.355900 0.058885 1.458610 1.891502
5 -0.560297 0.750459 1.288340 0.904650
M
0 [[-0.008705521998618918, 0.9999621062253967, 0...
1 [[0.010055737814803208, 0.9999494397903326, 0....
2 [[0.010542084651556644, 0.9999444306816251, 0....
3 [[0.006126282255403784, 0.9999812341567851, 0....
4 [[0.023662708414555287, 0.99971999891494, 0.0]...
5 [[0.00977887456308289, 0.9999521856630343, 0.0...
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-92-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 22.0.5
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.1
xlsxwriter: 0.8.9
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
jinja2: 2.8
boto: 2.40.0
pandas_datareader: 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/13820/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13820/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13821
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13821/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13821/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13821/events
|
https://github.com/pandas-dev/pandas/issues/13821
| 167,887,642 |
MDU6SXNzdWUxNjc4ODc2NDI=
| 13,821 |
'groupby' multiple columns and 'sum' multiple columns with different types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4543414?v=4",
"events_url": "https://api.github.com/users/pmckelvy1/events{/privacy}",
"followers_url": "https://api.github.com/users/pmckelvy1/followers",
"following_url": "https://api.github.com/users/pmckelvy1/following{/other_user}",
"gists_url": "https://api.github.com/users/pmckelvy1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pmckelvy1",
"id": 4543414,
"login": "pmckelvy1",
"node_id": "MDQ6VXNlcjQ1NDM0MTQ=",
"organizations_url": "https://api.github.com/users/pmckelvy1/orgs",
"received_events_url": "https://api.github.com/users/pmckelvy1/received_events",
"repos_url": "https://api.github.com/users/pmckelvy1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pmckelvy1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pmckelvy1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pmckelvy1"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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": "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": "2019-01-26T00:51:26Z",
"closed_issues": 2048,
"created_at": "2018-03-29T12:00:12Z",
"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": "",
"due_on": "2019-01-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/55",
"id": 3228419,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels",
"node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==",
"number": 55,
"open_issues": 0,
"state": "closed",
"title": "0.24.0",
"updated_at": "2019-01-29T07:42:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55"
}
| 7 | 2016-07-27T15:45:39Z | 2018-11-08T15:09:15Z | 2018-11-08T15:08:41Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```
from decimal import *
import pandas as pd
df = pd.DataFrame(
{'name': ['foo', 'bar', 'foo', 'bar'],
'title': ['boo', 'far', 'boo', 'far'],
'id': [123, 456, 123, 456],
'int_column': [1, 2, 3, 4],
'dec_column1': [Decimal('0.50'), Decimal('0.15'), Decimal('0.25'), Decimal('0.40')],
'dec_column2': [Decimal('0.20'), Decimal('0.30'), Decimal('0.55'), Decimal('0.60')]
},
columns=['name','title','id','int_column','dec_column1','dec_column2']
)
df.groupby(['name', 'title', 'id'], as_index=False).sum()
```
#### Expected Output
i have dataframe that looks something like this...
| **name** | **title** | **id** | **int_column** | **dec_column1** | **dec_column2** |
...that has multiple rows with the same **name**, **title**, and **id**, but different values for the 3 number columns (**int_column**, **dec_column1**, **dec_column2**).
**int_column** == column of integers
**dec_column1** == column of decimals
**dec_column2** == column of decimals
I would like to be able to groupby the first three columns, and sum the last 3. I would expect to be able to do the following:
df = df.groupby(['name', 'title', 'id'], as_index=False).sum()
however, the only column that gets summed and ends up in the final dataframe is the int_column.
| **name** | **title** | **id** | **int_column** |
if i explicitly name the columns, i can get the statement to target the decimal columns either on their own or together....
df = df.groupby(['name', 'title', 'id'], as_index=False)['dec_column1'].sum()
returns...
| **name** | **title** | **id** | **dec_column1** |
and...
df = df.groupby(['name', 'title', 'id'], as_index=False)['dec_column1', 'dec_column2'].sum()
returns...
| **name** | **title** | **id** | **dec_column1** | **dec_column1** |
however...
df = df.groupby(['name', 'title', 'id'], as_index=False)['dec_column1', 'dec_column2', 'user_num'].sum()
or...
df = df.groupby(['name', 'title', 'id'], as_index=False)['dec_column1', 'user_num', 'dec_column2'].sum()
or...
df = df.groupby(['name', 'title', 'id'], as_index=False)['user_num', 'dec_column1', 'dec_column2'].sum()
returns...
| **name** | **title** | **id** | **int_column** |
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.15.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.11.1
scipy: None
statsmodels: None
IPython: 5.0.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.5
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: 0.7.5.None
psycopg2: 2.5.5 (dt dec pq3 ext)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13821/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13821/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13822
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13822/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13822/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13822/events
|
https://github.com/pandas-dev/pandas/issues/13822
| 167,930,557 |
MDU6SXNzdWUxNjc5MzA1NTc=
| 13,822 |
KeyError shows incorrect column name when DataFrame has duplicate columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/70800?v=4",
"events_url": "https://api.github.com/users/Wilfred/events{/privacy}",
"followers_url": "https://api.github.com/users/Wilfred/followers",
"following_url": "https://api.github.com/users/Wilfred/following{/other_user}",
"gists_url": "https://api.github.com/users/Wilfred/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Wilfred",
"id": 70800,
"login": "Wilfred",
"node_id": "MDQ6VXNlcjcwODAw",
"organizations_url": "https://api.github.com/users/Wilfred/orgs",
"received_events_url": "https://api.github.com/users/Wilfred/received_events",
"repos_url": "https://api.github.com/users/Wilfred/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Wilfred/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Wilfred/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Wilfred"
}
|
[
{
"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": "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": "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"
}
| 3 | 2016-07-27T19:02:37Z | 2020-02-14T10:34:14Z | 2016-08-02T10:50:50Z |
CONTRIBUTOR
| null |
``` python
>>> import pandas as pd
>>> df = pd.DataFrame({'x': [1.], 'y': [2.], 'z': [3.]})
>>> df.columns = ['x', 'x', 'z']
>>> df[['x', 'y', 'z']]
KeyError: "['z'] not in index"
```
I expected to see `KeyError: "['y'] not in index"`.
I've tested this on the latest code in master (and on 0.16):
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.18-400.1.1.el5
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB
LOCALE: None.None
pandas: 0.18.1+279.g31f8e4d
nose: None
pip: 1.3.1
setuptools: 0.6
Cython: 0.22
numpy: 1.9.2
scipy: None
statsmodels: None
xarray: None
IPython: 3.2.0-1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.6
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13822/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13822/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13823
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13823/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13823/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13823/events
|
https://github.com/pandas-dev/pandas/issues/13823
| 167,979,708 |
MDU6SXNzdWUxNjc5Nzk3MDg=
| 13,823 |
API: Add support for PEP 519
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/537223?v=4",
"events_url": "https://api.github.com/users/AnkurDedania/events{/privacy}",
"followers_url": "https://api.github.com/users/AnkurDedania/followers",
"following_url": "https://api.github.com/users/AnkurDedania/following{/other_user}",
"gists_url": "https://api.github.com/users/AnkurDedania/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AnkurDedania",
"id": 537223,
"login": "AnkurDedania",
"node_id": "MDQ6VXNlcjUzNzIyMw==",
"organizations_url": "https://api.github.com/users/AnkurDedania/orgs",
"received_events_url": "https://api.github.com/users/AnkurDedania/received_events",
"repos_url": "https://api.github.com/users/AnkurDedania/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AnkurDedania/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AnkurDedania/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AnkurDedania"
}
|
[
{
"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": 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-07-27T23:24:55Z | 2017-05-18T21:06:27Z | 2017-05-18T21:06:27Z |
NONE
| null |
File System Path Protocol has been accepted and implemented into Python 3.6, a backwards compatibility layer to support the introduced PEP 519 for python version < 3.6.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13823/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13823/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13824
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13824/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13824/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13824/events
|
https://github.com/pandas-dev/pandas/issues/13824
| 168,018,106 |
MDU6SXNzdWUxNjgwMTgxMDY=
| 13,824 |
Mixing bars and lines in a time series plot clobbers the xaxis tick values?
|
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2016-07-28T05:52:17Z | 2016-07-28T06:13:20Z | 2016-07-28T06:12:38Z |
NONE
| null |
All rendered in a jupter notebook with `%matplotlib inline`
The following non-time series plot works fine
``` python
dd = pd.DataFrame({'a':[-1,1,2], 'b':[3,2,3]})
fig, ax = plt.subplots()
dd.a.plot.bar(ax=ax)
dd.b.plot(ax=ax)
```
The following timeseries variant results in the bars not appearing on the plot, but the y_lim range showing it formed part of the rendering.
``` python
rng = pd.period_range('1/1/2000', '3/30/2000', freq='M')
dd = pd.DataFrame({'a':[-1,1,2], 'b':[3,2,3]}, index=rng)
fig, ax = plt.subplots()
dd.a.plot.bar(ax=ax)
dd.b.plot(ax=ax)
```
And swapping the plot order shows that the dates for the bars are being set to the epoch - with the line not being rendered - but the line tick labels are (along with the epoch dates for the bars).
``` python
rng = pd.period_range('1/1/2000', '3/30/2000', freq='M')
dd = pd.DataFrame({'a':[-1,1,2], 'b':[3,2,3]}, index=rng)
fig, ax = plt.subplots()
dd.b.plot(ax=ax)
dd.a.plot.bar(ax=ax)
```
I'm guessing the xaxis tick values for the bar variable are being set to commence at zero, resulting in the the rendered dates to commence at the epoch.
But the xaxis values for the variable plotted as a line do not change, but are now at a different value to the bar variable.
Condsequently, only the line or the bar is rendered, depending on the plotting order.
I'm guessing the issue is in the time series converter.py module.
With some guidance, I'm happy to try and pin it down further. I do have spare time at the moment.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13824/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13824/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13825
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13825/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13825/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13825/events
|
https://github.com/pandas-dev/pandas/issues/13825
| 168,047,773 |
MDU6SXNzdWUxNjgwNDc3NzM=
| 13,825 |
Feature suggestion: flexible merge by function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14159329?v=4",
"events_url": "https://api.github.com/users/nadavbra/events{/privacy}",
"followers_url": "https://api.github.com/users/nadavbra/followers",
"following_url": "https://api.github.com/users/nadavbra/following{/other_user}",
"gists_url": "https://api.github.com/users/nadavbra/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nadavbra",
"id": 14159329,
"login": "nadavbra",
"node_id": "MDQ6VXNlcjE0MTU5MzI5",
"organizations_url": "https://api.github.com/users/nadavbra/orgs",
"received_events_url": "https://api.github.com/users/nadavbra/received_events",
"repos_url": "https://api.github.com/users/nadavbra/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nadavbra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nadavbra/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nadavbra"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] | null | 4 | 2016-07-28T09:09:11Z | 2019-10-09T05:12:40Z | 2019-10-09T05:12:40Z |
NONE
| null |
It would be really convenient to allow the **on**, **left_on** and **right_on** arguments of **pandas.merge** being a function, with the following suggested signatures:
Arguments:
- **index** (pandas.Index)
- **row** (pandas.Series)
They will return an hashable object (of any dtype) to be compared against the other dataframe when doing the merge.
For example, you will be able to the the following:
`pd.merge(df1, df2, on_left = 'first_name', on_right = lambda index, row: parse_first_name(row['full_name']))`
This way, although **df2** doesn't have a **first_name** column (only **full_name**), it will be mergable with **df1** without any preprocessing step.
I would also like to suggest that leaving **on**, **left_on** and **right_on** with **None** would result the full Cartesian product of the two 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/13825/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13825/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13826
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13826/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13826/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13826/events
|
https://github.com/pandas-dev/pandas/issues/13826
| 168,054,847 |
MDU6SXNzdWUxNjgwNTQ4NDc=
| 13,826 |
Feature suggestion: custom DataFrame HTML display (for IPython notebook)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14159329?v=4",
"events_url": "https://api.github.com/users/nadavbra/events{/privacy}",
"followers_url": "https://api.github.com/users/nadavbra/followers",
"following_url": "https://api.github.com/users/nadavbra/following{/other_user}",
"gists_url": "https://api.github.com/users/nadavbra/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nadavbra",
"id": 14159329,
"login": "nadavbra",
"node_id": "MDQ6VXNlcjE0MTU5MzI5",
"organizations_url": "https://api.github.com/users/nadavbra/orgs",
"received_events_url": "https://api.github.com/users/nadavbra/received_events",
"repos_url": "https://api.github.com/users/nadavbra/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nadavbra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nadavbra/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nadavbra"
}
|
[
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "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 | 8 | 2016-07-28T09:44:51Z | 2017-08-10T10:49:28Z | 2017-08-10T10:49:28Z |
NONE
| null |
I looked briefly at your new custom styling feature from version 0.17.1 (http://pandas.pydata.org/pandas-docs/stable/style.html). I'm excited about the possibilities of custom styling and all the benefits it would allow researchers, but I feel that the current interface is somewhat non-intuitive and limited.
I would like to suggest a single generic feature that has the potential to include almost all other existing features, and allow a lot more flexibility. The idea is to allow overriding the default function that "draws" the elements in the dataframe as HTML table cells.
Let's say that this drawing function is `df.style.draw_element` and it receives the following arguments:
- **value** (any object/dtype): the value of the element to display
- **column** (str): the name of the value's column
- **row** (pandas.Series): the value of the entire element's row (if one wants to make a context-dependent drawing)
Additionally you can also add **index** and **df** as arguments, if you want to allow even more flexible context-dependent drawing.
The default built-in implementation of this function is just:
`def draw_element(value, column, row): return str(value)`
(i.e. every element is just displayed as it is)
But now, it will allow users to override it and add their own cool functionality. For example, one could do the following:
`df.style.draw_element = lambda: value, column, row: str(value) if value >= 0 else '<div style = "background-color: red;">%s</div>' % str(value)`
This will highlight in red all the negative values in the table.
This trick is already achievable with the current interface, but here's another example for some cool application that I don't think can be achieved with the current interface. Suppose that a bioinformatician working with DNA sequences (made of the four letters A, C, G, T) is interested in drawing each DNA letter with a different color (although all the letters are part of a single sequence within the same element in the dataframe). Using the new interface she will be able to simply do the following:
`df.style.draw_element = lambda: value, column, row: ''.join(['<span style = "color: %s;">%s</span>' % (get_dna_letter_color(letter), letter) for letter in value]) if 'dna' in column.lower() else str(value)`
How cool is 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/13826/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13826/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13827
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13827/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13827/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13827/events
|
https://github.com/pandas-dev/pandas/pull/13827
| 168,087,963 |
MDExOlB1bGxSZXF1ZXN0NzkxODk5NzI=
| 13,827 |
COMPAT: Categorical Subclassing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "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": "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"
}
| 5 | 2016-07-28T12:52:08Z | 2016-08-04T10:36:57Z | 2016-08-04T10:36:54Z |
MEMBER
| null |
- [x] related to #8640
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
It allows to subclass `Categorical` related to #8640. Shoud it use `_simple_new` or `_constructor`?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13827/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13827/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13827.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13827",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13827.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13827"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13828
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13828/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13828/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13828/events
|
https://github.com/pandas-dev/pandas/issues/13828
| 168,101,167 |
MDU6SXNzdWUxNjgxMDExNjc=
| 13,828 |
to_html ignores na_rep when float_format set
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/501736?v=4",
"events_url": "https://api.github.com/users/paulperry/events{/privacy}",
"followers_url": "https://api.github.com/users/paulperry/followers",
"following_url": "https://api.github.com/users/paulperry/following{/other_user}",
"gists_url": "https://api.github.com/users/paulperry/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paulperry",
"id": 501736,
"login": "paulperry",
"node_id": "MDQ6VXNlcjUwMTczNg==",
"organizations_url": "https://api.github.com/users/paulperry/orgs",
"received_events_url": "https://api.github.com/users/paulperry/received_events",
"repos_url": "https://api.github.com/users/paulperry/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paulperry/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paulperry/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paulperry"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1 | 2016-07-28T13:53:34Z | 2020-10-24T02:49:08Z | 2020-10-24T02:49:08Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
http://stackoverflow.com/questions/23700835/pandas-to-html-no-value-representation
df = pd.DataFrame([['A',1.2225],['A',]], columns=['Group','Data'])
df.to_html(na_rep="Ted",float_format='{0:.2f}'.format)
#### Expected Output
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>Group</th>
<th>Data</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td> A</td>
<td>1.22</td>
</tr>
<tr>
<th>1</th>
<td> A</td>
<td> Ted</td>
</tr>
</tbody>
</table>
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.2
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.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/13828/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13828/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13829
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13829/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13829/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13829/events
|
https://github.com/pandas-dev/pandas/issues/13829
| 168,117,851 |
MDU6SXNzdWUxNjgxMTc4NTE=
| 13,829 |
Incorrect timedelta type coercion when doing in-place .loc expansion
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1190540?v=4",
"events_url": "https://api.github.com/users/bmcfee/events{/privacy}",
"followers_url": "https://api.github.com/users/bmcfee/followers",
"following_url": "https://api.github.com/users/bmcfee/following{/other_user}",
"gists_url": "https://api.github.com/users/bmcfee/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bmcfee",
"id": 1190540,
"login": "bmcfee",
"node_id": "MDQ6VXNlcjExOTA1NDA=",
"organizations_url": "https://api.github.com/users/bmcfee/orgs",
"received_events_url": "https://api.github.com/users/bmcfee/received_events",
"repos_url": "https://api.github.com/users/bmcfee/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bmcfee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bmcfee/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bmcfee"
}
|
[
{
"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": "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"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 2 | 2016-07-28T15:00:13Z | 2019-10-21T19:52:16Z | null |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
``` python
In [1]: import pandas as pd
In [2]: d = pd.DataFrame(columns=list('abc'))
In [3]: d.loc[0] = dict(a=pd.to_timedelta(5, unit='s'),
b=pd.to_timedelta(72, unit='s'),
c='23')
In [4]: d
Out[4]:
a b c
0 00:00:05 00:01:12 00:00:00.000000
In [5]: d.c
Out[5]:
0 00:00:00.000000
Name: c, dtype: timedelta64[ns]
```
#### Expected Output
```
a b c
0 00:00:05 00:01:12 23
```
The `c` column should have type `object` and the value at `loc[0]` should be of type string.
Note that this does _not_ happen when only one of the `a` or `b` are timedeltas:
``` python
In [9]: d2 = pd.DataFrame(columns=list('abc'))
In [10]: d2.loc[0] = dict(a=5, b=pd.to_timedelta(72, unit='s'), c='23')
In [11]: d2
Out[11]:
a b c
0 5.0 00:01:12 23
In [12]: d3 = pd.DataFrame(columns=list('abc'))
In [13]: d3.loc[0] = dict(a=pd.to_timedelta(5, unit='s'), b=72, c='23')
In [14]: d3
Out[14]:
a b c
0 00:00:05 72.0 23
```
In these two cases, the `c` column retains the correct type.
#### output of `pd.show_versions()`
```
In [6]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-31-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 20.1.1
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: None
xarray: None
IPython: 5.0.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.0
matplotlib: 1.5.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13829/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13829/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13830
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13830/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13830/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13830/events
|
https://github.com/pandas-dev/pandas/issues/13830
| 168,127,044 |
MDU6SXNzdWUxNjgxMjcwNDQ=
| 13,830 |
Inconsistent types in output of series.to_dict() and DataFrame([series]).loc[0].to_dict()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/370930?v=4",
"events_url": "https://api.github.com/users/mikepqr/events{/privacy}",
"followers_url": "https://api.github.com/users/mikepqr/followers",
"following_url": "https://api.github.com/users/mikepqr/following{/other_user}",
"gists_url": "https://api.github.com/users/mikepqr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mikepqr",
"id": 370930,
"login": "mikepqr",
"node_id": "MDQ6VXNlcjM3MDkzMA==",
"organizations_url": "https://api.github.com/users/mikepqr/orgs",
"received_events_url": "https://api.github.com/users/mikepqr/received_events",
"repos_url": "https://api.github.com/users/mikepqr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mikepqr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikepqr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mikepqr"
}
|
[
{
"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 | 3 | 2016-07-28T15:36:10Z | 2016-07-28T16:41:28Z | 2016-07-28T16:40:17Z |
NONE
| null |
`to_dict()` extracts the elements from a Series as different types depending on whether or not the series was accessed by, e.g. `loc[0]` on a DataFrame or not:
``` python
>>> s = pd.Series({'a': None, 'b': 99, 'c': 'hello'})
>>> df = pd.DataFrame([s])
>>> [type(v) for k, v in s.to_dict().items()]
[NoneType, str, int]
>>> [type(v) for k, v in df.loc[0].to_dict().items()]
[NoneType, str, numpy.int64]
```
Note that the number is a base int when extracted with `s.to_dict()`, but it's a `numpy.int64` when extracted from `df.loc[0]`. The same inconsistency applies to `tolist()`.
Is this inconsistency a feature or a bug? And if it's a feature, does anyone know how do I reliably extract the values of a row from a DataFrame in base python types, using either `to_dict()` or `tolist()`?
#### output of `pd.show_versions()`
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-56-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 1.5.6
setuptools: 12.2
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13830/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13830/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13831
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13831/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13831/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13831/events
|
https://github.com/pandas-dev/pandas/issues/13831
| 168,219,048 |
MDU6SXNzdWUxNjgyMTkwNDg=
| 13,831 |
Series.loc/iloc[x, y] does not raise exception
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1593648?v=4",
"events_url": "https://api.github.com/users/pkch/events{/privacy}",
"followers_url": "https://api.github.com/users/pkch/followers",
"following_url": "https://api.github.com/users/pkch/following{/other_user}",
"gists_url": "https://api.github.com/users/pkch/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pkch",
"id": 1593648,
"login": "pkch",
"node_id": "MDQ6VXNlcjE1OTM2NDg=",
"organizations_url": "https://api.github.com/users/pkch/orgs",
"received_events_url": "https://api.github.com/users/pkch/received_events",
"repos_url": "https://api.github.com/users/pkch/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pkch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkch/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pkch"
}
|
[
{
"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"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 4 | 2016-07-28T23:21:52Z | 2020-03-30T18:49:31Z | null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```
df = pd.DataFrame({'a': [10]})
# df['a'] is a series, can be indexed with 1 index only
# will raise IndexingError, as expected
df['a'].iloc[0, 0]
df['a'].loc[0, 0]
# will raise nothing, not as expected
df['a'].iloc[0, 0] = 1000 # equivalent to pass
df['a'].loc[0, 0] = 1000 # equivalent to df['a'].loc[0] = 1000
```
See [this SO post](http://stackoverflow.com/a/38644472/336527)
#### Expected Output
Expected an IndexingError exception in every case where two values are used to index a Series.
#### output of `pd.show_versions()`
pandas version 0.18.1, python 3.5
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13831/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13831/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13832
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13832/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13832/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13832/events
|
https://github.com/pandas-dev/pandas/pull/13832
| 168,275,980 |
MDExOlB1bGxSZXF1ZXN0NzkzMjQyNzI=
| 13,832 |
BUG: Don't error in pd.to_timedelta when errors=ignore
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "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-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"
}
| 35 | 2016-07-29T08:32:20Z | 2016-08-15T22:27:42Z | 2016-08-15T22:27:20Z |
MEMBER
| null |
Title is self-explanatory. Closes #13613.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13832/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13832/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13832.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13832",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13832.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13832"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13833
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13833/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13833/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13833/events
|
https://github.com/pandas-dev/pandas/pull/13833
| 168,309,203 |
MDExOlB1bGxSZXF1ZXN0NzkzNDgyNDU=
| 13,833 |
TST: A test to cover fault in issue #5291
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2227377?v=4",
"events_url": "https://api.github.com/users/ivannz/events{/privacy}",
"followers_url": "https://api.github.com/users/ivannz/followers",
"following_url": "https://api.github.com/users/ivannz/following{/other_user}",
"gists_url": "https://api.github.com/users/ivannz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivannz",
"id": 2227377,
"login": "ivannz",
"node_id": "MDQ6VXNlcjIyMjczNzc=",
"organizations_url": "https://api.github.com/users/ivannz/orgs",
"received_events_url": "https://api.github.com/users/ivannz/received_events",
"repos_url": "https://api.github.com/users/ivannz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivannz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivannz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivannz"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 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-07-29T11:56:44Z | 2017-11-06T02:01:14Z | 2016-08-02T05:37:04Z |
CONTRIBUTOR
| null |
The mentioned issue faulted under similar conditions as issue #13703, and was also fixed by PR #13788. This PR just adds a test to replicate the fault, as discussed in the issue's thread.
- [x] closes #5291
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This PR also corrects accidental use of **float("nan")** instead of **np.nan** in [`test_parse_trim_buffers`](https://github.com/pydata/pandas/blob/master/pandas/io/tests/parser/c_parser_only.py#L442).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13833/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13833/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13833.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13833",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13833.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13833"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13834
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13834/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13834/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13834/events
|
https://github.com/pandas-dev/pandas/issues/13834
| 168,317,305 |
MDU6SXNzdWUxNjgzMTczMDU=
| 13,834 |
[BUG]: Wrong unix timestamp parsing with floating point using pd.to_datetime
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6637618?v=4",
"events_url": "https://api.github.com/users/lopezco/events{/privacy}",
"followers_url": "https://api.github.com/users/lopezco/followers",
"following_url": "https://api.github.com/users/lopezco/following{/other_user}",
"gists_url": "https://api.github.com/users/lopezco/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lopezco",
"id": 6637618,
"login": "lopezco",
"node_id": "MDQ6VXNlcjY2Mzc2MTg=",
"organizations_url": "https://api.github.com/users/lopezco/orgs",
"received_events_url": "https://api.github.com/users/lopezco/received_events",
"repos_url": "https://api.github.com/users/lopezco/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lopezco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lopezco/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lopezco"
}
|
[
{
"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": "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": 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-07-29T12:48:05Z | 2016-08-09T21:48:25Z | 2016-08-09T21:48:25Z |
NONE
| null |
Hello!
I'm trying to parse floating point timestamps with `pd.to_datetime` but the only way that it works is using the **deprecated parameter** `coerce=True`
For example, without `coerce=True` the result is wrong.
``` python
>>> pd.to_datetime(1.1, unit='s') # Expected result Timestamp('1970-01-01 00:00:01.100000')
Timestamp('1970-01-01 00:00:01')
```
However, with `coerce=True` the result is correct.
``` python
>>> pd.to_datetime(1.1, unit='s', coerce=True) # Expected result Timestamp('1970-01-01 00:00:01.100000')
Timestamp('1970-01-01 00:00:01.100000')
```
I'm happy to help if you need more details.
#### Code Sample (copy-pastable example)
``` python
import pandas as pd
expected_result = pd.Timestamp('1970-01-01 00:00:01.100000')
timestamp1 = pd.to_datetime(1.1, unit='s')
timestamp2 = pd.to_datetime(1.1, unit='s', coerce=True)
print("Result without coerce: {}".format(timestamp1 == expected_result))
print("Result with coerce: {}".format(timestamp2 == expected_result))
```
#### pd.show_versions() output
``` python
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-65-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 19.2
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: None
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
pandas_datareader: 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/13834/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13834/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13836
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13836/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13836/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13836/events
|
https://github.com/pandas-dev/pandas/pull/13836
| 168,357,108 |
MDExOlB1bGxSZXF1ZXN0NzkzODI3Mjg=
| 13,836 |
BUG: Fix edge cases in merge_asof() by comparing factorized keys (#13709)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 16 | 2016-07-29T15:57:25Z | 2016-08-01T20:56:59Z | 2016-08-01T20:56:54Z |
CONTRIBUTOR
| null |
closes #13709
Also removes unnecessary check_duplicates.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13836/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13836/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13836.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13836",
"merged_at": "2016-08-01T20:56:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13836.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13836"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13839
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13839/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13839/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13839/events
|
https://github.com/pandas-dev/pandas/issues/13839
| 168,361,477 |
MDU6SXNzdWUxNjgzNjE0Nzc=
| 13,839 |
Problem reading one-column files with guessed separator
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17707763?v=4",
"events_url": "https://api.github.com/users/Mark531/events{/privacy}",
"followers_url": "https://api.github.com/users/Mark531/followers",
"following_url": "https://api.github.com/users/Mark531/following{/other_user}",
"gists_url": "https://api.github.com/users/Mark531/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Mark531",
"id": 17707763,
"login": "Mark531",
"node_id": "MDQ6VXNlcjE3NzA3NzYz",
"organizations_url": "https://api.github.com/users/Mark531/orgs",
"received_events_url": "https://api.github.com/users/Mark531/received_events",
"repos_url": "https://api.github.com/users/Mark531/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Mark531/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mark531/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Mark531"
}
|
[
{
"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": "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 |
[] | null | 9 | 2016-07-29T16:19:20Z | 2016-08-01T15:09:12Z | 2016-08-01T14:47:52Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
Create a simple csv file:
----- C:\myfile.csv
name
1
2
3
4
----- C:\myfile.csv
And run:
pd.read_csv("C:\myfile.csv", encoding = "ISO-8859-1", sep = None, engine = "python")
This triggers an error:
ValueError: Expected 2 fields in line 2, saw 1
If a specific separator is entered, it works.
#### Expected Output
The file should be imported correctly.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 8.1
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: fr_FR
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.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/13839/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13839/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13841
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13841/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13841/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13841/events
|
https://github.com/pandas-dev/pandas/issues/13841
| 168,367,243 |
MDU6SXNzdWUxNjgzNjcyNDM=
| 13,841 |
Arithmetic Broadcasting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/935840?v=4",
"events_url": "https://api.github.com/users/raddy/events{/privacy}",
"followers_url": "https://api.github.com/users/raddy/followers",
"following_url": "https://api.github.com/users/raddy/following{/other_user}",
"gists_url": "https://api.github.com/users/raddy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/raddy",
"id": 935840,
"login": "raddy",
"node_id": "MDQ6VXNlcjkzNTg0MA==",
"organizations_url": "https://api.github.com/users/raddy/orgs",
"received_events_url": "https://api.github.com/users/raddy/received_events",
"repos_url": "https://api.github.com/users/raddy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/raddy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raddy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/raddy"
}
|
[
{
"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 | 3 | 2016-07-29T16:49:07Z | 2016-07-29T17:06:41Z | 2016-07-29T16:52:00Z |
NONE
| null |
Okay, so the following "new" syntax is fine.
import pandas as pd
import random as randy
df = pd.DataFrame({'A': range(1000), 'B': randy.sample(range(1000),1000)},\
index=randy.sample(pd.date_range('2013-02-01 09:00:00.000000',periods=1e6,freq='U'),1000)).sort_index()
df.sub(df['A'],axis=0)
But, at some point, this has been broken:
df - df['A']
When did this overload change?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13841/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13841/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13842
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13842/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13842/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13842/events
|
https://github.com/pandas-dev/pandas/issues/13842
| 168,386,177 |
MDU6SXNzdWUxNjgzODYxNzc=
| 13,842 |
.loc on Hierarchical Index with single-valued index level can drop that index level in place
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6691807?v=4",
"events_url": "https://api.github.com/users/mborysow/events{/privacy}",
"followers_url": "https://api.github.com/users/mborysow/followers",
"following_url": "https://api.github.com/users/mborysow/following{/other_user}",
"gists_url": "https://api.github.com/users/mborysow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mborysow",
"id": 6691807,
"login": "mborysow",
"node_id": "MDQ6VXNlcjY2OTE4MDc=",
"organizations_url": "https://api.github.com/users/mborysow/orgs",
"received_events_url": "https://api.github.com/users/mborysow/received_events",
"repos_url": "https://api.github.com/users/mborysow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mborysow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mborysow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mborysow"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": 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"
}
| 32 | 2016-07-29T18:31:41Z | 2018-11-17T22:55:26Z | 2018-11-17T22:55:25Z |
NONE
| null |
### Small Example
``` python
In [13]: import pandas as pd
...:
...: df1 = pd.DataFrame(data=dict(A=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
...: B=[1, 1, 2, 2, 2, 3, 1, 1, 1, 2, 3, 4],
...: C=[1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 1, 4],
...: X=[1, 5, 2, 3, 8, 3, 3, 3, 1, 2, 1, 4],
...: Y=[7, 3, 4, 1, 3, 9, 9, 3, 1, 9, 3, 7]))
...: df1 = df1.set_index(['A', 'B', 'C'])
...:
In [14]: df1.loc[pd.IndexSlice[1, :, :]]
Out[14]:
X Y
B C
1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
.. .. ..
1 2 3 3
3 1 1
2 2 2 9
3 1 1 3
4 4 4 7
[12 rows x 2 columns]
In [15]: df1
Out[15]:
X Y
B C
1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
.. .. ..
1 2 3 3
3 1 1
2 2 2 9
3 1 1 3
4 4 4 7
[12 rows x 2 columns]
```
### Expected Output
The output of the slice `Out[14]` is correct, but `df1` should not be modified inplace. So the expected `Out[15]` is the original `df1`:
``` python
In [17]: df1
Out[17]:
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
... .. ..
1 2 3 3
3 1 1
2 2 2 9
3 1 1 3
4 4 4 7
[12 rows x 2 columns]
```
---
I'm still not good at submitting issues here with code and print out, so I appreciate your patience. Also, thank you guys for making pandas as amazing as it is!!
Anyhow...
I have dataframes that sometimes have up to 5 levels on their multiindex. It's not uncommon for me to want to just grab a subset containing only one value on a certain level. If one level of that index has only one value, then .loc can drop that level inplace. I'd say this is highly undesirable.
First the normal behavior. Here's my input:
```
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
2 1 1 3 9
2 3 3
3 1 1
2 2 2 9
3 1 1 3
4 4 4 7
```
When I have a multi-indexed dataframe, and I do:
df.loc[1]
I get:
```
X Y
B C
1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
```
I personally expect it to return the original multi-index where the first level has only that value. Sadly, it drops it entirely ( I think this is terrible, since if you plan on resetting the index or concatenating later, you've just unwittingly lost information).
Anyhow, I recognize now that you need to provide an index for all levels, e.g., the way I expected it to work can actually be achieved by (for a three level index):
df.loc[pd.IndexSlice[1, :, :]]
```
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
```
Here's the rub... If the level that I indexed above has more than one unique value, this works fine. If **it has only one, then once again that level gets dropped, but worse, the index is modified in place during the .loc operation.**
Here's the dataframe showing the bad behavior:
```
X Y
A B C
1 1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
```
df.loc[pd.IndexSlice[1, :, :]] gives:
```
X Y
B C
1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
```
Same syntax as the other case, but it dropped index A. Worse is that this is now df.
print(df)
```
X Y
B C
1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
```
If I modify the syntax slightly. I.e., df.loc[pd.IndexSlice[1, :, :], :] (with the original not modifed frame, I get the expected result:
```
X Y
A B C
1 1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
```
I've tried to provide a code sample with comments that demonstrates the problem.
### Code Sample, a copy-pastable example if possible
```
import pandas as pd
df1 = pd.DataFrame(data=dict(A=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
B=[1, 1, 2, 2, 2, 3, 1, 1, 1, 2, 3, 4],
C=[1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 1, 4],
X=[1, 5, 2, 3, 8, 3, 3, 3, 1, 2, 1, 4],
Y=[7, 3, 4, 1, 3, 9, 9, 3, 1, 9, 3, 7]))
df2 = df1.copy(deep=True)
df2['A'] = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2]
df1 = df1.set_index(['A', 'B', 'C']).sortlevel()
df2 = df2.set_index(['A', 'B', 'C']).sortlevel()
df1_copy = df1.copy()
print("Here's df2, with more than 1 unique value for the index A:")
print(df2)
# already annoyed by this, I don't think this is how it should work, but I understand it
print("\nHere's what df2.loc[1] returns")
print(df2.loc[1])
# understand how to get around it at least
print("\nCan get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]]")
print(df2.loc[pd.IndexSlice[1, :, :]])
# BUT! If it's the only one...
print("\nHere's df1, with only a single value for the index A")
print(df1)
print("\nNow let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]]")
print(df1.loc[pd.IndexSlice[1, :, :]])
# and holy crap it's an inplace operation!
print("\nDamnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again:")
print(df1)
print("\nDoing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected.")
print(df1_copy.loc[pd.IndexSlice[1, :, :], :])
```
#### Here's what I get from running the code
```
Here's df2, with more than 1 unique value for the index A:
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
2 1 1 3 9
2 3 3
3 1 1
2 2 2 9
3 1 1 3
4 4 4 7
Here's what df2.loc[1] returns
X Y
B C
1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
Can get around this annoyance by df2.loc[pd.IndexSlice[1, :, :]]
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
Here's df1, with only a single value for the index A
X Y
A B C
1 1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
Now let's do the same thing we did for df2, namely display df1.loc[pidx[1, :, :]]
X Y
B C
1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
Damnit.. it dropped by index again! And... ruh roh! It has a side effect! Here's df1 again:
X Y
B C
1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
Doing df1.loc[pidx[1, :, :], :] (using the original df1) works as expected.
X Y
A B C
1 1 1 1 7
1 3 9
2 5 3
2 3 3
3 1 1
2 1 2 4
2 3 1
2 2 9
3 8 3
3 1 1 3
2 3 9
4 4 4 7
```
#### Expected Output
What I expect from all of the examples above, is:
```
X Y
A B C
1 1 1 1 7
2 5 3
2 1 2 4
2 3 1
3 8 3
3 2 3 9
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 4.6.3-300.fc24.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.0.3
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.1
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.10
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13842/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13842/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13843
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13843/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13843/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13843/events
|
https://github.com/pandas-dev/pandas/issues/13843
| 168,410,883 |
MDU6SXNzdWUxNjg0MTA4ODM=
| 13,843 |
BUG/API Series/Index integer floordiv/mod inconsistency
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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 |
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
] |
{
"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 | 2016-07-29T20:45:39Z | 2019-07-11T14:32:15Z | 2019-07-11T14:32:15Z |
MEMBER
| null |
`Series` looks to be coerced to `float` if the result contains `NaN` or `inf`. Otherwise `Index` doesn't. Make it to be consistent in either way.
#### Code Sample, a copy-pastable example if possible
```
pd.Series([1]) // pd.Series([0])
#0 inf
# dtype: float64
pd.Index([1]) // pd.Index([0])
# Int64Index([0], dtype='int64')
np.array([1]) // np.array([0])
# array([0])
```
```
pd.Series([1]) % pd.Series([0])
#0 NaN
# dtype: float64
pd.Index([1]) % pd.Index([0])
# Int64Index([0], dtype='int64')
np.array([1]) % np.array([0])
# array([0])
```
#### output of `pd.show_versions()`
on current master.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13843/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13843/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13844
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13844/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13844/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13844/events
|
https://github.com/pandas-dev/pandas/issues/13844
| 168,413,927 |
MDU6SXNzdWUxNjg0MTM5Mjc=
| 13,844 |
Empty dataset: typerror ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('O')
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4",
"events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}",
"followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers",
"following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}",
"gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VelizarVESSELINOV",
"id": 8209940,
"login": "VelizarVESSELINOV",
"node_id": "MDQ6VXNlcjgyMDk5NDA=",
"organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs",
"received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events",
"repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VelizarVESSELINOV"
}
|
[
{
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 4 | 2016-07-29T21:03:30Z | 2016-08-26T20:43:20Z | 2016-08-26T20:43:20Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
``` python
from pandas import DataFrame, to_datetime, to_timedelta
data = {'Item': [1], 'Date_Time': ['2/8/2015 6:00:30'], 'Relative_Time': 20}
dtf = DataFrame(data=data)
print(dtf)
dtf = dtf[dtf.Item == 2] # if the filter returns empty dataset expected results will be that the same
dtf.Date_Time = to_datetime(dtf.Date_Time, infer_datetime_format=True)
dtf.Relative_Time = to_timedelta(dtf.Relative_Time, unit='s')
dtf.Date_Time = dtf.Date_Time + dtf.Relative_Time
print(dtf)
```
#### Current Output
```
Date_Time Item Relative_Time
0 2/8/2015 6:00:30 1 20
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/ops.py:477: PerformanceWarning: Adding/subtracting array of DateOffsets to Series not vectorized
"Series not vectorized", PerformanceWarning)
Traceback (most recent call last):
File "bug.py", line 12, in <module>
dtf.Date_Time = dtf.Date_Time + dtf.Relative_Time
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/ops.py", line 641, in wrapper
arr = na_op(lvalues, rvalues)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/ops.py", line 481, in <lambda>
self.na_op = lambda x, y: getattr(x, self.name)(y)
TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('O')
```
#### Expected Output
```
Date_Time Item Relative_Time
0 2/8/2015 6:00:30 1 20
Empty DataFrame
Columns: [Date_Time, Item, Relative_Time]
Index: []
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 24.0.3
Cython: None
numpy: 1.11.1
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
None
statsmodels: None
xarray: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
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/13844/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13844/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13845
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13845/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13845/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13845/events
|
https://github.com/pandas-dev/pandas/pull/13845
| 168,416,363 |
MDExOlB1bGxSZXF1ZXN0Nzk0MjU3MTc=
| 13,845 |
BUG: fixes 13822, incorrect KeyError string with non-unique columns w…
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7305354?v=4",
"events_url": "https://api.github.com/users/shawnheide/events{/privacy}",
"followers_url": "https://api.github.com/users/shawnheide/followers",
"following_url": "https://api.github.com/users/shawnheide/following{/other_user}",
"gists_url": "https://api.github.com/users/shawnheide/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shawnheide",
"id": 7305354,
"login": "shawnheide",
"node_id": "MDQ6VXNlcjczMDUzNTQ=",
"organizations_url": "https://api.github.com/users/shawnheide/orgs",
"received_events_url": "https://api.github.com/users/shawnheide/received_events",
"repos_url": "https://api.github.com/users/shawnheide/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shawnheide/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shawnheide/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shawnheide"
}
|
[
{
"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": "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": "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"
}
| 2 | 2016-07-29T21:17:14Z | 2016-08-02T10:50:51Z | 2016-08-02T10:50:50Z |
CONTRIBUTOR
| null |
- [x] closes #13822
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Made changes to fix the bug related to accessing columns in a df with duplicate columns where the KeyError string was returning the wrong column.
The test that I added passed, but there seems to be a test that won't pass and I wasn't sure what's going on. Even on a clean master, when I run "nosetests pandas/tests/indexing/test_indexing.py" I get "ERROR: test_float64index_slicing_bug (pandas.tests.indexing.test_indexing.TestIndexing)".
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13845/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13845/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13845.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13845",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13845.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13845"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13846
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13846/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13846/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13846/events
|
https://github.com/pandas-dev/pandas/pull/13846
| 168,421,245 |
MDExOlB1bGxSZXF1ZXN0Nzk0MjkzNjI=
| 13,846 |
ENH: add sort_categories argument to union_categoricals
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 6 | 2016-07-29T21:48:04Z | 2016-08-03T10:24:16Z | 2016-08-03T10:24:10Z |
CONTRIBUTOR
| null |
- needed for #13406, follow-up to #13763
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
cc: @janschulz, @sinhrks
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13846/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13846/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13846.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13846",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13846.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13846"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13847
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13847/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13847/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13847/events
|
https://github.com/pandas-dev/pandas/pull/13847
| 168,434,324 |
MDExOlB1bGxSZXF1ZXN0Nzk0MzkwMDI=
| 13,847 |
BUG: Fixed float parsing with unit when using pd.to_datetime (GH13834)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13247590?v=4",
"events_url": "https://api.github.com/users/wcwagner/events{/privacy}",
"followers_url": "https://api.github.com/users/wcwagner/followers",
"following_url": "https://api.github.com/users/wcwagner/following{/other_user}",
"gists_url": "https://api.github.com/users/wcwagner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wcwagner",
"id": 13247590,
"login": "wcwagner",
"node_id": "MDQ6VXNlcjEzMjQ3NTkw",
"organizations_url": "https://api.github.com/users/wcwagner/orgs",
"received_events_url": "https://api.github.com/users/wcwagner/received_events",
"repos_url": "https://api.github.com/users/wcwagner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wcwagner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wcwagner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wcwagner"
}
|
[
{
"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": "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-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"
}
| 8 | 2016-07-29T23:40:31Z | 2016-08-09T21:48:40Z | 2016-08-09T21:48:25Z |
CONTRIBUTOR
| null |
- [x] closes #13834
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13847/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13847/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13847.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13847",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13847.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13847"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13848
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13848/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13848/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13848/events
|
https://github.com/pandas-dev/pandas/pull/13848
| 168,460,090 |
MDExOlB1bGxSZXF1ZXN0Nzk0NTM2MzI=
| 13,848 |
ENH: add sparse op for int64 dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
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"
}
| 9 | 2016-07-30T10:02:48Z | 2016-08-04T10:40:28Z | 2016-08-03T22:48:47Z |
MEMBER
| null |
- [x] related to #667
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
As a first step for #667, numeric op can now preserve `int64` dtype. On current master, dtype is reset to `float64` after op.
```
# current master
a = pd.SparseArray([1, 2], dtype=np.int64)
a.dtype
# dtype('int64')
(a + a).dtype
# dtype('float64')
```
**NOTE:** `int64` `SparseSeries.__floordiv__` test is skipped because dense `Series` also has inconsistency in `nan/inf` handling (#13843). Currently it outputs the same result as `float64`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 1,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13848/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13848/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13848.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13848",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13848.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13848"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13849
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13849/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13849/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13849/events
|
https://github.com/pandas-dev/pandas/pull/13849
| 168,460,877 |
MDExOlB1bGxSZXF1ZXN0Nzk0NTQwNTA=
| 13,849 |
ENH: Sparse int64 and bool dtype support enhancement
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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": "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": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
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"
}
| 19 | 2016-07-30T10:26:34Z | 2016-09-01T01:33:05Z | 2016-08-31T07:57:34Z |
MEMBER
| null |
- [x] closes #667, closes #8292, closes #13001, closes #8276, closes #13110
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Currently, sparse doesn't support `int64` and `bool` dtypes actually. When `int` or `bool` values are passed, it is coerced to `float64` if `dtype`kw is not explicitly specified.
**on current master**
```
pd.SparseArray([1, 2, 0, 0 ])
# [1.0, 2.0, 0.0, 0.0]
# Fill: nan
# IntIndex
# Indices: array([0, 1, 2, 3], dtype=int32)
pd.SparseArray([True, False, True])
# [1.0, 0.0, 1.0]
# Fill: nan
# IntIndex
# Indices: array([0, 1, 2], dtype=int32)
```
**after this PR**
The created data should have the `dtype` of passed values (as the same as normal `Series`).
```
pd.SparseArray([1, 2, 0, 0 ])
# [1, 2, 0, 0]
# Fill: 0
# IntIndex
# Indices: array([0, 1], dtype=int32)
pd.SparseArray([True, False, True])
# [True, False, True]
# Fill: False
# IntIndex
# Indices: array([0, 2], dtype=int32)
```
Also, `fill_value` is automatically specified according to the following rules (because `np.nan` cannot appear in `int` or `bool` dtype):
Basic rule: sparse `dtype` must not be changed when it is converted to dense.
- If `sparse_index` is specified and data has a hole (missing values):
- `fill_value` is np.nan
- `dtype` is `float64` or `object` (which can store both `data` and `fill_value`)
- If `sparse_index` is None (all values are provided via `data`, no missing values)
- if `fill_value` is not explicitly passed, following default will be used depending on its dtype.
- `float`: `np.nan`
- `int`: `0`
- `bool`: `False`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13849/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13849/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13849.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13849",
"merged_at": "2016-08-31T07:57:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13849.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13849"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13850
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13850/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13850/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13850/events
|
https://github.com/pandas-dev/pandas/pull/13850
| 168,473,800 |
MDExOlB1bGxSZXF1ZXN0Nzk0NjA2NTU=
| 13,850 |
Allow users to specify whether gbq should use standard SQL
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5184014?v=4",
"events_url": "https://api.github.com/users/parthea/events{/privacy}",
"followers_url": "https://api.github.com/users/parthea/followers",
"following_url": "https://api.github.com/users/parthea/following{/other_user}",
"gists_url": "https://api.github.com/users/parthea/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/parthea",
"id": 5184014,
"login": "parthea",
"node_id": "MDQ6VXNlcjUxODQwMTQ=",
"organizations_url": "https://api.github.com/users/parthea/orgs",
"received_events_url": "https://api.github.com/users/parthea/received_events",
"repos_url": "https://api.github.com/users/parthea/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/parthea/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/parthea/subscriptions",
"type": "User",
"url": "https://api.github.com/users/parthea"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
},
{
"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-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"
}
| 10 | 2016-07-30T15:54:14Z | 2016-08-03T13:10:49Z | 2016-08-03T10:30:31Z |
CONTRIBUTOR
| null |
- [ x ] closes #13615
- [ x ] tests added / passed
- [ x ] passes `git diff upstream/master | flake8 --diff`
- [ x ] whatsnew entry
All gbq tests passed locally
```
tony@tonypc:~/parthea-pandas/pandas/io/tests$ nosetests test_gbq.py -v
test_import_google_api_python_client (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_corrupted_private_key_json_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_empty_private_key_file_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_empty_private_key_json_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_invalid_private_key_json_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_no_project_id_given_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_read_gbq_with_private_key_json_wrong_types_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_return_bigquery_booleans_as_python_booleans (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_return_bigquery_floats_as_python_floats (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_return_bigquery_integers_as_python_floats (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_return_bigquery_strings_as_python_strings (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_return_bigquery_timestamps_as_numpy_datetime (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_that_parse_data_works_properly (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_to_gbq_should_fail_if_invalid_table_name_passed (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_to_gbq_with_no_project_id_given_should_fail (pandas.io.tests.test_gbq.GBQUnitTests) ... ok
test_should_be_able_to_get_a_bigquery_service (pandas.io.tests.test_gbq.TestGBQConnectorIntegration) ... ok
test_should_be_able_to_get_results_from_query (pandas.io.tests.test_gbq.TestGBQConnectorIntegration) ... ok
test_should_be_able_to_get_schema_from_query (pandas.io.tests.test_gbq.TestGBQConnectorIntegration) ... ok
test_should_be_able_to_get_valid_credentials (pandas.io.tests.test_gbq.TestGBQConnectorIntegration) ... ok
test_should_be_able_to_make_a_connector (pandas.io.tests.test_gbq.TestGBQConnectorIntegration) ... ok
test_should_be_able_to_get_a_bigquery_service (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyContentsIntegration) ... ok
test_should_be_able_to_get_results_from_query (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyContentsIntegration) ... ok
test_should_be_able_to_get_schema_from_query (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyContentsIntegration) ... ok
test_should_be_able_to_get_valid_credentials (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyContentsIntegration) ... ok
test_should_be_able_to_make_a_connector (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyContentsIntegration) ... ok
test_should_be_able_to_get_a_bigquery_service (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyPathIntegration) ... ok
test_should_be_able_to_get_results_from_query (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyPathIntegration) ... ok
test_should_be_able_to_get_schema_from_query (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyPathIntegration) ... ok
test_should_be_able_to_get_valid_credentials (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyPathIntegration) ... ok
test_should_be_able_to_make_a_connector (pandas.io.tests.test_gbq.TestGBQConnectorServiceAccountKeyPathIntegration) ... ok
test_bad_project_id (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_bad_table_name (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_column_order (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_column_order_plus_index (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_download_dataset_larger_than_200k_rows (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_index_column (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_malformed_query (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_arbitrary_timestamp (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_empty_strings (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_false_boolean (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_null_boolean (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_null_floats (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_null_integers (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_null_strings (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_null_timestamp (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_timestamp_unix_epoch (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_true_boolean (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_valid_floats (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_valid_integers (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_properly_handle_valid_strings (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_read_as_service_account_with_key_contents (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_should_read_as_service_account_with_key_path (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_standard_sql_query (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_unicode_string_conversion_and_normalization (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_zero_rows (pandas.io.tests.test_gbq.TestReadGBQIntegration) ... ok
test_create_dataset (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_create_table (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_dataset_does_not_exist (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_dataset_exists (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_delete_dataset (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_delete_table (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_generate_schema (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_google_upload_errors_should_raise_exception (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_list_dataset (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_list_table (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_list_table_zero_results (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_table_does_not_exist (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_upload_data (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_upload_data_if_table_exists_append (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_upload_data_if_table_exists_fail (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_upload_data_if_table_exists_replace (pandas.io.tests.test_gbq.TestToGBQIntegration) ... ok
test_upload_data_as_service_account_with_key_contents (pandas.io.tests.test_gbq.TestToGBQIntegrationServiceAccountKeyContents) ... ok
test_upload_data_as_service_account_with_key_path (pandas.io.tests.test_gbq.TestToGBQIntegrationServiceAccountKeyPath) ... ok
pandas.io.tests.test_gbq.test_requirements ... ok
pandas.io.tests.test_gbq.test_generate_bq_schema_deprecated ... ok
----------------------------------------------------------------------
Ran 75 tests in 404.905s
OK
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13850/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13850/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13850.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13850",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13850.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13850"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13851
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13851/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13851/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13851/events
|
https://github.com/pandas-dev/pandas/issues/13851
| 168,476,795 |
MDU6SXNzdWUxNjg0NzY3OTU=
| 13,851 |
DataFrame.rolling.apply does not appear to support kwargs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6608130?v=4",
"events_url": "https://api.github.com/users/bsdz/events{/privacy}",
"followers_url": "https://api.github.com/users/bsdz/followers",
"following_url": "https://api.github.com/users/bsdz/following{/other_user}",
"gists_url": "https://api.github.com/users/bsdz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bsdz",
"id": 6608130,
"login": "bsdz",
"node_id": "MDQ6VXNlcjY2MDgxMzA=",
"organizations_url": "https://api.github.com/users/bsdz/orgs",
"received_events_url": "https://api.github.com/users/bsdz/received_events",
"repos_url": "https://api.github.com/users/bsdz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bsdz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bsdz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bsdz"
}
|
[] |
closed
| false | null |
[] | null | 1 | 2016-07-30T17:00:25Z | 2016-07-30T17:31:05Z | 2016-07-30T17:18:13Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
import numpy as np
def subtract_custom_value(x, custom_value, debug=False):
return x-custom_value
# this works (no rolling)
series = pd.Series([20, 21, 12])
series.apply(subtract_custom_value, args=(5,), debug=True)
# this complains "TypeError: apply() got an unexpected keyword argument 'debug'"
rows, cols = 20, 1
df = pd.DataFrame(np.random.randint(0, rows, size=(rows, cols)), columns=map(str,range(cols)))
df.rolling(10).apply(subtract_custom_value, args=(5,), debug=True)
```
#### Expected Output
Would expect the rolling case to be the same as non-rolling.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.0.2
setuptools: 23.0.0
Cython: 0.23.1
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.8.0rc1
xarray: None
IPython: 4.2.0
sphinx: None
patsy: 0.4.0
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.8
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13851/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13851/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13852
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13852/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13852/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13852/events
|
https://github.com/pandas-dev/pandas/issues/13852
| 168,481,230 |
MDU6SXNzdWUxNjg0ODEyMzA=
| 13,852 |
Series.replace and DataFrame.replace have same docstring?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1900459?v=4",
"events_url": "https://api.github.com/users/kyleabeauchamp/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleabeauchamp/followers",
"following_url": "https://api.github.com/users/kyleabeauchamp/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleabeauchamp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleabeauchamp",
"id": 1900459,
"login": "kyleabeauchamp",
"node_id": "MDQ6VXNlcjE5MDA0NTk=",
"organizations_url": "https://api.github.com/users/kyleabeauchamp/orgs",
"received_events_url": "https://api.github.com/users/kyleabeauchamp/received_events",
"repos_url": "https://api.github.com/users/kyleabeauchamp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleabeauchamp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleabeauchamp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleabeauchamp"
}
|
[
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 19 | 2016-07-30T18:46:14Z | 2018-02-04T16:32:53Z | 2018-02-04T16:32:53Z |
NONE
| null |
```
In [4]: pd.__version__
Out[4]: u'0.18.1'
```
The docstring for Series.replace refers to looking up column names, which AFAIK doesn't make sense for the Series version of `replace`. It seems like the Series function is just blindly inheriting the DataFrame docstring?
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.replace.html?highlight=replace#pandas.Series.replace
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.replace.html?highlight=replace#pandas.DataFrame.replace
For example, the following trivial example of `Series.replace()` does not agree with the docstring:
```
import pandas as pd
x = pd.DataFrame([dict(A=1, B=2, C=3), dict(A=2, B=3, C=4), dict(A=3, B=4, C=5)])
print(x.A.replace({1:0}))
print(x.A)
0 0
1 2
2 3
Name: A, dtype: int64
0 1
1 2
2 3
Name: A, dtype: int64
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13852/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13852/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13853
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13853/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13853/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13853/events
|
https://github.com/pandas-dev/pandas/pull/13853
| 168,489,165 |
MDExOlB1bGxSZXF1ZXN0Nzk0NjkxMDc=
| 13,853 |
BUG: ufunc is not applied to sparse.fill_value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 4 | 2016-07-30T22:01:42Z | 2016-08-03T22:42:32Z | 2016-08-03T22:42:32Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
When ufunc is applied to sparse, it is not applied to `fill_value`. Thus results are incorrect.
**on current master:**
```
np.abs(pd.SparseArray([1, -2, -1], fill_value=-2))
# [1.0, -2, 1.0]
# Fill: -2
# IntIndex
# Indices: array([0, 2], dtype=int32)
np.add(pd.SparseArray([1, -2, -1], fill_value=-2), 1)
# [2.0, -2, 0.0]
# Fill: -2
# IntIndex
# Indices: array([0, 2], dtype=int32)
```
cc @gfyoung
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13853/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13853/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13853.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13853",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13853.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13853"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13854
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13854/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13854/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13854/events
|
https://github.com/pandas-dev/pandas/pull/13854
| 168,493,496 |
MDExOlB1bGxSZXF1ZXN0Nzk0NzE2ODE=
| 13,854 |
BUG: Preserve categorical dtypes in MultiIndex levels (#13743)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4",
"events_url": "https://api.github.com/users/pijucha/events{/privacy}",
"followers_url": "https://api.github.com/users/pijucha/followers",
"following_url": "https://api.github.com/users/pijucha/following{/other_user}",
"gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pijucha",
"id": 9507544,
"login": "pijucha",
"node_id": "MDQ6VXNlcjk1MDc1NDQ=",
"organizations_url": "https://api.github.com/users/pijucha/orgs",
"received_events_url": "https://api.github.com/users/pijucha/received_events",
"repos_url": "https://api.github.com/users/pijucha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pijucha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pijucha"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 17 | 2016-07-31T00:08:00Z | 2016-09-07T13:24:30Z | 2016-09-02T22:08:10Z |
CONTRIBUTOR
| null |
- [x] closes #13743
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This commit modifies `MultiIndex.from_array` and `MultiIndex.from_product`.
Example:
``` python
cat = pd.Categorical(['a', 'b'], categories=list("bac"), ordered=True)
mi = pd.MultiIndex.from_arrays([cat, cat])
mi.levels[0]
Out[55]: CategoricalIndex(['b', 'a', 'c'], categories=['b', 'a', 'c'], ordered=True, dtype='category')
mi.get_level_values(0)
Out[56]: CategoricalIndex(['a', 'b'], categories=['b', 'a', 'c'], ordered=True, dtype='category')
```
Previously, the results were:
``` python
mi.levels[0]
Out[345]: Index(['b', 'a', 'c'], dtype='object')
mi.get_level_values(0)
Out[346]: Index(['a', 'b'], dtype='object')
```
This modification makes `groupby`, `pivot`, and `set_index` preserve categorical types in indexes.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13854/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13854/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13854.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13854",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13854.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13854"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13855
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13855/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13855/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13855/events
|
https://github.com/pandas-dev/pandas/pull/13855
| 168,500,953 |
MDExOlB1bGxSZXF1ZXN0Nzk0NzU4Mjk=
| 13,855 |
CLN: Removed trellis rplot
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 12 | 2016-07-31T04:30:11Z | 2016-08-02T10:46:40Z | 2016-08-02T10:46:38Z |
MEMBER
| null |
xref https://github.com/pydata/pandas/pull/9357.
Title is self-explanatory.
|
{
"+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/13855/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13855/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13855.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13855",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13855.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13855"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13856
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13856/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13856/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13856/events
|
https://github.com/pandas-dev/pandas/pull/13856
| 168,517,937 |
MDExOlB1bGxSZXF1ZXN0Nzk0ODUwNDU=
| 13,856 |
TST: Use pytest
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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": "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"
}
| 53 | 2016-07-31T13:32:45Z | 2017-04-05T02:07:20Z | 2017-02-10T15:52:09Z |
CONTRIBUTOR
| null |
- [x] closes https://github.com/pydata/pandas/issues/13097
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Just a WIP for now, will need to iterate on the CI stuff to ensure that's all good.
What can I provide to make this easier to review? Refactoring tests is scary.
I'll give verbose outputs of nose on master and pytest on this branch.
junit.xml output too. Anything else?
Here are some notes I took along the way
### Kinds of Changes
- Nosetests Generators to fixtures
See TestPickle, TestMsgPack and [this](http://stackoverflow.com/questions/6689537/nose-test-generators-inside-class) SO post. We switched to using parametrized fixtures (yay) and dependency injection instead of setUp + a for loop inside the test.
- Different Discover Rules
See the sql tests. `py.test` discovers `_Test*` class (if they inherit from `TestCase`?), while unittest does not.
Solution: move TestCase inheritance down a level
- Assert Rewriting
See e.g. pandas/src/testing.py
- solution: rewrite `assert cond, msg` as `if not cond; raise AssertionError(msg)`
- looking into just excluding these files... They aren't actual tests, just test helpers.
- CI work:
- updating nose to pytest
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 1,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13856/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13856/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13856.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13856",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13856.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13856"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13857
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13857/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13857/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13857/events
|
https://github.com/pandas-dev/pandas/pull/13857
| 168,526,684 |
MDExOlB1bGxSZXF1ZXN0Nzk0ODk3NjU=
| 13,857 |
CLN: Removed colSpace parameter
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 2 | 2016-07-31T16:47:22Z | 2016-08-01T20:58:45Z | 2016-08-01T20:58:38Z |
MEMBER
| null |
Title is self-explanatory. Seems like it was already done in `DataFrame.to_string()` some time ago.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13857/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13857/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13857.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13857",
"merged_at": "2016-08-01T20:58:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13857.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13857"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13858
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13858/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13858/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13858/events
|
https://github.com/pandas-dev/pandas/pull/13858
| 168,531,668 |
MDExOlB1bGxSZXF1ZXN0Nzk0OTIzMDA=
| 13,858 |
BUG: disallow 'w' mode in pd.read_hdf (#13623)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3105044?v=4",
"events_url": "https://api.github.com/users/iamsimha/events{/privacy}",
"followers_url": "https://api.github.com/users/iamsimha/followers",
"following_url": "https://api.github.com/users/iamsimha/following{/other_user}",
"gists_url": "https://api.github.com/users/iamsimha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iamsimha",
"id": 3105044,
"login": "iamsimha",
"node_id": "MDQ6VXNlcjMxMDUwNDQ=",
"organizations_url": "https://api.github.com/users/iamsimha/orgs",
"received_events_url": "https://api.github.com/users/iamsimha/received_events",
"repos_url": "https://api.github.com/users/iamsimha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iamsimha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iamsimha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iamsimha"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 6 | 2016-07-31T18:38:17Z | 2016-08-01T19:22:46Z | 2016-08-01T19:22:43Z |
CONTRIBUTOR
| null |
- [x] closes #13623
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Passing mode='w' to read_hdf raises ValueError.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13858/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13858/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13858.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13858",
"merged_at": "2016-08-01T19:22:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13858.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13858"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13859
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13859/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13859/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13859/events
|
https://github.com/pandas-dev/pandas/pull/13859
| 168,537,770 |
MDExOlB1bGxSZXF1ZXN0Nzk0OTU3MjE=
| 13,859 |
MAINT: Nicer error msg for NULL byte in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-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"
}
| 2 | 2016-07-31T20:54:47Z | 2016-08-01T21:17:16Z | 2016-08-01T21:17:12Z |
MEMBER
| null |
Provides a nicer error message for the Python engine in `read_csv` when the data contains a `NULL` byte.
Closes #2741.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13859/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13859/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13859.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13859",
"merged_at": "2016-08-01T21:17:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13859.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13859"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13860
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13860/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13860/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13860/events
|
https://github.com/pandas-dev/pandas/issues/13860
| 168,542,649 |
MDU6SXNzdWUxNjg1NDI2NDk=
| 13,860 |
`read_csv` with character `"`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8995895?v=4",
"events_url": "https://api.github.com/users/binhnq94/events{/privacy}",
"followers_url": "https://api.github.com/users/binhnq94/followers",
"following_url": "https://api.github.com/users/binhnq94/following{/other_user}",
"gists_url": "https://api.github.com/users/binhnq94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/binhnq94",
"id": 8995895,
"login": "binhnq94",
"node_id": "MDQ6VXNlcjg5OTU4OTU=",
"organizations_url": "https://api.github.com/users/binhnq94/orgs",
"received_events_url": "https://api.github.com/users/binhnq94/received_events",
"repos_url": "https://api.github.com/users/binhnq94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/binhnq94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/binhnq94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/binhnq94"
}
|
[
{
"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": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 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-07-31T22:49:18Z | 2016-07-31T23:34:27Z | 2016-07-31T23:33:47Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
Input file: (content of `example` file)
```
a1 b1 c1 d1
" c y z
a3 b3 c3 d3
" d4 s4 d4
```
Code:
``` python
extb = pd.read_csv('example', encoding='utf8', sep='\t', header=None); extb[:]
```
Output:
```
0 1 2 3
0 a1 b1 c1 d1
1 \tc\ty\tz\na3\tb3\tc3\td3\n d4 s4 d4
```
#### Expected Output
```
a1 b1 c1 d1
" c y z
a3 b3 c3 d3
" d4 s4 d4
```
#### Question: Can i control input file that have character `"` ?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13860/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13860/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13861
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13861/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13861/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13861/events
|
https://github.com/pandas-dev/pandas/pull/13861
| 168,553,539 |
MDExOlB1bGxSZXF1ZXN0Nzk1MDQ4NTg=
| 13,861 |
BUG: loffset not applied when using resample with agg() (GH13218)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13247590?v=4",
"events_url": "https://api.github.com/users/wcwagner/events{/privacy}",
"followers_url": "https://api.github.com/users/wcwagner/followers",
"following_url": "https://api.github.com/users/wcwagner/following{/other_user}",
"gists_url": "https://api.github.com/users/wcwagner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wcwagner",
"id": 13247590,
"login": "wcwagner",
"node_id": "MDQ6VXNlcjEzMjQ3NTkw",
"organizations_url": "https://api.github.com/users/wcwagner/orgs",
"received_events_url": "https://api.github.com/users/wcwagner/received_events",
"repos_url": "https://api.github.com/users/wcwagner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wcwagner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wcwagner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wcwagner"
}
|
[
{
"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": "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": "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"
}
| 12 | 2016-08-01T02:13:15Z | 2016-08-22T22:39:12Z | 2016-08-13T22:46:07Z |
CONTRIBUTOR
| null |
- [x] closes #13218
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13861/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13861/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13861.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13861",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13861.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13861"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13862
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13862/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13862/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13862/events
|
https://github.com/pandas-dev/pandas/issues/13862
| 168,614,724 |
MDU6SXNzdWUxNjg2MTQ3MjQ=
| 13,862 |
Add setting for switching between "production" and "interactive" mode
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/334435?v=4",
"events_url": "https://api.github.com/users/bbirand/events{/privacy}",
"followers_url": "https://api.github.com/users/bbirand/followers",
"following_url": "https://api.github.com/users/bbirand/following{/other_user}",
"gists_url": "https://api.github.com/users/bbirand/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bbirand",
"id": 334435,
"login": "bbirand",
"node_id": "MDQ6VXNlcjMzNDQzNQ==",
"organizations_url": "https://api.github.com/users/bbirand/orgs",
"received_events_url": "https://api.github.com/users/bbirand/received_events",
"repos_url": "https://api.github.com/users/bbirand/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bbirand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bbirand/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bbirand"
}
|
[
{
"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": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"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"
}
] |
closed
| false | null |
[] | null | 10 | 2016-08-01T10:27:46Z | 2021-05-01T22:52:38Z | 2021-05-01T22:52:38Z |
NONE
| null |
It seems that future development in Pandas creates a distinction between "production" and "interactive" use. I frequently use Pandas to do interactive data analyses. As such, things like indexing shortcuts are very handy. However, I also can see that some of this magic can create very subtle bugs in production systems.
One potential solution is to have a global configuration switch. When an analysis project starts, many of these "shortcut" functions could be made available. Once the code is ready, the user can change this setting to "production" which would issue warnings for functions deemed unsafe.
Any thoughts on this?
This issue came up while talking to @jreback on #13548 .
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13862/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13862/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13863
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13863/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13863/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13863/events
|
https://github.com/pandas-dev/pandas/issues/13863
| 168,619,070 |
MDU6SXNzdWUxNjg2MTkwNzA=
| 13,863 |
COMPAT: windows builds breaking after #13788
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 6 | 2016-08-01T10:52:02Z | 2016-08-01T20:00:45Z | 2016-08-01T20:00:45Z |
CONTRIBUTOR
| null |
see [here](https://github.com/pydata/pandas/pull/13788#issuecomment-236409748)
looks like a pointer specification, see #13788
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13863/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13863/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13864
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13864/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13864/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13864/events
|
https://github.com/pandas-dev/pandas/pull/13864
| 168,620,404 |
MDExOlB1bGxSZXF1ZXN0Nzk1NTA0OTA=
| 13,864 |
CLN: Removed / filled stub read_csv tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-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"
}
| 2 | 2016-08-01T11:00:41Z | 2016-08-01T19:21:44Z | 2016-08-01T19:21:39Z |
MEMBER
| null |
Title is self-explanatory.
xref #4782
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13864/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13864/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13864.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13864",
"merged_at": "2016-08-01T19:21:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13864.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13864"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13865
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13865/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13865/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13865/events
|
https://github.com/pandas-dev/pandas/pull/13865
| 168,641,445 |
MDExOlB1bGxSZXF1ZXN0Nzk1NjUxMTM=
| 13,865 |
BLD: Fixed pointer ambiguity in 'tokenizer.c'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2227377?v=4",
"events_url": "https://api.github.com/users/ivannz/events{/privacy}",
"followers_url": "https://api.github.com/users/ivannz/followers",
"following_url": "https://api.github.com/users/ivannz/following{/other_user}",
"gists_url": "https://api.github.com/users/ivannz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivannz",
"id": 2227377,
"login": "ivannz",
"node_id": "MDQ6VXNlcjIyMjczNzc=",
"organizations_url": "https://api.github.com/users/ivannz/orgs",
"received_events_url": "https://api.github.com/users/ivannz/received_events",
"repos_url": "https://api.github.com/users/ivannz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivannz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivannz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivannz"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 6 | 2016-08-01T13:07:23Z | 2016-08-01T20:01:29Z | 2016-08-01T20:00:45Z |
CONTRIBUTOR
| null |
- [x] closes build compatibility issue #13863
- [x] tests added / passed (see notes)
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry (No whatsnew entry was necessary)
## notes
The branch was tested on win7 64bit virtual machine with anaconda 4.1.1 both with python 2.7 (VS2008) and with python 3.5 (VS2015). Running **test.bat** returned this on each platform:
### python 2.7
```
======================================================================
FAIL: test_constructor_bad_file (pandas.io.tests.test_common.TestMMapWrapper)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\vmuser\pandas\pandas\io\tests\test_common.py", line 110, in tes
t_constructor_bad_file
tm.assertRaisesRegexp(err, msg, common.MMapWrapper, non_file)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2373, in assertRais
esRegexp
_callable(*args, **kwargs)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2398, in __exit__
return self.handle_success(exc_type, exc_value, traceback)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2411, in handle_suc
cess
raise_with_traceback(e, traceback)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2373, in assertRais
esRegexp
_callable(*args, **kwargs)
File "C:\Users\vmuser\pandas\pandas\io\common.py", line 355, in __init__
self.mmap = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
AssertionError: "The parameter is incorrect" does not match "[Error 87] "
----------------------------------------------------------------------
Ran 10634 tests in 494.796s
FAILED (SKIP=148, failures=1)
```
**pd.show_versions()**
```
INSTALLED VERSIONS
------------------
commit: 3b0e28e255c0319bc19397e07493bb92b4190d53
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.18.1+291.g3b0e28e
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
### python 3.5
```
======================================================================
ERROR: test_to_latex_filename (pandas.tests.formats.test_format.TestDataFrameFor
matting)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\vmuser\pandas\pandas\tests\formats\test_format.py", line 2800,
in test_to_latex_filename
df.to_latex(path)
File "C:\Users\vmuser\pandas\pandas\core\frame.py", line 1666, in to_latex
encoding=encoding)
File "C:\Users\vmuser\pandas\pandas\formats\format.py", line 658, in to_latex
latex_renderer.write_result(f)
File "C:\Users\vmuser\pandas\pandas\formats\format.py", line 894, in write_res
ult
buf.write(' & '.join(crow))
File "C:\Anaconda2\envs\py35\lib\encodings\cp1251.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xdf' in position 7:
character maps to <undefined>
======================================================================
FAIL: test_constructor_bad_file (pandas.io.tests.test_common.TestMMapWrapper)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2373, in assertRais
esRegexp
_callable(*args, **kwargs)
File "C:\Users\vmuser\pandas\pandas\io\common.py", line 355, in __init__
self.mmap = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
OSError: [WinError 87] Параметр задан неверно
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vmuser\pandas\pandas\io\tests\test_common.py", line 110, in tes
t_constructor_bad_file
tm.assertRaisesRegexp(err, msg, common.MMapWrapper, non_file)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2373, in assertRais
esRegexp
_callable(*args, **kwargs)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2398, in __exit__
return self.handle_success(exc_type, exc_value, traceback)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2411, in handle_suc
cess
raise_with_traceback(e, traceback)
File "C:\Users\vmuser\pandas\pandas\compat\__init__.py", line 333, in raise_wi
th_traceback
raise exc.with_traceback(traceback)
File "C:\Users\vmuser\pandas\pandas\util\testing.py", line 2373, in assertRais
esRegexp
_callable(*args, **kwargs)
File "C:\Users\vmuser\pandas\pandas\io\common.py", line 355, in __init__
self.mmap = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
AssertionError: "The parameter is incorrect" does not match "[WinError 87] Параметр задан неверно"
----------------------------------------------------------------------
Ran 10634 tests in 437.328s
FAILED (SKIP=146, errors=1, failures=1)
```
**pd.show_versions()**
```
INSTALLED VERSIONS
------------------
commit: 3b0e28e255c0319bc19397e07493bb92b4190d53
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.18.1+291.g3b0e28e
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13865/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13865/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13865.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13865",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13865.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13865"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13866
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13866/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13866/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13866/events
|
https://github.com/pandas-dev/pandas/pull/13866
| 168,645,518 |
MDExOlB1bGxSZXF1ZXN0Nzk1Njc5MTY=
| 13,866 |
BUG: SparseDataFrame may not preserve passed dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
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"
}
| 2 | 2016-08-01T13:27:30Z | 2016-08-03T10:18:07Z | 2016-08-03T10:18:04Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
`SparseDataFrame` may reset passed sparse data's `dtype` and `fill_value` as below.
**on current master:**
```
arr = pd.SparseArray([1, 0, 3, 0], dtype=np.int64, fill_value=0)
# OK, dtype and fill_value are kept
s = pd.SparseSeries(arr, name='x')
s.dtype, s.fill_value
(dtype('int64'), 0)
# NG, dtype is reset
df = pd.SparseDataFrame(s)
df['x'].dtype, df['x'].fill_value
(dtype('float64'), 0)
# NG, dtype is reset
df = pd.SparseDataFrame({'x': s})
df['x'].dtype, df['x'].fill_value
(dtype('float64'), 0)
# NG, dtype and fill_value are reset
df = pd.SparseDataFrame({'x': arr})
df['x'].dtype, df['x'].fill_value
(dtype('float64'), nan)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13866/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13866/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13866.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13866",
"merged_at": "2016-08-03T10:18:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13866.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13866"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13867
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13867/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13867/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13867/events
|
https://github.com/pandas-dev/pandas/pull/13867
| 168,652,311 |
MDExOlB1bGxSZXF1ZXN0Nzk1NzI3NDI=
| 13,867 |
TST: use types.api in plotting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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-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"
}
| 2 | 2016-08-01T13:58:59Z | 2016-08-01T19:20:34Z | 2016-08-01T19:20:30Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
remove warning related to #13147 and #13621
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13867/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13867/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13867.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13867",
"merged_at": "2016-08-01T19:20:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13867.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13867"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13868
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13868/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13868/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13868/events
|
https://github.com/pandas-dev/pandas/pull/13868
| 168,656,054 |
MDExOlB1bGxSZXF1ZXN0Nzk1NzUxODE=
| 13,868 |
DEPR: Remove legacy offsets
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7795093?v=4",
"events_url": "https://api.github.com/users/agraboso/events{/privacy}",
"followers_url": "https://api.github.com/users/agraboso/followers",
"following_url": "https://api.github.com/users/agraboso/following{/other_user}",
"gists_url": "https://api.github.com/users/agraboso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/agraboso",
"id": 7795093,
"login": "agraboso",
"node_id": "MDQ6VXNlcjc3OTUwOTM=",
"organizations_url": "https://api.github.com/users/agraboso/orgs",
"received_events_url": "https://api.github.com/users/agraboso/received_events",
"repos_url": "https://api.github.com/users/agraboso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/agraboso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agraboso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/agraboso"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "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": "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-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"
}
| 9 | 2016-08-01T14:15:12Z | 2016-08-02T10:21:23Z | 2016-08-02T10:21:21Z |
CONTRIBUTOR
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Follow-up to #13590. Remove legacy offset aliases that remained in `pandas/tseries/frequencies.py`: `_period_alias_dictionary()` and `_period_alias_dict`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13868/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13868/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13868.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13868",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13868.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13868"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13869
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13869/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13869/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13869/events
|
https://github.com/pandas-dev/pandas/issues/13869
| 168,675,819 |
MDU6SXNzdWUxNjg2NzU4MTk=
| 13,869 |
BUG: DataFrame.loc[i:j] works differently for DatetimeIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4",
"events_url": "https://api.github.com/users/jzwinck/events{/privacy}",
"followers_url": "https://api.github.com/users/jzwinck/followers",
"following_url": "https://api.github.com/users/jzwinck/following{/other_user}",
"gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jzwinck",
"id": 1216791,
"login": "jzwinck",
"node_id": "MDQ6VXNlcjEyMTY3OTE=",
"organizations_url": "https://api.github.com/users/jzwinck/orgs",
"received_events_url": "https://api.github.com/users/jzwinck/received_events",
"repos_url": "https://api.github.com/users/jzwinck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jzwinck"
}
|
[
{
"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"
}
| 7 | 2016-08-01T15:36:54Z | 2019-05-13T00:28:41Z | 2019-05-13T00:28:41Z |
CONTRIBUTOR
| null |
This code all "works," but in a surprising way:
```
import pandas as pd
t0 = 1234567890123400000
df1 = pd.DataFrame(index=pd.DatetimeIndex([t0, t0 + 1000, t0 + 2000, t0 + 3000]))
df2 = pd.DataFrame(index=range(4))
df1.loc[:2, 'a'] = np.arange(2)
df2.loc[:2, 'a'] = np.arange(3)
```
We create `df1` with a DatetimeIndex and `df2` with an integer index. We then create a new column `a` in each, using `.loc[]` with an integer slice. With `df1` we get the intuitive, normal Python slice behavior where `[:2]` means "the first 2 elements", whereas with `df2` we get the bizarre—but [documented](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html)—`DataFrame.loc` slice behavior where `[:2]` means "elements up to index 2, inclusive."
I don't see why the type of index the DataFrame has should affect the semantics of slicing with `.loc[]`. I happen to think the exclusive-end behavior is correct in all cases, though apparently Pandas has decided (or at least documented) that `.loc[]` slicing is inclusive (in which case the DatetimeIndex case looks like a bug).
Also note that trying to "read" `df1.loc[:2, 'a']` (e.g. to print it) fails, saying:
```
TypeError: cannot do slice indexing on <class 'pandas.tseries.index.DatetimeIndex'>
with these indexers [2] of <class 'int'>
```
It's sort of strange that you can assign to this slice but not read from it.
I'm using Pandas 0.18.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/13869/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13869/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13870
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13870/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13870/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13870/events
|
https://github.com/pandas-dev/pandas/issues/13870
| 168,686,685 |
MDU6SXNzdWUxNjg2ODY2ODU=
| 13,870 |
DOC: link to install instructions in README.md
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/363982?v=4",
"events_url": "https://api.github.com/users/aseering/events{/privacy}",
"followers_url": "https://api.github.com/users/aseering/followers",
"following_url": "https://api.github.com/users/aseering/following{/other_user}",
"gists_url": "https://api.github.com/users/aseering/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aseering",
"id": 363982,
"login": "aseering",
"node_id": "MDQ6VXNlcjM2Mzk4Mg==",
"organizations_url": "https://api.github.com/users/aseering/orgs",
"received_events_url": "https://api.github.com/users/aseering/received_events",
"repos_url": "https://api.github.com/users/aseering/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aseering/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aseering/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aseering"
}
|
[
{
"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-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"
}
| 6 | 2016-08-01T16:25:53Z | 2017-03-06T11:31:27Z | 2017-03-06T11:31:16Z |
NONE
| null |
_edit: the install instructions in the github README.md are out of date. They should link to the install instructions on the website_
---
I'm not sure what the expectation is here, but it seems to me that something's not right... The [installation instructions](https://github.com/pydata/pandas/#where-to-get-it) say that `easy_install` has access to binary packages. However, `easy_install` fails if the appropriate compiler is not available. Would it be possible to either clarify the instructions to explain that binary packages are not available via `easy_install`, or fix the package to work without a compiler?
#### Code Sample, a copy-pastable example if possible
```
C:\> easy_install.exe pandas
```
#### Expected Output
Pandas should be successfully installed
#### Actual Output
`error: Setup script exited with error: Microsoft Visual C++ 9.0 is required (Unable to require vcvarsall.bat). Get it from http://aka.ms/vcpython27`
#### output of `pd.show_versions()`
`easy_install` is trying to install `pandas-0.18.1`.
However, it is not succeeding. As a result, `import pandas as pd` throws `ImportError` and I cannot run this command.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13870/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13870/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13871
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13871/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13871/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13871/events
|
https://github.com/pandas-dev/pandas/issues/13871
| 168,697,036 |
MDU6SXNzdWUxNjg2OTcwMzY=
| 13,871 |
ERR: more informative error messages on invalid freq for Period when they are point-in-time
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7795093?v=4",
"events_url": "https://api.github.com/users/agraboso/events{/privacy}",
"followers_url": "https://api.github.com/users/agraboso/followers",
"following_url": "https://api.github.com/users/agraboso/following{/other_user}",
"gists_url": "https://api.github.com/users/agraboso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/agraboso",
"id": 7795093,
"login": "agraboso",
"node_id": "MDQ6VXNlcjc3OTUwOTM=",
"organizations_url": "https://api.github.com/users/agraboso/orgs",
"received_events_url": "https://api.github.com/users/agraboso/received_events",
"repos_url": "https://api.github.com/users/agraboso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/agraboso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agraboso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/agraboso"
}
|
[
{
"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": "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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"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"
}
] |
open
| false |
{
"avatar_url": "https://avatars.githubusercontent.com/u/9433920?v=4",
"events_url": "https://api.github.com/users/EricLeer/events{/privacy}",
"followers_url": "https://api.github.com/users/EricLeer/followers",
"following_url": "https://api.github.com/users/EricLeer/following{/other_user}",
"gists_url": "https://api.github.com/users/EricLeer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EricLeer",
"id": 9433920,
"login": "EricLeer",
"node_id": "MDQ6VXNlcjk0MzM5MjA=",
"organizations_url": "https://api.github.com/users/EricLeer/orgs",
"received_events_url": "https://api.github.com/users/EricLeer/received_events",
"repos_url": "https://api.github.com/users/EricLeer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EricLeer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EricLeer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EricLeer"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/9433920?v=4",
"events_url": "https://api.github.com/users/EricLeer/events{/privacy}",
"followers_url": "https://api.github.com/users/EricLeer/followers",
"following_url": "https://api.github.com/users/EricLeer/following{/other_user}",
"gists_url": "https://api.github.com/users/EricLeer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EricLeer",
"id": 9433920,
"login": "EricLeer",
"node_id": "MDQ6VXNlcjk0MzM5MjA=",
"organizations_url": "https://api.github.com/users/EricLeer/orgs",
"received_events_url": "https://api.github.com/users/EricLeer/received_events",
"repos_url": "https://api.github.com/users/EricLeer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EricLeer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EricLeer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EricLeer"
}
] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 4 | 2016-08-01T17:19:59Z | 2021-05-07T20:41:10Z | null |
CONTRIBUTOR
| null |
`Period` and `PeriodIndex` raise `ValueError` when `freq` is any of the following strings:
```
'BM', 'CBM', 'MS', 'BMS', 'CBMS', 'BQ', 'QS', 'BQS', 'BA', 'AS', 'BAS', 'BH'
```
`date_range` is fine in all cases. Also confirmed on `master`.
Possible related to #4878.
#### Code Sample, a copy-pastable example if possible
```
import pandas as pd
FREQS = ['B', 'C', 'D', 'W', 'M', 'BM', 'CBM', 'MS', 'BMS', 'CBMS', 'Q',
'BQ', 'QS', 'BQS', 'A', 'BA', 'AS', 'BAS', 'BH', 'H', 'T', 'min',
'S', 'L', 'U', 'N']
for freq in FREQS:
try:
pd.Period('2016-01-01', freq=freq)
except ValueError:
print('Cannot create Period with freq={}'.format(freq))
p = pd.Period('2016-01-01', freq='N')
try:
p.asfreq(freq)
except ValueError:
print('Cannot modify Period to freq={}'.format(freq))
try:
pd.PeriodIndex(start='2016-01-01', periods=10, freq=freq)
except ValueError:
print('Cannot create PeriodIndex with freq={}'.format(freq))
pi = pd.PeriodIndex(start='2016-01-01', periods=10, freq='N')
try:
pi.asfreq(freq)
except ValueError:
print('Cannot modify PeriodIndex to freq={}'.format(freq))
try:
pd.date_range(start='2016-01-01', periods=10, freq=freq)
except ValueError:
print('Cannot create date_range with freq={}'.format(freq))
```
#### Output
```
Cannot create Period with freq=BM
Cannot modify Period to freq=BM
Cannot create PeriodIndex with freq=BM
Cannot modify PeriodIndex to freq=BM
Cannot create Period with freq=CBM
Cannot modify Period to freq=CBM
Cannot create PeriodIndex with freq=CBM
Cannot modify PeriodIndex to freq=CBM
Cannot create Period with freq=MS
Cannot modify Period to freq=MS
Cannot create PeriodIndex with freq=MS
Cannot modify PeriodIndex to freq=MS
Cannot create Period with freq=BMS
Cannot modify Period to freq=BMS
Cannot create PeriodIndex with freq=BMS
Cannot modify PeriodIndex to freq=BMS
Cannot create Period with freq=CBMS
Cannot modify Period to freq=CBMS
Cannot create PeriodIndex with freq=CBMS
Cannot modify PeriodIndex to freq=CBMS
Cannot create Period with freq=BQ
Cannot modify Period to freq=BQ
Cannot create PeriodIndex with freq=BQ
Cannot modify PeriodIndex to freq=BQ
Cannot create Period with freq=QS
Cannot modify Period to freq=QS
Cannot create PeriodIndex with freq=QS
Cannot modify PeriodIndex to freq=QS
Cannot create Period with freq=BQS
Cannot modify Period to freq=BQS
Cannot create PeriodIndex with freq=BQS
Cannot modify PeriodIndex to freq=BQS
Cannot create Period with freq=BA
Cannot modify Period to freq=BA
Cannot create PeriodIndex with freq=BA
Cannot modify PeriodIndex to freq=BA
Cannot create Period with freq=AS
Cannot modify Period to freq=AS
Cannot create PeriodIndex with freq=AS
Cannot modify PeriodIndex to freq=AS
Cannot create Period with freq=BAS
Cannot modify Period to freq=BAS
Cannot create PeriodIndex with freq=BAS
Cannot modify PeriodIndex to freq=BAS
Cannot create Period with freq=BH
Cannot modify Period to freq=BH
Cannot create PeriodIndex with freq=BH
Cannot modify PeriodIndex to freq=BH
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
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/13871/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13871/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13872
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13872/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13872/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13872/events
|
https://github.com/pandas-dev/pandas/issues/13872
| 168,731,211 |
MDU6SXNzdWUxNjg3MzEyMTE=
| 13,872 |
ERR: set errno in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5497806?v=4",
"events_url": "https://api.github.com/users/Murmuria/events{/privacy}",
"followers_url": "https://api.github.com/users/Murmuria/followers",
"following_url": "https://api.github.com/users/Murmuria/following{/other_user}",
"gists_url": "https://api.github.com/users/Murmuria/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Murmuria",
"id": 5497806,
"login": "Murmuria",
"node_id": "MDQ6VXNlcjU0OTc4MDY=",
"organizations_url": "https://api.github.com/users/Murmuria/orgs",
"received_events_url": "https://api.github.com/users/Murmuria/received_events",
"repos_url": "https://api.github.com/users/Murmuria/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Murmuria/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Murmuria/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Murmuria"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 6 | 2016-08-01T20:12:12Z | 2021-05-17T15:17:30Z | 2021-05-17T15:17:29Z |
NONE
| null |
The same is true for Pandas on Python 2.7 with except IOError and on Python 3.5 with OSError. The following is how to reproduce the bug on Python 3.5.
Pandas is not reporting any errno within the exceptions. As a result, there is no way to differentiate between File Not Found Error (ENOENT) and other types of OSErrors.
#### Code Sample
```
try:
pd.read_csv("dummy_file")
except OSError as e:
print(e.errno, errno.ENOENT)
```
#### Current Output
(None, 2)
#### Expected Output
(2, 2)
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13872/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13872/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13873
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13873/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13873/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13873/events
|
https://github.com/pandas-dev/pandas/issues/13873
| 168,736,116 |
MDU6SXNzdWUxNjg3MzYxMTY=
| 13,873 |
.iloc[:] and .loc[:] return the original object
|
{
"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": "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": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 8 | 2016-08-01T20:36:03Z | 2017-06-14T23:03:28Z | 2017-06-14T23:03:27Z |
MEMBER
| null |
Each of these asserts should fail:
``` python
# on pandas 0.18.1
import pandas as pd
df = pd.DataFrame({'x': range(3)})
assert df.iloc[:] is df
assert df.loc[:] is df
series = df.x
assert series.iloc[:] is series
assert series.loc[:] is series
```
Instead, for the sake of predictability, these should always return a new DataFrame/Series, even if they reuse the same data. See [here](https://github.com/pydata/pandas/issues/13842#issuecomment-236685599) for an example of how this resulted in a user facing bug within pandas.
Thanks @mborysow for pointing this out.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13873/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13873/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13874
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13874/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13874/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13874/events
|
https://github.com/pandas-dev/pandas/pull/13874
| 168,744,446 |
MDExOlB1bGxSZXF1ZXN0Nzk2MzgyODk=
| 13,874 |
BUG: Fix Period and PeriodIndex support of combined offsets aliases
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7795093?v=4",
"events_url": "https://api.github.com/users/agraboso/events{/privacy}",
"followers_url": "https://api.github.com/users/agraboso/followers",
"following_url": "https://api.github.com/users/agraboso/following{/other_user}",
"gists_url": "https://api.github.com/users/agraboso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/agraboso",
"id": 7795093,
"login": "agraboso",
"node_id": "MDQ6VXNlcjc3OTUwOTM=",
"organizations_url": "https://api.github.com/users/agraboso/orgs",
"received_events_url": "https://api.github.com/users/agraboso/received_events",
"repos_url": "https://api.github.com/users/agraboso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/agraboso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agraboso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/agraboso"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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 | 2016-08-01T21:16:57Z | 2016-08-08T14:12:32Z | 2016-08-08T14:11:31Z |
CONTRIBUTOR
| null |
- [x] closes #13730
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Essentially, makes sure any `freq` string passed to a `Period` or `PeriodIndex` goes through [`_Period._maybe_convert_freq()`](https://github.com/pydata/pandas/blob/master/pandas/src/period.pyx#L682-L697), which calls [`to_offset()`](https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L389-L451), which is where the logic for combining aliases is.
All the examples in #13730 result in the correct output, and all existing tests pass. I have not written any new ones yet — I first wanted to get the opinion of the maintainers.
This PR builds on #13868 (without it, some existing tests fail).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13874/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13874/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13874.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13874",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13874.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13874"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13875
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13875/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13875/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13875/events
|
https://github.com/pandas-dev/pandas/issues/13875
| 168,752,866 |
MDU6SXNzdWUxNjg3NTI4NjY=
| 13,875 |
API: consider better decorator option
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "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": "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"
}
] |
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"
}
| 12 | 2016-08-01T22:02:20Z | 2020-09-22T22:33:48Z | 2020-09-22T22:33:47Z |
CONTRIBUTOR
| null |
It's not an issue in py3.5, but in older versions this is annoying - because a decorator is used in the definition, the function signature on `to_datetime` is lost. This is the big one I've run into, but there may be some other places in the API it comes up.

I saw this blog today - could use one of the strategies there. It may make sense to vendor rather than adding another dependency?
https://hynek.me/articles/decorators/
|
{
"+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/13875/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13875/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13876
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13876/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13876/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13876/events
|
https://github.com/pandas-dev/pandas/pull/13876
| 168,768,434 |
MDExOlB1bGxSZXF1ZXN0Nzk2NTU5NTQ=
| 13,876 |
BUG: Series creation with datetime64 with non-ns unit as object dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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-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"
}
| 2 | 2016-08-01T23:50:25Z | 2016-08-02T10:14:12Z | 2016-08-02T10:14:09Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
found a bug related to `datetime64` with non-ns unit.
```
# OK
pd.Series(np.array([np.datetime64('2011-01-01')]))
#0 2011-01-01
# dtype: datetime64[ns]
# OK
pd.Series([np.datetime64('2011-01-01')], dtype=object)
#0 2011-01-01
# dtype: object
# NG
pd.Series(np.array([np.datetime64('2011-01-01')]), dtype=object)
#0 1970-01-01 00:00:00.000014
# dtype: object
# OK
pd.Series(np.array([np.datetime64('2011-01-01', 'ns')]), dtype=object)
#0 2011-01-01 00:00:00
# dtype: object
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13876/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13876/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13876.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13876",
"merged_at": "2016-08-02T10:14:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13876.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13876"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13877
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13877/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13877/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13877/events
|
https://github.com/pandas-dev/pandas/issues/13877
| 168,780,337 |
MDU6SXNzdWUxNjg3ODAzMzc=
| 13,877 |
ERR/API: non-string types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
}
|
[
{
"color": "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 |
[] |
{
"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-08-02T01:37:11Z | 2019-06-01T15:03:08Z | 2019-06-01T15:03:08Z |
CONTRIBUTOR
| null |
xref #5602, #9343, #13806 (comments)
#### Code Sample, a copy-pastable example if possible
```
In [2]: s = pd.Series(['a', 123, 'b'])
In [3]: s.str.startswith('a')
Out[3]:
0 True
1 NaN
2 False
dtype: object
```
#### Expected Output
raise an exception
Reasoning: If I provide NaN, it's okay to return NaN, but silently convert is hard to find. The user cannot easily drop hidden integers in an 'O' series.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: None
xarray: 0.7.2
IPython: 5.0.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13877/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13877/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13878
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13878/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13878/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13878/events
|
https://github.com/pandas-dev/pandas/pull/13878
| 168,814,144 |
MDExOlB1bGxSZXF1ZXN0Nzk2ODU2NDc=
| 13,878 |
solve list cannot add to tuple error in make_signature function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1327396?v=4",
"events_url": "https://api.github.com/users/caikehe/events{/privacy}",
"followers_url": "https://api.github.com/users/caikehe/followers",
"following_url": "https://api.github.com/users/caikehe/following{/other_user}",
"gists_url": "https://api.github.com/users/caikehe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/caikehe",
"id": 1327396,
"login": "caikehe",
"node_id": "MDQ6VXNlcjEzMjczOTY=",
"organizations_url": "https://api.github.com/users/caikehe/orgs",
"received_events_url": "https://api.github.com/users/caikehe/received_events",
"repos_url": "https://api.github.com/users/caikehe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/caikehe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/caikehe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/caikehe"
}
|
[
{
"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 | 5 | 2016-08-02T07:07:05Z | 2016-10-28T14:58:29Z | 2016-10-28T14:58:29Z |
NONE
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13878/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13878/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13878.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13878",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13878.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13878"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13879
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13879/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13879/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13879/events
|
https://github.com/pandas-dev/pandas/issues/13879
| 168,830,724 |
MDU6SXNzdWUxNjg4MzA3MjQ=
| 13,879 |
skipfooter doesn't really "skip" in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 2 | 2016-08-02T08:45:43Z | 2016-11-29T21:19:56Z | 2016-11-29T21:18:28Z |
MEMBER
| null |
On `master`:
``` python
from pandas import read_csv
from pandas.compat import StringIO
data = 'a,b,c\ncat,foo,bar\ndog,foo,"baz' # Note the stray quotation mark
read_csv(StringIO(data), engine='python', skipfooter=1)
...
_csv.Error: unexpected end of data
```
If we were truly "skipping" the last row, no error should have been raised. However, this occurs because the data is all parsed <em>in memory</em> first with Python's `csv` library.
Whether this is intended behaviour or not has implications for the C engine in terms of implementing analogous `skipfooter` behaviour. Or perhaps it has something to do with the fact that `error_bad_lines` and `error_warn_lines` parameters not with the Python engine?
xref #5232
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13879/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13879/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13880
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13880/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13880/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13880/events
|
https://github.com/pandas-dev/pandas/issues/13880
| 168,832,743 |
MDU6SXNzdWUxNjg4MzI3NDM=
| 13,880 |
Series.idxmax() and Series.max() show inconsistent behaviour with pd.np.Inf
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7250294?v=4",
"events_url": "https://api.github.com/users/nescio007/events{/privacy}",
"followers_url": "https://api.github.com/users/nescio007/followers",
"following_url": "https://api.github.com/users/nescio007/following{/other_user}",
"gists_url": "https://api.github.com/users/nescio007/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nescio007",
"id": 7250294,
"login": "nescio007",
"node_id": "MDQ6VXNlcjcyNTAyOTQ=",
"organizations_url": "https://api.github.com/users/nescio007/orgs",
"received_events_url": "https://api.github.com/users/nescio007/received_events",
"repos_url": "https://api.github.com/users/nescio007/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nescio007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nescio007/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nescio007"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"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": 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-08-02T08:56:16Z | 2016-08-02T09:54:52Z | 2016-08-02T09:54:31Z |
NONE
| null |
`idxmax` is supposed to return the index of the maximum element. However, it seems to ignore special values like infinity (`pd.np.Inf`), leading to the following inconsistency:
``` python
>>> from pandas import DataFrame
>>> s = pd.Series([0,5,pd.np.Inf])
>>> s.max() == s.ix[s.idxmax()]
```
This snippet will return `False`, since `s.idxmax()` will return `1`, the index of value `5`, while `s.max()` returns `Inf` as expected.
#### Expected Output
``` python
True
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.6.4-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
pandas: 0.18.1
nose: 1.3.6
pip: 8.1.2
setuptools: 25.1.0
Cython: None
numpy: 1.11.1
scipy: 0.14.0
statsmodels: 0.6.1
xarray: None
IPython: 5.0.0
sphinx: None
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.2
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
pandas_datareader: 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/13880/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13880/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13881
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13881/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13881/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13881/events
|
https://github.com/pandas-dev/pandas/pull/13881
| 168,853,414 |
MDExOlB1bGxSZXF1ZXN0Nzk3MTI4MDc=
| 13,881 |
TST: Add first line comment tests in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-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"
}
| 2 | 2016-08-02T10:38:42Z | 2016-08-03T10:15:51Z | 2016-08-03T10:15:47Z |
MEMBER
| null |
Title is self-explanatory. Closes #4623.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13881/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13881/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13881.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13881",
"merged_at": "2016-08-03T10:15:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13881.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13881"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13882
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13882/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13882/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13882/events
|
https://github.com/pandas-dev/pandas/pull/13882
| 168,873,283 |
MDExOlB1bGxSZXF1ZXN0Nzk3MjY1Mjg=
| 13,882 |
DOC: Update README to link to install instructions.
|
{
"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": "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-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"
}
| 5 | 2016-08-02T12:30:44Z | 2017-04-05T02:07:02Z | 2016-08-28T18:26:12Z |
CONTRIBUTOR
| null |
Want any updates to the actual install instructions? Should we remove the section on wakari? Do we have a preference for conda-forge over the default channel?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13882/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13882/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13882.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13882",
"merged_at": "2016-08-28T18:26:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13882.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13882"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13883
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13883/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13883/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13883/events
|
https://github.com/pandas-dev/pandas/issues/13883
| 168,948,923 |
MDU6SXNzdWUxNjg5NDg5MjM=
| 13,883 |
Pandas threading crash
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4604641?v=4",
"events_url": "https://api.github.com/users/targon/events{/privacy}",
"followers_url": "https://api.github.com/users/targon/followers",
"following_url": "https://api.github.com/users/targon/following{/other_user}",
"gists_url": "https://api.github.com/users/targon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/targon",
"id": 4604641,
"login": "targon",
"node_id": "MDQ6VXNlcjQ2MDQ2NDE=",
"organizations_url": "https://api.github.com/users/targon/orgs",
"received_events_url": "https://api.github.com/users/targon/received_events",
"repos_url": "https://api.github.com/users/targon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/targon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/targon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/targon"
}
|
[
{
"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 | 4 | 2016-08-02T17:59:55Z | 2016-08-02T19:16:37Z | 2016-08-02T19:13:26Z |
NONE
| null |
The following code crashes Pandas 0.18.1 with SIGSEGV:
```
#!/usr/bin/env python3
import threading
import pandas as pd
import numpy as np
def lets_crash():
t = 0.02 * np.arange(100000)
data = pd.DataFrame({'t': t})
data['t'] * 1.5
threads = []
for i in range(100):
t = threading.Thread(target=let_crash)
t.daemon = True
t.start()
threads.append(t)
for t in threads:
t.join()
```
(from [http://stackoverflow.com/questions/25782912/pandas-and-numpy-thread-safety](http://stackoverflow.com/questions/25782912/pandas-and-numpy-thread-safety))
Note that the threads run independently from each other, so I don't know how to avoid this short of serialising all access to Pandas.
I tried to get a stack trace, but it seems to crash in several different places.
#### Expected Output
None, but gives SIGSEGV instead
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-31-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
pandas: 0.18.1
nose: None
pip: None
setuptools: None
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 2.4.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2014.10
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: None
boto: None
pandas_datareader: None
I can also reproduce the bug with python 2.7.12, and also with pandas 0.17.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13883/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13883/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13884
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13884/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13884/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13884/events
|
https://github.com/pandas-dev/pandas/issues/13884
| 168,964,129 |
MDU6SXNzdWUxNjg5NjQxMjk=
| 13,884 |
Round trip through HDF5 with format=table and localized DatetimeIndex discards index name
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4",
"events_url": "https://api.github.com/users/jzwinck/events{/privacy}",
"followers_url": "https://api.github.com/users/jzwinck/followers",
"following_url": "https://api.github.com/users/jzwinck/following{/other_user}",
"gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jzwinck",
"id": 1216791,
"login": "jzwinck",
"node_id": "MDQ6VXNlcjEyMTY3OTE=",
"organizations_url": "https://api.github.com/users/jzwinck/orgs",
"received_events_url": "https://api.github.com/users/jzwinck/received_events",
"repos_url": "https://api.github.com/users/jzwinck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jzwinck"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 2 | 2016-08-02T19:08:37Z | 2016-08-04T21:04:30Z | 2016-08-04T21:04:30Z |
CONTRIBUTOR
| null |
This should work, but the assert fails:
```
import pandas as pd
df = pd.DataFrame({'a': [1,2,3]})
df.index = pd.DatetimeIndex([1234567890123456787, 1234567890123456788, 1234567890123456789])
df.index = df.index.tz_localize('UTC') # this line makes the index name go away
df.index.name = 'expected'
df.to_hdf('hello.h5', 'world', format='table')
df2 = pd.read_hdf('hello.h5', 'world')
assert df2.index.name == df.index.name, "HDF5 stored name not expected: {}".format(df2.index.name)
```
It works fine if you don't localize the DatetimeIndex, or if you don't use format='table'.
The index name "expected" is actually stored in the "info" attribute inside the HDF5 file whether it's localized or not. But the format is slightly different. If not localized:
```
(dp7
Vindex_name
p8
Vexpected
```
If localized:
```
(tRp10
sVindex_name
p11
Vexpected
```
I don't know enough to say whether the bug is in read_hdf(), to_hdf(), or PyTables.
I'm using Pandas 0.18.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/13884/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13884/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13885
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13885/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13885/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13885/events
|
https://github.com/pandas-dev/pandas/pull/13885
| 169,067,128 |
MDExOlB1bGxSZXF1ZXN0Nzk4NjA1Mzk=
| 13,885 |
BUG: Ignore the BOM in UTF8 BOM CSV files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 5 | 2016-08-03T07:35:54Z | 2016-08-05T10:37:31Z | 2016-08-05T10:37:31Z |
MEMBER
| null |
Title is self-explanatory. Closes #4793.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13885/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13885/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13885.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13885",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13885.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13885"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13886
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13886/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13886/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13886/events
|
https://github.com/pandas-dev/pandas/pull/13886
| 169,133,790 |
MDExOlB1bGxSZXF1ZXN0Nzk5MDc1NjI=
| 13,886 |
DOC: small releasenote fixes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 1 | 2016-08-03T13:39:26Z | 2016-08-03T14:51:58Z | 2016-08-03T14:51:54Z |
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/13886/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13886/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13886.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13886",
"merged_at": "2016-08-03T14:51:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13886.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13886"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/13887
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13887/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13887/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13887/events
|
https://github.com/pandas-dev/pandas/issues/13887
| 169,169,863 |
MDU6SXNzdWUxNjkxNjk4NjM=
| 13,887 |
pandas.DataFrame.to_html() does not provide an option to remove all styling attributes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1271624?v=4",
"events_url": "https://api.github.com/users/MikaS/events{/privacy}",
"followers_url": "https://api.github.com/users/MikaS/followers",
"following_url": "https://api.github.com/users/MikaS/following{/other_user}",
"gists_url": "https://api.github.com/users/MikaS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MikaS",
"id": 1271624,
"login": "MikaS",
"node_id": "MDQ6VXNlcjEyNzE2MjQ=",
"organizations_url": "https://api.github.com/users/MikaS/orgs",
"received_events_url": "https://api.github.com/users/MikaS/received_events",
"repos_url": "https://api.github.com/users/MikaS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MikaS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MikaS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MikaS"
}
|
[
{
"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 |
[] |
{
"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-08-03T16:04:47Z | 2016-08-03T19:47:55Z | 2016-08-03T19:47:33Z |
NONE
| null |
DataFrame.to_html() renders by default a table element with a border='1' attribute. The text-align style attribute on the <thead> <tr> is also set to "right".
Even if it is easy to override by code or CSS, it should be good to have an option that removes or clear all styling attributes on the generated table. For example df.to_html(no_style=True)
Cheers,
Mikaël
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13887/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13887/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13888
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13888/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13888/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13888/events
|
https://github.com/pandas-dev/pandas/pull/13888
| 169,185,758 |
MDExOlB1bGxSZXF1ZXN0Nzk5NDQ3NTI=
| 13,888 |
BUG: preserve DatetimeIndex.name in HDFStore/read_hdf() with tz (#13884)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4",
"events_url": "https://api.github.com/users/jzwinck/events{/privacy}",
"followers_url": "https://api.github.com/users/jzwinck/followers",
"following_url": "https://api.github.com/users/jzwinck/following{/other_user}",
"gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jzwinck",
"id": 1216791,
"login": "jzwinck",
"node_id": "MDQ6VXNlcjEyMTY3OTE=",
"organizations_url": "https://api.github.com/users/jzwinck/orgs",
"received_events_url": "https://api.github.com/users/jzwinck/received_events",
"repos_url": "https://api.github.com/users/jzwinck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jzwinck"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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-08-03T17:19:40Z | 2016-08-04T21:04:31Z | 2016-08-04T21:04:30Z |
CONTRIBUTOR
| null |
- [x] closes #13884
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13888/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13888/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13888.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13888",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13888.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13888"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13889
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13889/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13889/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13889/events
|
https://github.com/pandas-dev/pandas/pull/13889
| 169,193,399 |
MDExOlB1bGxSZXF1ZXN0Nzk5NTAxNDU=
| 13,889 |
BUG: Empty lists shouldn't be counted as DateOffsets. See #13844
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20444824?v=4",
"events_url": "https://api.github.com/users/tom-bird/events{/privacy}",
"followers_url": "https://api.github.com/users/tom-bird/followers",
"following_url": "https://api.github.com/users/tom-bird/following{/other_user}",
"gists_url": "https://api.github.com/users/tom-bird/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tom-bird",
"id": 20444824,
"login": "tom-bird",
"node_id": "MDQ6VXNlcjIwNDQ0ODI0",
"organizations_url": "https://api.github.com/users/tom-bird/orgs",
"received_events_url": "https://api.github.com/users/tom-bird/received_events",
"repos_url": "https://api.github.com/users/tom-bird/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tom-bird/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tom-bird/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tom-bird"
}
|
[
{
"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": "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-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"
}
| 9 | 2016-08-03T17:56:03Z | 2016-08-26T20:43:21Z | 2016-08-26T20:43:20Z |
CONTRIBUTOR
| null |
- [x] closes #13844
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13889/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13889/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13889.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13889",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13889.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13889"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13890
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13890/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13890/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13890/events
|
https://github.com/pandas-dev/pandas/pull/13890
| 169,214,118 |
MDExOlB1bGxSZXF1ZXN0Nzk5NjUwMTc=
| 13,890 |
BUG: avoid "b" prefix for bytes in to_csv() on Python 3 (#9712)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4",
"events_url": "https://api.github.com/users/jzwinck/events{/privacy}",
"followers_url": "https://api.github.com/users/jzwinck/followers",
"following_url": "https://api.github.com/users/jzwinck/following{/other_user}",
"gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jzwinck",
"id": 1216791,
"login": "jzwinck",
"node_id": "MDQ6VXNlcjEyMTY3OTE=",
"organizations_url": "https://api.github.com/users/jzwinck/orgs",
"received_events_url": "https://api.github.com/users/jzwinck/received_events",
"repos_url": "https://api.github.com/users/jzwinck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jzwinck"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] | null | 12 | 2016-08-03T19:34:05Z | 2016-09-14T13:23:22Z | 2016-09-13T10:05:42Z |
CONTRIBUTOR
| null |
- [x] closes #9712
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13890/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13890/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13890.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13890",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13890.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13890"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13891
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13891/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13891/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13891/events
|
https://github.com/pandas-dev/pandas/issues/13891
| 169,220,351 |
MDU6SXNzdWUxNjkyMjAzNTE=
| 13,891 |
BUG: allow describe() for on boolean-only columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11477059?v=4",
"events_url": "https://api.github.com/users/lia-simeone/events{/privacy}",
"followers_url": "https://api.github.com/users/lia-simeone/followers",
"following_url": "https://api.github.com/users/lia-simeone/following{/other_user}",
"gists_url": "https://api.github.com/users/lia-simeone/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lia-simeone",
"id": 11477059,
"login": "lia-simeone",
"node_id": "MDQ6VXNlcjExNDc3MDU5",
"organizations_url": "https://api.github.com/users/lia-simeone/orgs",
"received_events_url": "https://api.github.com/users/lia-simeone/received_events",
"repos_url": "https://api.github.com/users/lia-simeone/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lia-simeone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lia-simeone/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lia-simeone"
}
|
[
{
"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-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"
}
| 2 | 2016-08-03T20:00:38Z | 2016-08-08T14:06:28Z | 2016-08-08T14:06:28Z |
NONE
| null |
I know I can obtain the expected output by using `include=['bool']`, but that feels bad to me as a user. I want `describe()` to know that I'm only asking for boolean columns and not freak out.
Thank you!
#### Code Sample, a copy-pastable example if possible
``` python
>>> test_df = pd.DataFrame({'test_ind_1': [False, False, True, True, False, True , True, False], 'test_ind_2': [False, True, True, False, False, True, True,True]})
>>> test_df.describe()
```
#### Expected Output
``` python
│ test_ind_1 test_ind_2
│count 8 8
│unique 2 2
│top True True
│freq 4 5
```
#### Actual output
``` python
ValueError: No objects to concatenate
```
#### output of `pd.show_versions()`
``` python
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.18.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.22.1
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 5.0.0
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.1
pytz: 2016.6.1
blosc: None
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.5.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: None
```
|
{
"+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/13891/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13891/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13892
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13892/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13892/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13892/events
|
https://github.com/pandas-dev/pandas/issues/13892
| 169,225,156 |
MDU6SXNzdWUxNjkyMjUxNTY=
| 13,892 |
HDF read query issue
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1166000?v=4",
"events_url": "https://api.github.com/users/potash/events{/privacy}",
"followers_url": "https://api.github.com/users/potash/followers",
"following_url": "https://api.github.com/users/potash/following{/other_user}",
"gists_url": "https://api.github.com/users/potash/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/potash",
"id": 1166000,
"login": "potash",
"node_id": "MDQ6VXNlcjExNjYwMDA=",
"organizations_url": "https://api.github.com/users/potash/orgs",
"received_events_url": "https://api.github.com/users/potash/received_events",
"repos_url": "https://api.github.com/users/potash/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/potash/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/potash/subscriptions",
"type": "User",
"url": "https://api.github.com/users/potash"
}
|
[
{
"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": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] | null | 8 | 2016-08-03T20:24:48Z | 2016-08-05T14:42:23Z | 2016-08-05T14:42:22Z |
NONE
| null |
I created an HDF file using:
```
X.to_hdf('test.hdf', 'X', format='t', data_columns=['date', 'evaluation'])
```
I am interested in reading rows matching a query:
```
where = "((date >= '2010-01-01' and date < '2012-01-01') & (evaluation > 0)) | (date == '2012-01-01')"
```
However running
```
pd.read_hdf('test.hdf', 'X', where=where)
```
Does not return all matching rows. If I alternatively run
```
pd.read_hdf('test.hdf', 'X').query(where)
```
I get the correct rows.
#### Code Sample, a copy-pastable example if possible
I uploaded my example to this [repository](https://github.com/potash/pandas-hdf-select-bug). After cloning the repository unzip the buggy HDF files:
```
unzip test.zip
```
The `test.hdf` file is the one producing the bug, but the `test2.hdf`-- which only differs by removing all columns except the ones used in the query-- but does not produce the bug!
You can test the two hdf files using `python test.py test.hdf` and `python test.py test2.hdf`.
#### Expected Output
Both runs should print
```
29540
29540
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-91-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.1
pip: 8.1.2
setuptools: 24.0.2
Cython: None
numpy: 1.11.1
scipy: 0.13.3
statsmodels: 0.5.0
xarray: None
IPython: 4.2.0
sphinx: None
patsy: 0.2.1
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.6.0
matplotlib: 1.3.1
openpyxl: 2.2.0-b1
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: 4.2.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: 2.4.5 (dt dec mx pq3 ext)
jinja2: 2.8
boto: 2.20.1
pandas_datareader: 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/13892/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13892/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13893
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13893/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13893/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13893/events
|
https://github.com/pandas-dev/pandas/issues/13893
| 169,247,076 |
MDU6SXNzdWUxNjkyNDcwNzY=
| 13,893 |
Failure to load Pandas in Docker
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1110827?v=4",
"events_url": "https://api.github.com/users/mnfienen/events{/privacy}",
"followers_url": "https://api.github.com/users/mnfienen/followers",
"following_url": "https://api.github.com/users/mnfienen/following{/other_user}",
"gists_url": "https://api.github.com/users/mnfienen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mnfienen",
"id": 1110827,
"login": "mnfienen",
"node_id": "MDQ6VXNlcjExMTA4Mjc=",
"organizations_url": "https://api.github.com/users/mnfienen/orgs",
"received_events_url": "https://api.github.com/users/mnfienen/received_events",
"repos_url": "https://api.github.com/users/mnfienen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mnfienen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mnfienen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mnfienen"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 4 | 2016-08-03T22:12:53Z | 2016-08-03T22:58:34Z | 2016-08-03T22:17:54Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
More difficult than that. Trying to import pandas when Running Python 3.5 in a Docker container, passing the --user option to 'docker run'. in this case, running Python 3.5 in a docker container using HTCondor
#### Expected Output
Should quietly load
#### Actual Output
Traceback (most recent call last):
File "foo.py", line 1, in <module>
import pandas
File "/opt/conda/lib/python3.5/site-packages/pandas/**init**.py", line 39, in <module>
from pandas.core.api import *
File "/opt/conda/lib/python3.5/site-packages/pandas/core/api.py", line 10, in <module>
from pandas.core.groupby import Grouper
File "/opt/conda/lib/python3.5/site-packages/pandas/core/groupby.py", line 18, in <module>
from pandas.core.frame import DataFrame
File "/opt/conda/lib/python3.5/site-packages/pandas/core/frame.py", line 39, in <module>
from pandas.core.series import Series
File "/opt/conda/lib/python3.5/site-packages/pandas/core/series.py", line 2944, in <module>
import pandas.tools.plotting as _gfx # noqa
File "/opt/conda/lib/python3.5/site-packages/pandas/tools/plotting.py", line 27, in <module>
import pandas.tseries.converter as conv
File "/opt/conda/lib/python3.5/site-packages/pandas/tseries/converter.py", line 7, in <module>
import matplotlib.units as units
File "/opt/conda/lib/python3.5/site-packages/matplotlib/__init__.py", line 1131, in <module>
rcParams = rc_params()
File "/opt/conda/lib/python3.5/site-packages/matplotlib/**init**.py", line 965, in rc_params
fname = matplotlib_fname()
File "/opt/conda/lib/python3.5/site-packages/matplotlib/**init**.py", line 794, in matplotlib_fname
configdir = _get_configdir()
File "/opt/conda/lib/python3.5/site-packages/matplotlib/__init__.py", line 649, in _get_configdir
return _get_config_or_cache_dir(_get_xdg_config_dir())
File "/opt/conda/lib/python3.5/site-packages/matplotlib/__init__.py", line 626, in _get_config_or_cache_dir
return _create_tmp_config_dir()
File "/opt/conda/lib/python3.5/site-packages/matplotlib/__init__.py", line 555, in _create_tmp_config_dir
tempdir = os.path.join(tempdir, 'matplotlib-%s' % getpass.getuser())
File "/opt/conda/lib/python3.5/getpass.py", line 170, in getuser
return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 99'
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.22.2.el7.x86_64
machine: x86_64
processor:
byteorder: little
LC_ALL: C.UTF-8
LANG: C.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13893/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13893/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13894
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13894/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13894/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13894/events
|
https://github.com/pandas-dev/pandas/pull/13894
| 169,253,684 |
MDExOlB1bGxSZXF1ZXN0Nzk5OTMyNDU=
| 13,894 |
API/BUG: Fix Series ops inconsistencies
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "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-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"
}
| 8 | 2016-08-03T22:55:56Z | 2016-08-25T10:21:00Z | 2016-08-25T10:20:52Z |
MEMBER
| null |
- [x] closes #1134, closes #4581, closes #13538
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This includes the fix only for #1134 and not for other inconsistencies (like #13637), as it needs further discussions.
Changes:
- series comparison operator to check whether labels are identical (currently: ignores labels)
- series boolean operator to align with labels (currently: only keeps left index)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13894/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13894/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13894.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13894",
"merged_at": "2016-08-25T10:20:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13894.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13894"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13895
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13895/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13895/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13895/events
|
https://github.com/pandas-dev/pandas/issues/13895
| 169,256,813 |
MDU6SXNzdWUxNjkyNTY4MTM=
| 13,895 |
CI: Windows builds started failing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
] |
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"
}
| 2 | 2016-08-03T23:19:42Z | 2016-08-07T00:55:47Z | 2016-08-07T00:55:47Z |
CONTRIBUTOR
| null |
https://ci.appveyor.com/project/jreback/pandas-465/build/1.0.847/job/fb6cmln4nrxw52ef
the commit was just some tests
any ideas?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13895/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13895/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13896
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13896/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13896/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13896/events
|
https://github.com/pandas-dev/pandas/issues/13896
| 169,256,928 |
MDU6SXNzdWUxNjkyNTY5Mjg=
| 13,896 |
API: Series/DataFrame logical op NaN propagation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 1 | 2016-08-03T23:20:38Z | 2019-11-12T23:32:46Z | 2019-11-12T23:32:46Z |
MEMBER
| null |
The same as #13806, but for discuss differences with `DataFrame`.
```
pd.Series([True, False, np.nan]) | pd.Series([True, False, True])
#0 True
#1 False
#2 False
# dtype: bool
pd.Series([True, False, True]) | pd.Series([True, False, np.nan])
#0 True
#1 False
#2 True
# dtype: bool
pd.DataFrame([True, False, np.nan]) | pd.DataFrame([True, False, True])
# 0
#0 True
#1 False
#2 NaN
pd.DataFrame([True, False, True]) | pd.DataFrame([True, False, np.nan])
# 0
#0 True
#1 False
#2 NaN
```
There looks to be 2 points:
## 1. `NaN` comparison result
As @TomAugspurger described in #13806, the basic rule is below. Based on this, `DataFrame` result is incorrect.
```
In [40]: float('nan') or 1
Out[40]: nan
In [41]: 1 or float('nan')
Out[41]: 1
```
## 2. filling `NaN` result
`Series` fills `NaN` included in the result with `False`. `DataFrame` should also?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13896/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13896/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13897
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13897/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13897/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13897/events
|
https://github.com/pandas-dev/pandas/pull/13897
| 169,266,425 |
MDExOlB1bGxSZXF1ZXN0ODAwMDI0MTI=
| 13,897 |
BUG: fix precision to specify decimal places
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7526790?v=4",
"events_url": "https://api.github.com/users/drewrey/events{/privacy}",
"followers_url": "https://api.github.com/users/drewrey/followers",
"following_url": "https://api.github.com/users/drewrey/following{/other_user}",
"gists_url": "https://api.github.com/users/drewrey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drewrey",
"id": 7526790,
"login": "drewrey",
"node_id": "MDQ6VXNlcjc1MjY3OTA=",
"organizations_url": "https://api.github.com/users/drewrey/orgs",
"received_events_url": "https://api.github.com/users/drewrey/received_events",
"repos_url": "https://api.github.com/users/drewrey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drewrey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drewrey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drewrey"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
] |
closed
| false | null |
[] | null | 8 | 2016-08-04T00:42:30Z | 2016-12-26T21:42:27Z | 2016-12-26T21:42:27Z |
CONTRIBUTOR
| null |
- [x] closes #13257
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Use 'f' as a string conversion type to specify the number of decimals to
represent. The 'g' format will instead fall back to the 'e' format
causing the unexpected behavior seen in GHI13257.
See: [old-string-formatting](https://docs.python.org/3.5/library/stdtypes.html#old-string-formatting)
Replicated code from the issue, with output:
<img width="702" alt="example output with precision" src="https://cloud.githubusercontent.com/assets/7526790/17386623/77eb83f4-59ba-11e6-8193-fde0e839a184.png">
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13897/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13897/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13897.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13897",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13897.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13897"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13898
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13898/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13898/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13898/events
|
https://github.com/pandas-dev/pandas/pull/13898
| 169,269,387 |
MDExOlB1bGxSZXF1ZXN0ODAwMDQ0MjA=
| 13,898 |
BUG: allow describe() for DataFrames with only boolean columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7795093?v=4",
"events_url": "https://api.github.com/users/agraboso/events{/privacy}",
"followers_url": "https://api.github.com/users/agraboso/followers",
"following_url": "https://api.github.com/users/agraboso/following{/other_user}",
"gists_url": "https://api.github.com/users/agraboso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/agraboso",
"id": 7795093,
"login": "agraboso",
"node_id": "MDQ6VXNlcjc3OTUwOTM=",
"organizations_url": "https://api.github.com/users/agraboso/orgs",
"received_events_url": "https://api.github.com/users/agraboso/received_events",
"repos_url": "https://api.github.com/users/agraboso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/agraboso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agraboso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/agraboso"
}
|
[
{
"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-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"
}
| 8 | 2016-08-04T01:10:51Z | 2016-08-08T14:06:28Z | 2016-08-08T14:06:28Z |
CONTRIBUTOR
| null |
- [x] closes #13891
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Closes #13891. Existing tests pass. ~~No new tests added yet.~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13898/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13898/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13898.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13898",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13898.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13898"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13899
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13899/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13899/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13899/events
|
https://github.com/pandas-dev/pandas/pull/13899
| 169,270,235 |
MDExOlB1bGxSZXF1ZXN0ODAwMDQ5NzI=
| 13,899 |
BUG: union_categorical fastpath sort
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "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"
}
| 2 | 2016-08-04T01:19:35Z | 2016-08-04T10:38:38Z | 2016-08-04T10:38:38Z |
CONTRIBUTOR
| null |
Follow up to a problem with #13846. This path was tested, but the test just happened to be constructed in such a way it worked with the buggy implementation.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13899/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13899/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13899.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13899",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13899.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13899"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13900
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13900/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13900/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13900/events
|
https://github.com/pandas-dev/pandas/pull/13900
| 169,342,290 |
MDExOlB1bGxSZXF1ZXN0ODAwNTQ3MzM=
| 13,900 |
ENH: sparse astype now supports int64 and bool
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
}
|
[
{
"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": "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": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
}
| 4 | 2016-08-04T10:26:13Z | 2016-08-04T21:12:21Z | 2016-08-04T21:09:18Z |
MEMBER
| null |
- [x] split from #13849
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
`SparseXXX` now support `astype` other than `float64` dtype. It raises `ValueError` when its `sp_values` or `fill_value` cannot be converted to specified dtype.
```
s = pd.SparseSeries([1., 0., 2., 0.], fill_value=0)
s.astype(np.int64)
#0 1
#1 0
#2 2
#3 0
# dtype: int64
# BlockIndex
# Block locations: array([0, 2], dtype=int32)
# Block lengths: array([1, 1], dtype=int32)
pd.SparseSeries([1, np.nan, 2, np.nan]).astype(np.int64)
# ValueError: unable to coerce current fill_value nan to int64 dtype
```
Also, `fill_value` setter now checks input value dtype and raises `ValueError` if value cannot be stored to current dtype.
```
s = pd.SparseSeries([1, 0, 2, 0], fill_value=0, dtype=np.int64)
s.fill_value = 2
s
#0 1
#1 2
#2 2
#3 2
# dtype: int64
# BlockIndex
# Block locations: array([0, 2], dtype=int32)
# Block lengths: array([1, 1], dtype=int32)
s.fill_value = np.nan
# ValueError: unable to set fill_value nan to int64 dtype
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13900/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13900/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13900.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13900",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13900.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13900"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13901
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13901/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13901/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13901/events
|
https://github.com/pandas-dev/pandas/issues/13901
| 169,349,923 |
MDU6SXNzdWUxNjkzNDk5MjM=
| 13,901 |
Groupby doesn't accept level=[0] for Index.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8440636?v=4",
"events_url": "https://api.github.com/users/starhel/events{/privacy}",
"followers_url": "https://api.github.com/users/starhel/followers",
"following_url": "https://api.github.com/users/starhel/following{/other_user}",
"gists_url": "https://api.github.com/users/starhel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/starhel",
"id": 8440636,
"login": "starhel",
"node_id": "MDQ6VXNlcjg0NDA2MzY=",
"organizations_url": "https://api.github.com/users/starhel/orgs",
"received_events_url": "https://api.github.com/users/starhel/received_events",
"repos_url": "https://api.github.com/users/starhel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/starhel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/starhel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/starhel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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-08-04T11:11:55Z | 2016-09-22T10:34:46Z | 2016-09-22T10:34:46Z |
NONE
| null |
Today I've found weird behaviour of level parameter of groupby. I need to groupby two dataframes by index and this code is working as long as I'm using Multiindex.
``` python
index1 = pandas.Index([1,2,3,4,5])
index2 = pandas.Index([1,2,3,4,5])
first = pandas.DataFrame({'a':[1,2,3,4,5]}, index=index1)
second = df2 = pandas.DataFrame({'a':[2,3,4,5,6]}, index=index2)
pandas.concat([first, second]).groupby(level=range(first.index.nlevels)).min()
```
Unfortunately when I'm using simple Index I get:
```
ValueError: level > 0 only valid with MultiIndex
```
In other way if I passed 0 instead of [0], everything is working properly. It's weird and cause that it's hard to write reusable code.
#### INSTALLED VERSIONS
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-42-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 20.3
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.4.1
pytz: 2016.4
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: 1.1.2
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: 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/13901/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13901/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13902
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13902/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13902/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13902/events
|
https://github.com/pandas-dev/pandas/issues/13902
| 169,393,144 |
MDU6SXNzdWUxNjkzOTMxNDQ=
| 13,902 |
ENH: Faster merge_asof() through a single-pass algo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
}
|
[
{
"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 |
[] | null | 4 | 2016-08-04T14:48:45Z | 2016-08-08T13:42:05Z | 2016-08-08T13:42:05Z |
CONTRIBUTOR
| null |
Out of curiosity, I took a crack at a single-pass `merge_asof()`. My sample passes the existing regression tests but is "wrong" in that it works only for a single object-type "by" parameter. I use `PyObjectHashTable` while scanning through the right DataFrame to cache the most recently found row for each "by" object.
I could add a little type differentiation if there is interest. I see that Tempita is getting some use in pandas. The main question is whether I can use multiple columns in the "by" parameter, which would be useful for matching things like `['ticker', 'exchange']`. Still investigating.
```
$ asv continuous master -b "join_merge.merge_asof_*"
· Creating environments
· Discovering benchmarks
·· Uninstalling from conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
·· Installing into conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt..
· Running 4 total benchmarks (2 commits * 1 environments * 2 benchmarks)
[ 0.00%] · For pandas commit hash c4302949:
[ 0.00%] ·· Building for conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt..
[ 0.00%] ·· Benchmarking conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 25.00%] ··· Running join_merge.merge_asof_by.time_merge_asof_by 41.07ms
[ 50.00%] ··· Running join_merge.merge_asof_noby.time_merge_asof_noby 12.90ms
[ 50.00%] · For pandas commit hash 97de42ab:
[ 50.00%] ·· Building for conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt..
[ 50.00%] ·· Benchmarking conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 75.00%] ··· Running join_merge.merge_asof_by.time_merge_asof_by 608.08ms
[100.00%] ··· Running join_merge.merge_asof_noby.time_merge_asof_noby 81.03ms
before after ratio
[97de42ab] [c4302949]
- 81.03ms 12.90ms 0.16 join_merge.merge_asof_noby.time_merge_asof_noby
- 608.08ms 41.07ms 0.07 join_merge.merge_asof_by.time_merge_asof_by
SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY.
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13902/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13902/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13903
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13903/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13903/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13903/events
|
https://github.com/pandas-dev/pandas/pull/13903
| 169,394,177 |
MDExOlB1bGxSZXF1ZXN0ODAwOTI1MTQ=
| 13,903 |
ENH: Faster merge_asof() performs a single pass when joining tables (#13902)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
}
|
[
{
"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"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 9 | 2016-08-04T14:52:49Z | 2016-08-08T12:47:12Z | 2016-08-08T12:46:12Z |
CONTRIBUTOR
| null |
This version passes existing regression tests but is ultimately wrong
because it requires the "by" column to be a single object. A proper version
would handle int (and possily float) columns through type differentiation.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13903/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13903/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13903.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13903",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13903.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13903"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13904
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13904/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13904/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13904/events
|
https://github.com/pandas-dev/pandas/issues/13904
| 169,405,579 |
MDU6SXNzdWUxNjk0MDU1Nzk=
| 13,904 |
Example of High Memory Usage of MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9703332?v=4",
"events_url": "https://api.github.com/users/PeterKucirek/events{/privacy}",
"followers_url": "https://api.github.com/users/PeterKucirek/followers",
"following_url": "https://api.github.com/users/PeterKucirek/following{/other_user}",
"gists_url": "https://api.github.com/users/PeterKucirek/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PeterKucirek",
"id": 9703332,
"login": "PeterKucirek",
"node_id": "MDQ6VXNlcjk3MDMzMzI=",
"organizations_url": "https://api.github.com/users/PeterKucirek/orgs",
"received_events_url": "https://api.github.com/users/PeterKucirek/received_events",
"repos_url": "https://api.github.com/users/PeterKucirek/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PeterKucirek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PeterKucirek/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PeterKucirek"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": 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"
}
| 26 | 2016-08-04T15:39:32Z | 2020-09-02T17:02:43Z | 2017-02-15T15:25:57Z |
NONE
| null |
This is a dupe of #1752, in which @jreback recommended a new issue be opened. I have a (hopefully) reproduce-able example which shows how using MultiIndex can explode RAM usage.
At the top I define a function to get the memory of the current Python process. This will be called as I create arrays to get the "true" space of each object.
``` python
import numpy as np
import pandas as pd
import os
import psutil
import numba as nb
def print_mem():
proc = psutil.Process(os.getpid())
print proc.memory_info()[0] / float(2**20), "MB"
print_mem()
>> 74.20703125 MB
```
I need some functions to construct a plausible MultiIndex which matches roughly the actual data I'm using.
``` python
@nb.jit(nopython=True, nogil=True)
def nbf_number_new_level(repetitions):
assert len(repetitions.shape) == 1
n = repetitions.sum()
ret = np.zeros(shape=n, dtype=np.uint64)
i = 0
for j in range(len(repetitions)):
n_repetitions = repetitions[j]
c = 0
for k in range(n_repetitions):
ret[i] = c
c += 1; i += 1
return ret
def expand_index(idx, repetitions, new_name=None):
assert len(idx) == len(repetitions), "Index and repetitions must be the same length"
repetitions = np.array(repetitions)
assert np.all(repetitions > 0), "All repetitions must be > 0"
names = list(idx.names) if isinstance(idx, pd.MultiIndex) else [idx.name]
names.append(new_name)
new_level_value = nbf_number_new_level(repetitions)
value_arrays = [idx.get_level_values(i).repeat(repetitions) for i in range(idx.nlevels)] \
if isinstance(idx, pd.MultiIndex) else \
[idx.values.repeat(repetitions)]
value_arrays.append(new_level_value)
ret = pd.MultiIndex.from_arrays(value_arrays)
ret.names = names
return ret
```
Constructing the actual MultiIndex:
``` python
randomizer = np.random.RandomState(12345)
nhousehholds = 200000
hhids = pd.Index(np.arange(nhousehholds), name='hhid')
print nhousehholds, "households"
print_mem()
>>200000 households
>>83.95703125 MB
persons_per_hh = randomizer.randint(1, 9, size=nhousehholds)
person_ids = expand_index(hhids, persons_per_hh, new_name='pid')
print len(person_ids), "persons"
print_mem()
>>898254 persons
>>105.6953125 MB
tours_per_person = randomizer.choice([1, 2, 3], size=len(person_ids), replace=True, p=[0.85, 0.1, 0.05])
tour_ids = expand_index(person_ids, tours_per_person, new_name='tour_id')
print len(tour_ids), "tours"
print_mem()
>>1078155 tours
>>121.734375 MB
trips_per_tour = randomizer.choice([2,3,4,5], size=len(tour_ids), replace=True, p=[0.6, 0.25, 0.1, 0.05])
trip_ids = expand_index(tour_ids, trips_per_tour, new_name='trip_id')
print len(trip_ids), "trips"
print_mem()
trips = pd.DataFrame(index=trip_ids)
trips['origin'] = randomizer.randint(101, 200, size=len(trips))
trips['destination'] = randomizer.randint(101, 200, size=len(trips))
print_mem()
>>2803731 trips
>>150.17578125 MB
>>171.70703125 MB
```
Based on this, my fake trip table is taking up about 171.7 - 121.7 = 50MB of RAM. I haven't done any fancy indexing, just initialized the table. But, when I call `trips.info()` (which appears to instantiate the array of PyTuples) this happens:
``` python
print trips.info()
print_mem()
>><class 'pandas.core.frame.DataFrame'>
MultiIndex: 2803731 entries, (0, 0, 0, 0) to (199999, 0, 0, 1)
Data columns (total 2 columns):
origin int32
destination int32
dtypes: int32(2)
memory usage: 42.8+ MB
None
723.64453125 MB
```
My process's memory usage balloons to 723MB!. Doing the math, the cached indexer takes up 723.6 - 171.7 = 551 MB, a **tenfold** increase over the actual DataFrame!
For this fake dataset, this is not so much of a problem, but my production code is 20x the size and I soak up 27 GB of RAM when I as much as look at my trips table.
Any performance tips would be appreciated; the only thing I can think of right now is "don't use a MultiIndex". It sounds like a 'proper' fix for this lies deep in the indexing internals which is far above my pay grade. But I wanted to at least log this issue with the community.
Output of `pd.show_versions()`:
```
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 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.4
pip: 8.1.1
setuptools: 0.6c11
Cython: 0.22
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 3.0.0
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.1.1
numexpr: 2.5.1
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: 0.6.7
lxml: 3.4.2
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.9
pymysql: None
psycopg2: None
jinja2: 2.7.3
boto: 2.36.0
pandas_datareader: 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/13904/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13904/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13905
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13905/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13905/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13905/events
|
https://github.com/pandas-dev/pandas/issues/13905
| 169,413,247 |
MDU6SXNzdWUxNjk0MTMyNDc=
| 13,905 |
DatetimeIndex + TimeDelta gives wrong results when timezone is set
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4",
"events_url": "https://api.github.com/users/jzwinck/events{/privacy}",
"followers_url": "https://api.github.com/users/jzwinck/followers",
"following_url": "https://api.github.com/users/jzwinck/following{/other_user}",
"gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jzwinck",
"id": 1216791,
"login": "jzwinck",
"node_id": "MDQ6VXNlcjEyMTY3OTE=",
"organizations_url": "https://api.github.com/users/jzwinck/orgs",
"received_events_url": "https://api.github.com/users/jzwinck/received_events",
"repos_url": "https://api.github.com/users/jzwinck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jzwinck"
}
|
[
{
"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"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 1 | 2016-08-04T16:11:28Z | 2018-01-02T11:23:50Z | 2018-01-02T11:23:50Z |
CONTRIBUTOR
| null |
When I add a time delta to a DatetimeIndex which is tz-aware, the results appear as UTC, but sometimes claim to be in the original non-UTC timezone.
#### Code
```
import pandas as pd
index = pd.DatetimeIndex(['2016-06-28 05:30', '2016-06-28 05:31'], dtype='datetime64[ns, America/Chicago]')
offset = pd.Series(['00:00:05', '00:00:05'], dtype='timedelta64[ns]', index=index)
print(index + offset)
print(index + offset.values)
```
#### Actual Output
```
2016-06-28 05:30:00-05:00 2016-06-28 10:30:05
2016-06-28 05:31:00-05:00 2016-06-28 10:31:05
dtype: datetime64[ns]
DatetimeIndex(['2016-06-28 10:30:05-05:00', '2016-06-28 10:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None)
```
#### Expected Output
```
2016-06-28 05:30:00-05:00 2016-06-28 05:30:05-05:00
2016-06-28 05:31:00-05:00 2016-06-28 05:31:05-05:00
dtype: datetime64[ns]
DatetimeIndex(['2016-06-28 05:30:05-05:00', '2016-06-28 05:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None)
```
Note however that this does print the expected result:
```
print(index + pd.to_timedelta('00:00:05'))
```
I'm using Pandas 0.18.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/13905/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13905/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13906
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13906/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13906/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13906/events
|
https://github.com/pandas-dev/pandas/issues/13906
| 169,420,431 |
MDU6SXNzdWUxNjk0MjA0MzE=
| 13,906 |
Chained groupby-resample object raises error when used twice with different column selector
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20843277?v=4",
"events_url": "https://api.github.com/users/jer0nim0/events{/privacy}",
"followers_url": "https://api.github.com/users/jer0nim0/followers",
"following_url": "https://api.github.com/users/jer0nim0/following{/other_user}",
"gists_url": "https://api.github.com/users/jer0nim0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jer0nim0",
"id": 20843277,
"login": "jer0nim0",
"node_id": "MDQ6VXNlcjIwODQzMjc3",
"organizations_url": "https://api.github.com/users/jer0nim0/orgs",
"received_events_url": "https://api.github.com/users/jer0nim0/received_events",
"repos_url": "https://api.github.com/users/jer0nim0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jer0nim0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jer0nim0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jer0nim0"
}
|
[
{
"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 | 1 | 2016-08-04T16:44:23Z | 2016-08-04T16:49:45Z | 2016-08-04T16:49:41Z |
NONE
| null |
Going from 0.18.0 to 0.18.1, a chained groupby - resample object can now only be used once. A second similar operation raises a KeyError when a column that is not used in the first operation is selected.
#### Code Sample, a copy-pastable example if possible
```
N = 5
df = pd.DataFrame({'a': np.ones(N), 'b': np.ones(N), 'c': np.ones(N)},
index=pd.date_range('2016-01-01', periods=N))
group = df.groupby('a').resample('1D')
# OK:
print group[['b']].count()
# Error:
print group[['c']].count()
```
#### Actual Output
```
b
a
1.0 2016-01-01 1
2016-01-02 1
2016-01-03 1
2016-01-04 1
2016-01-05 1
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-101-875a81207428> in <module>()
----> 1 group[['c']].count()
C:\Miniconda2\lib\site-packages\pandas\tseries\resample.pyc in __getitem__(self, key)
174 def __getitem__(self, key):
175 try:
--> 176 return super(Resampler, self).__getitem__(key)
177 except (KeyError, com.AbstractMethodError):
178
C:\Miniconda2\lib\site-packages\pandas\core\base.pyc in __getitem__(self, key)
331 bad_keys = list(set(key).difference(self.obj.columns))
332 raise KeyError("Columns not found: %s"
--> 333 % str(bad_keys)[1:-1])
334 return self._gotitem(list(key), ndim=2)
335
KeyError: "Columns not found: 'c'"
```
#### Expected Output
```
b
a
1.0 2016-01-01 1
2016-01-02 1
2016-01-03 1
2016-01-04 1
2016-01-05 1
c
a
1.0 2016-01-01 1
2016-01-02 1
2016-01-03 1
2016-01-04 1
2016-01-05 1
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 23.0.0
Cython: None
numpy: 1.11.1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 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/13906/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13906/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13907
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/13907/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13907/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/13907/events
|
https://github.com/pandas-dev/pandas/pull/13907
| 169,432,861 |
MDExOlB1bGxSZXF1ZXN0ODAxMTk5Nzk=
| 13,907 |
ENH: Accept list as level for groupby in non-MultiIndexed objects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7795093?v=4",
"events_url": "https://api.github.com/users/agraboso/events{/privacy}",
"followers_url": "https://api.github.com/users/agraboso/followers",
"following_url": "https://api.github.com/users/agraboso/following{/other_user}",
"gists_url": "https://api.github.com/users/agraboso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/agraboso",
"id": 7795093,
"login": "agraboso",
"node_id": "MDQ6VXNlcjc3OTUwOTM=",
"organizations_url": "https://api.github.com/users/agraboso/orgs",
"received_events_url": "https://api.github.com/users/agraboso/received_events",
"repos_url": "https://api.github.com/users/agraboso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/agraboso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agraboso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/agraboso"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 9 | 2016-08-04T17:44:14Z | 2016-09-22T10:34:50Z | 2016-09-22T10:34:46Z |
CONTRIBUTOR
| null |
- [x] closes #13901
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13907/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/13907/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/13907.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13907",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13907.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13907"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.