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/14408
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14408/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14408/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14408/events
|
https://github.com/pandas-dev/pandas/issues/14408
| 182,653,997 |
MDU6SXNzdWUxODI2NTM5OTc=
| 14,408 |
PERF: to_json very slow with lines=True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/135613?v=4",
"events_url": "https://api.github.com/users/joshowen/events{/privacy}",
"followers_url": "https://api.github.com/users/joshowen/followers",
"following_url": "https://api.github.com/users/joshowen/following{/other_user}",
"gists_url": "https://api.github.com/users/joshowen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshowen",
"id": 135613,
"login": "joshowen",
"node_id": "MDQ6VXNlcjEzNTYxMw==",
"organizations_url": "https://api.github.com/users/joshowen/orgs",
"received_events_url": "https://api.github.com/users/joshowen/received_events",
"repos_url": "https://api.github.com/users/joshowen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshowen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshowen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshowen"
}
|
[
{
"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": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 1 | 2016-10-12T22:53:20Z | 2016-10-15T20:02:41Z | 2016-10-15T20:02:41Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
N = 100000
C = 5
In [6]: df = DataFrame(dict([('float{0}'.format(i), np.random.randn(N)) for i in range(C)]))
In [7]: df.to_json('foo.json',orient='records',lines=True)
In [8]: %timeit df.to_json('foo.json',orient='records',lines=True)
1 loop, best of 3: 3.66 s per loop
In [9]: %timeit df.to_json('foo.json',orient='records')
10 loops, best of 3: 98.8 ms per loop
```
As discussed in https://github.com/pydata/pandas/pull/14391
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14408/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14408/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14409
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14409/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14409/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14409/events
|
https://github.com/pandas-dev/pandas/pull/14409
| 182,661,622 |
MDExOlB1bGxSZXF1ZXN0ODkxMTQ1NDU=
| 14,409 |
DOC: pydata/pandas -> pandas-dev/pandas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-12T23:46:34Z | 2016-10-13T19:59:31Z | 2016-10-13T19:59:21Z |
CONTRIBUTOR
| null |
as main repo was updated
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14409/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14409/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14409.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14409",
"merged_at": "2016-10-13T19:59:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14409.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14409"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14410
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14410/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14410/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14410/events
|
https://github.com/pandas-dev/pandas/issues/14410
| 182,661,883 |
MDU6SXNzdWUxODI2NjE4ODM=
| 14,410 |
ENH: Do not exclude Boolean columns from DataFrame.describe()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8196363?v=4",
"events_url": "https://api.github.com/users/dragonator4/events{/privacy}",
"followers_url": "https://api.github.com/users/dragonator4/followers",
"following_url": "https://api.github.com/users/dragonator4/following{/other_user}",
"gists_url": "https://api.github.com/users/dragonator4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragonator4",
"id": 8196363,
"login": "dragonator4",
"node_id": "MDQ6VXNlcjgxOTYzNjM=",
"organizations_url": "https://api.github.com/users/dragonator4/orgs",
"received_events_url": "https://api.github.com/users/dragonator4/received_events",
"repos_url": "https://api.github.com/users/dragonator4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragonator4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragonator4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragonator4"
}
|
[
{
"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 |
[] |
{
"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-10-12T23:48:42Z | 2016-10-12T23:57:48Z | 2016-10-12T23:57:12Z |
NONE
| null |
Sometimes, it is desired to know the percentage of true values in a Boolean column. Like when a DataFrame is composed of results from fitting many models, knowing up front the distribution of number of successful fits is helpful.
```
In [1]: df = pd.DataFrame({'c1' : list('abcdef'),
'c2' : [True, False, True, True, False, False],
'c3' : np.random.randn(6),
'c4' : np.arange(6)})
df.describe()
Out[1]:
c3 c4
count 6.000000 6.000000
mean 0.088425 2.500000
std 1.633860 1.870829
min -2.337804 0.000000
25% -0.973194 1.250000
50% 0.487471 2.500000
75% 1.231870 3.750000
max 1.873493 5.000000
```
#### Expected Output
```
In [2]: df['c2'] = df['c2'].astype('int64')
df.describe()
Out[2]:
c2 c3 c4
count 6.000000 6.000000 6.000000
mean 0.500000 0.088425 2.500000
std 0.547723 1.633860 1.870829
min 0.000000 -2.337804 0.000000
25% 0.000000 -0.973194 1.250000
50% 0.500000 0.487471 2.500000
75% 1.000000 1.231870 3.750000
max 1.000000 1.873493 5.000000
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14410/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14410/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14411
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14411/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14411/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14411/events
|
https://github.com/pandas-dev/pandas/issues/14411
| 182,692,768 |
MDU6SXNzdWUxODI2OTI3Njg=
| 14,411 |
Behavior change in Index.equals from 0.18.0 to 0.19.0 -- intentional?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609896?v=4",
"events_url": "https://api.github.com/users/njsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/njsmith/followers",
"following_url": "https://api.github.com/users/njsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/njsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/njsmith",
"id": 609896,
"login": "njsmith",
"node_id": "MDQ6VXNlcjYwOTg5Ng==",
"organizations_url": "https://api.github.com/users/njsmith/orgs",
"received_events_url": "https://api.github.com/users/njsmith/received_events",
"repos_url": "https://api.github.com/users/njsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/njsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/njsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/njsmith"
}
|
[
{
"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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
}
| 2 | 2016-10-13T04:22:42Z | 2019-06-28T19:54:50Z | 2019-06-28T19:54:50Z |
NONE
| null |
Traditionally, we have:
``` python
In [3]: pandas.__version__
Out[3]: '0.18.0'
In [4]: pandas.Index([1, 2]).equals([1, 2])
Out[4]: True
```
But this changed
``` python
In [4]: pandas.__version__
Out[4]: '0.19.0'
In [5]: pandas.Index([1, 2]).equals([1, 2])
Out[5]: False
```
Looks like it might not be intentional so FYI.
(Noticed because it broke a few tests in the patsy test suite.)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14411/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14411/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14412
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14412/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14412/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14412/events
|
https://github.com/pandas-dev/pandas/pull/14412
| 182,693,040 |
MDExOlB1bGxSZXF1ZXN0ODkxMzQ4OTE=
| 14,412 |
Bug: Made it so that 0 was included in uint8
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20782321?v=4",
"events_url": "https://api.github.com/users/verhalenn/events{/privacy}",
"followers_url": "https://api.github.com/users/verhalenn/followers",
"following_url": "https://api.github.com/users/verhalenn/following{/other_user}",
"gists_url": "https://api.github.com/users/verhalenn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/verhalenn",
"id": 20782321,
"login": "verhalenn",
"node_id": "MDQ6VXNlcjIwNzgyMzIx",
"organizations_url": "https://api.github.com/users/verhalenn/orgs",
"received_events_url": "https://api.github.com/users/verhalenn/received_events",
"repos_url": "https://api.github.com/users/verhalenn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/verhalenn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/verhalenn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/verhalenn"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-13T04:25:29Z | 2016-10-22T08:49:42Z | 2016-10-21T23:55:53Z |
NONE
| null |
- [ ] closes #14401
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Decided to restart. Sorry for the inconvenience. -> #14472
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14412/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14412/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14412.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14412",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14412.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14412"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14413
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14413/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14413/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14413/events
|
https://github.com/pandas-dev/pandas/issues/14413
| 182,717,424 |
MDU6SXNzdWUxODI3MTc0MjQ=
| 14,413 |
t
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19704628?v=4",
"events_url": "https://api.github.com/users/pinkert/events{/privacy}",
"followers_url": "https://api.github.com/users/pinkert/followers",
"following_url": "https://api.github.com/users/pinkert/following{/other_user}",
"gists_url": "https://api.github.com/users/pinkert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pinkert",
"id": 19704628,
"login": "pinkert",
"node_id": "MDQ6VXNlcjE5NzA0NjI4",
"organizations_url": "https://api.github.com/users/pinkert/orgs",
"received_events_url": "https://api.github.com/users/pinkert/received_events",
"repos_url": "https://api.github.com/users/pinkert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pinkert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pinkert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pinkert"
}
|
[] |
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"
}
| 0 | 2016-10-13T07:41:20Z | 2016-10-13T07:49:57Z | 2016-10-13T07:45:11Z |
NONE
| null |
#### A small, complete example of the issue
``` python
# Your code here
```
#### Expected Output
#### Output of `pd.show_versions()`
<details>
# Paste the output here
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14413/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14413/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14414
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14414/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14414/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14414/events
|
https://github.com/pandas-dev/pandas/issues/14414
| 182,780,727 |
MDU6SXNzdWUxODI3ODA3Mjc=
| 14,414 |
Cannot initialize a data frame with None
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/576089?v=4",
"events_url": "https://api.github.com/users/jbao/events{/privacy}",
"followers_url": "https://api.github.com/users/jbao/followers",
"following_url": "https://api.github.com/users/jbao/following{/other_user}",
"gists_url": "https://api.github.com/users/jbao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbao",
"id": 576089,
"login": "jbao",
"node_id": "MDQ6VXNlcjU3NjA4OQ==",
"organizations_url": "https://api.github.com/users/jbao/orgs",
"received_events_url": "https://api.github.com/users/jbao/received_events",
"repos_url": "https://api.github.com/users/jbao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbao"
}
|
[
{
"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-10-13T12:51:03Z | 2016-10-13T13:13:39Z | 2016-10-13T13:13:29Z |
NONE
| null |
Hi all,
just figured out that the following code
```
pd.DataFrame({'x':None}, index=[0])
```
works in 0.18.1 but not 0.19.0, is that the expected behavior? Thanks!
Best,
Jie
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14414/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14414/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14415
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14415/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14415/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14415/events
|
https://github.com/pandas-dev/pandas/issues/14415
| 182,807,450 |
MDU6SXNzdWUxODI4MDc0NTA=
| 14,415 |
Inconsistent behavior in Timestamp for large negative values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 2 | 2016-10-13T14:35:43Z | 2016-10-20T13:46:01Z | 2016-10-20T13:46:01Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
# Your code here
In [1]: import numpy as np; import pandas as pd
In [3]: pd.Timestamp(np.iinfo(np.int64).min + 80000000000000)
Out[3]: Timestamp('2262-04-11 22:26:03.145224192')
In [4]: pd.Timestamp(np.iinfo(np.int64).min + 90000000000000)
Out[4]: Timestamp('1677-09-22 01:12:43.145224192')
In [5]: pd.Timestamp(np.iinfo(np.int64).min + 85000000000000)
---------------------------------------------------------------------------
OutOfBoundsDatetime Traceback (most recent call last)
<ipython-input-5-47bf9ab2ad0f> in <module>()
----> 1 pd.Timestamp(np.iinfo(np.int64).min + 85000000000000)
pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:9932)()
pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:26453)()
pandas/tslib.pyx in pandas.tslib._check_dts_bounds (pandas/tslib.c:30034)()
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 2262-04-11 23:49:23
```
#### Expected Output
I would expect all the values listed above to evaluate to dates in the 1600s. The behavior here looks like there might be a signed integer overflow happening in C somewhere, which is a little nerve-wracking since that's undefined behavior unless pandas is compiled with `-fwrapv`.
#### Output of `pd.show_versions()`
<details>
# Paste the output here
In [8]: pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-16-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 28.3.0
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14415/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14415/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14416
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14416/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14416/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14416/events
|
https://github.com/pandas-dev/pandas/pull/14416
| 182,807,873 |
MDExOlB1bGxSZXF1ZXN0ODkyMTUyMDM=
| 14,416 |
Concat with axis rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7232535?v=4",
"events_url": "https://api.github.com/users/brandonmburroughs/events{/privacy}",
"followers_url": "https://api.github.com/users/brandonmburroughs/followers",
"following_url": "https://api.github.com/users/brandonmburroughs/following{/other_user}",
"gists_url": "https://api.github.com/users/brandonmburroughs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brandonmburroughs",
"id": 7232535,
"login": "brandonmburroughs",
"node_id": "MDQ6VXNlcjcyMzI1MzU=",
"organizations_url": "https://api.github.com/users/brandonmburroughs/orgs",
"received_events_url": "https://api.github.com/users/brandonmburroughs/received_events",
"repos_url": "https://api.github.com/users/brandonmburroughs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brandonmburroughs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brandonmburroughs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brandonmburroughs"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 6 | 2016-10-13T14:37:04Z | 2016-10-19T13:50:07Z | 2016-10-15T19:59:53Z |
CONTRIBUTOR
| null |
- [x] closes #14369
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
I closed #14389 and opened with one in hopes of the new commits showing up.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14416/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14416/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14416.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14416",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14416.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14416"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14417
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14417/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14417/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14417/events
|
https://github.com/pandas-dev/pandas/issues/14417
| 182,862,538 |
MDU6SXNzdWUxODI4NjI1Mzg=
| 14,417 |
BUG: index.max() not matching index.levels[0].max() for multiindex on sliced dataframe
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8318425?v=4",
"events_url": "https://api.github.com/users/DBCerigo/events{/privacy}",
"followers_url": "https://api.github.com/users/DBCerigo/followers",
"following_url": "https://api.github.com/users/DBCerigo/following{/other_user}",
"gists_url": "https://api.github.com/users/DBCerigo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DBCerigo",
"id": 8318425,
"login": "DBCerigo",
"node_id": "MDQ6VXNlcjgzMTg0MjU=",
"organizations_url": "https://api.github.com/users/DBCerigo/orgs",
"received_events_url": "https://api.github.com/users/DBCerigo/received_events",
"repos_url": "https://api.github.com/users/DBCerigo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DBCerigo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DBCerigo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DBCerigo"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2016-10-13T18:19:09Z | 2016-10-13T19:01:54Z | 2016-10-13T19:01:39Z |
NONE
| null |
Small example:
``` python
df = pd.DataFrame(index=pd.MultiIndex.from_product([['A','B','C'],['a','b']])
```
Then:
``` python
df.loc[:'B'].index.max()
```
gives `('B', 'b')` as expected.
But:
``` python
df.loc[:'B'].index.levels[0].max()
```
gives `'C'` in conflict with the previous result.
#### Expected Functionality
The max index of each level matches the max index of the full multiindex
(Apologies if this is not actually intended functionality)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14417/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14417/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14418
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14418/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14418/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14418/events
|
https://github.com/pandas-dev/pandas/issues/14418
| 182,874,273 |
MDU6SXNzdWUxODI4NzQyNzM=
| 14,418 |
read_csv and others derived from _read close user-provided filehandles
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3976804?v=4",
"events_url": "https://api.github.com/users/ebolyen/events{/privacy}",
"followers_url": "https://api.github.com/users/ebolyen/followers",
"following_url": "https://api.github.com/users/ebolyen/following{/other_user}",
"gists_url": "https://api.github.com/users/ebolyen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ebolyen",
"id": 3976804,
"login": "ebolyen",
"node_id": "MDQ6VXNlcjM5NzY4MDQ=",
"organizations_url": "https://api.github.com/users/ebolyen/orgs",
"received_events_url": "https://api.github.com/users/ebolyen/received_events",
"repos_url": "https://api.github.com/users/ebolyen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ebolyen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ebolyen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ebolyen"
}
|
[
{
"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": "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": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 12 | 2016-10-13T19:09:25Z | 2020-10-08T12:35:07Z | 2016-11-02T11:27:40Z |
NONE
| null |
I believe the "regression" was introduced on [this line](https://github.com/pandas-dev/pandas/commit/4a805216d99b37955c97625d304980eff10cab56#diff-777d7549579ddc0c6e67596ad87e0d27R1447). That being said, tracking which filehandles a library owns vs what a user provided is _hard_, and I can't fault you guys if this is considered correct behavior from now on. Just wanted to bring it to your attention. Thanks!
#### A small, complete example of the issue
``` pytb
In [1]: import pandas as pd
In [2]: import io
In [3]: fh = io.StringIO('a,b\n1,2\n')
In [4]: fh.closed
Out[4]: False
In [5]: pd.read_csv(fh)
Out[5]:
a b
0 1 2
In [6]: fh.closed
Out[6]: True
```
#### Expected Output
``` pytb
In [6]: fh.closed
Out[6]: False
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.4.4.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-96-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 20.1.1
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5a2
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14418/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14418/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14419
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14419/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14419/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14419/events
|
https://github.com/pandas-dev/pandas/pull/14419
| 182,889,591 |
MDExOlB1bGxSZXF1ZXN0ODkyNzQyNDI=
| 14,419 |
Period factorization
|
{
"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": "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": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 2 | 2016-10-13T20:17:07Z | 2016-10-15T19:27:19Z | 2016-10-15T19:27:11Z |
CONTRIBUTOR
| null |
- [x] closes #14338
- [x] tests not needed / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
asv
```
before after ratio
[c41c6511] [96b364a4]
- 2.44s 46.28ms 0.02 groupby.groupby_period.time_groupby_sum
```
Continuation of #14348
|
{
"+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/14419/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14419/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14419.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14419",
"merged_at": "2016-10-15T19:27:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14419.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14419"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14420
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14420/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14420/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14420/events
|
https://github.com/pandas-dev/pandas/issues/14420
| 182,899,198 |
MDU6SXNzdWUxODI4OTkxOTg=
| 14,420 |
DataFrame.groupby(level=...).rolling(n).mean()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11525074?v=4",
"events_url": "https://api.github.com/users/691175002/events{/privacy}",
"followers_url": "https://api.github.com/users/691175002/followers",
"following_url": "https://api.github.com/users/691175002/following{/other_user}",
"gists_url": "https://api.github.com/users/691175002/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/691175002",
"id": 11525074,
"login": "691175002",
"node_id": "MDQ6VXNlcjExNTI1MDc0",
"organizations_url": "https://api.github.com/users/691175002/orgs",
"received_events_url": "https://api.github.com/users/691175002/received_events",
"repos_url": "https://api.github.com/users/691175002/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/691175002/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/691175002/subscriptions",
"type": "User",
"url": "https://api.github.com/users/691175002"
}
|
[
{
"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": "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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-13T20:58:07Z | 2016-10-13T21:12:13Z | 2016-10-13T21:11:55Z |
NONE
| null |
Using the groupby().rolling() object seems to duplicate a level of the index.
```
In [9]: d.groupby(level='ticker').rolling(30).mean()
Out[9]:
ticker ticker date
BMO BMO 2006-01-02 NaN
2006-01-03 NaN
TD TD 2016-09-22 57.139340
2016-09-23 57.171864
In [10]: d.groupby(level='ticker').apply(pd.rolling_mean, 30)
Out[10]:
ticker date
BMO 2006-01-02 NaN
2006-01-03 NaN
TD 2016-09-22 57.139340
2016-09-23 57.171864
In [11]: d.groupby(level='ticker').apply(lambda x: x.rolling(30).mean())
Out[11]:
ticker date
BMO 2006-01-02 NaN
2006-01-03 NaN
TD 2016-09-22 57.139340
2016-09-23 57.171864
```
I would expect the output to be the same in all three cases.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14420/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14420/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14421
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14421/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14421/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14421/events
|
https://github.com/pandas-dev/pandas/issues/14421
| 182,928,675 |
MDU6SXNzdWUxODI5Mjg2NzU=
| 14,421 |
cryptic DataFrame.agg error when using dictionaries
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5025392?v=4",
"events_url": "https://api.github.com/users/myyc/events{/privacy}",
"followers_url": "https://api.github.com/users/myyc/followers",
"following_url": "https://api.github.com/users/myyc/following{/other_user}",
"gists_url": "https://api.github.com/users/myyc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/myyc",
"id": 5025392,
"login": "myyc",
"node_id": "MDQ6VXNlcjUwMjUzOTI=",
"organizations_url": "https://api.github.com/users/myyc/orgs",
"received_events_url": "https://api.github.com/users/myyc/received_events",
"repos_url": "https://api.github.com/users/myyc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/myyc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/myyc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/myyc"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": 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"
}
| 18 | 2016-10-13T23:23:18Z | 2016-10-14T19:33:06Z | 2016-10-13T23:30:19Z |
NONE
| null |
Not sure if this is a bug. This works:
``` python
(
pd.DataFrame({"u": [2,1,4,2,5], "a": ["a", "a", "b", "a", "b"]})
.groupby("a")
.agg(lambda x: np.mean(x)/np.std(x))
)
```
while this returns an error:
``` python
(
pd.DataFrame({"u": [2,1,4,2,5], "a": ["a", "a", "b", "a", "b"]})
.groupby("a")
.agg({"blah": lambda x: np.mean(x)/np.std(x)})
)
```
error: KeyError: 'blah'
<details>
## LONG ERROR MESSAGE
``````
KeyError Traceback (most recent call last)
/opt/local/lib/python3.6/site-packages/pandas/indexes/base.py in get_loc(self, key, method, tolerance)
2103 try:
-> 2104 return self._engine.get_loc(key)
2105 except KeyError:
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4160)()
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4024)()
pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13161)()
pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13115)()
KeyError: 'blah'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-100-4f93bf630ec4> in <module>()
2 pd.DataFrame({"u": [2,1,4,2,5], "a": ["a", "a", "b", "a", "b"]})
3 .groupby("a")
----> 4 .agg({"blah": lambda x: np.mean(x)/np.std(x)})
5 )
/opt/local/lib/python3.6/site-packages/pandas/core/groupby.py in aggregate(self, arg, *args, **kwargs)
3697 @Appender(SelectionMixin._agg_doc)
3698 def aggregate(self, arg, *args, **kwargs):
-> 3699 return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs)
3700
3701 agg = aggregate
/opt/local/lib/python3.6/site-packages/pandas/core/groupby.py in aggregate(self, arg, *args, **kwargs)
3195
3196 _level = kwargs.pop('_level', None)
-> 3197 result, how = self._aggregate(arg, _level=_level, *args, **kwargs)
3198 if how is None:
3199 return result
/opt/local/lib/python3.6/site-packages/pandas/core/base.py in _aggregate(self, arg, *args, **kwargs)
547
548 try:
--> 549 result = _agg(arg, _agg_1dim)
550 except SpecificationError:
551
/opt/local/lib/python3.6/site-packages/pandas/core/base.py in _agg(arg, func)
498 result = compat.OrderedDict()
499 for fname, agg_how in compat.iteritems(arg):
--> 500 result[fname] = func(fname, agg_how)
501 return result
502
/opt/local/lib/python3.6/site-packages/pandas/core/base.py in _agg_1dim(name, how, subset)
477 aggregate a 1-dim with how
478 """
--> 479 colg = self._gotitem(name, ndim=1, subset=subset)
480 if colg.ndim != 1:
481 raise SpecificationError("nested dictionary is ambiguous "
/opt/local/lib/python3.6/site-packages/pandas/core/groupby.py in _gotitem(self, key, ndim, subset)
3724 elif ndim == 1:
3725 if subset is None:
-> 3726 subset = self.obj[key]
3727 return SeriesGroupBy(subset, selection=key,
3728 grouper=self.grouper)
/opt/local/lib/python3.6/site-packages/pandas/core/frame.py in __getitem__(self, key)
2055 return self._getitem_multilevel(key)
2056 else:
-> 2057 return self._getitem_column(key)
2058
2059 def _getitem_column(self, key):
/opt/local/lib/python3.6/site-packages/pandas/core/frame.py in _getitem_column(self, key)
2062 # get column
2063 if self.columns.is_unique:
-> 2064 return self._get_item_cache(key)
2065
2066 # duplicate columns & possible reduce dimensionality
/opt/local/lib/python3.6/site-packages/pandas/core/generic.py in _get_item_cache(self, item)
1384 res = cache.get(item)
1385 if res is None:
-> 1386 values = self._data.get(item)
1387 res = self._box_item_values(item, values)
1388 cache[item] = res
/opt/local/lib/python3.6/site-packages/pandas/core/internals.py in get(self, item, fastpath)
3518
3519 if not isnull(item):
-> 3520 loc = self.items.get_loc(item)
3521 else:
3522 indexer = np.arange(len(self.items))[isnull(self.items)]
/opt/local/lib/python3.6/site-packages/pandas/indexes/base.py in get_loc(self, key, method, tolerance)
2104 return self._engine.get_loc(key)
2105 except KeyError:
-> 2106 return self._engine.get_loc(self._maybe_cast_indexer(key))
2107
2108 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4160)()
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4024)()
pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13161)()
pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13115)()
KeyError: 'blah'```
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.alpha.3
python-bits: 64
OS: Linux
OS-release: 3.14.32-xxxx-grs-ipv6-64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_IE.UTF-8
LOCALE: en_IE.UTF-8
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 28.3.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 2.0.0b3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
``````
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14421/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14421/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14422
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14422/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14422/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14422/events
|
https://github.com/pandas-dev/pandas/issues/14422
| 182,947,993 |
MDU6SXNzdWUxODI5NDc5OTM=
| 14,422 |
BUG: to_numeric doesn't work uint64 numbers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20782321?v=4",
"events_url": "https://api.github.com/users/verhalenn/events{/privacy}",
"followers_url": "https://api.github.com/users/verhalenn/followers",
"following_url": "https://api.github.com/users/verhalenn/following{/other_user}",
"gists_url": "https://api.github.com/users/verhalenn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/verhalenn",
"id": 20782321,
"login": "verhalenn",
"node_id": "MDQ6VXNlcjIwNzgyMzIx",
"organizations_url": "https://api.github.com/users/verhalenn/orgs",
"received_events_url": "https://api.github.com/users/verhalenn/received_events",
"repos_url": "https://api.github.com/users/verhalenn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/verhalenn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/verhalenn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/verhalenn"
}
|
[
{
"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-10-14T02:15:33Z | 2019-11-05T17:19:53Z | 2019-11-05T17:19:53Z |
NONE
| null |
uint64 isn't very well supported right now but something to consider.
``` python
In [10]: pd.to_numeric(pd.Series([0, 9223372036854775808]), downcast = 'unsigned')
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-10-6e8272095758> in <module>()
----> 1 pd.to_numeric(pd.Series([0, 9223372036854775808]), downcast = 'unsigned')
/home/verhalenn/Documents/Open-Source/pandas/pandas/tools/util.py in to_numeric(arg, errors, downcast)
193 coerce_numeric = False if errors in ('ignore', 'raise') else True
194 values = lib.maybe_convert_numeric(values, set(),
--> 195 coerce_numeric=coerce_numeric)
196
197 except Exception:
/home/verhalenn/Documents/Open-Source/pandas/pandas/src/inference.pyx in pandas.lib.maybe_convert_numeric (pandas/lib.c:53043)()
667 seen_float = True
668 elif util.is_integer_object(val):
--> 669 floats[i] = ints[i] = val
670 seen_int = True
671 elif util.is_bool_object(val):
OverflowError: Python int too large to convert to C long
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14422/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14422/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14423
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14423/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14423/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14423/events
|
https://github.com/pandas-dev/pandas/issues/14423
| 182,959,741 |
MDU6SXNzdWUxODI5NTk3NDE=
| 14,423 |
BUG: unwanted numeric coercion after groupby-apply
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1182613?v=4",
"events_url": "https://api.github.com/users/waqarmalik/events{/privacy}",
"followers_url": "https://api.github.com/users/waqarmalik/followers",
"following_url": "https://api.github.com/users/waqarmalik/following{/other_user}",
"gists_url": "https://api.github.com/users/waqarmalik/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/waqarmalik",
"id": 1182613,
"login": "waqarmalik",
"node_id": "MDQ6VXNlcjExODI2MTM=",
"organizations_url": "https://api.github.com/users/waqarmalik/orgs",
"received_events_url": "https://api.github.com/users/waqarmalik/received_events",
"repos_url": "https://api.github.com/users/waqarmalik/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/waqarmalik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/waqarmalik/subscriptions",
"type": "User",
"url": "https://api.github.com/users/waqarmalik"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-10-14T04:13:53Z | 2017-03-16T12:08:59Z | 2017-03-16T12:08:59Z |
NONE
| null |
xref #14873 (boolean casts)
xref #14849 (datetime)
#### A small, complete example of the issue
``` python
import pandas as pd
def predictions(tool):
out = pd.Series(index=['p1', 'p2', 'useTime'], dtype=object)
if 'step1' in list(tool.State):
out['p1'] = str(tool[tool.State == 'step1'].Machine.values[0])
if 'step2' in list(tool.State):
out['p2'] = str(tool[tool.State == 'step2'].Machine.values[0])
out['useTime'] = str(tool[tool.State == 'step2'].oTime.values[0])
return out
df1 = pd.DataFrame({'Key': ['B', 'B', 'A', 'A'],
'State': ['step1', 'step2', 'step1', 'step2'],
'oTime': ['', '2016-09-19 05:24:33', '', '2016-09-19 23:59:04'],
'Machine': ['23', '36L', '36R', '36R']})
df2 = df1.copy()
df2.oTime = pd.to_datetime(df2.oTime)
pred1 = df1.groupby('Key').apply(predictions)
pred2 = df2.groupby('Key').apply(predictions)
print(pred1)
print(pred2)
```
#### Actual Output:
```
p1 p2 useTime
Key
A 36R 36R 2016-09-19 23:59:04
B 23 36L 2016-09-19 05:24:33
p1 p2 useTime
Key
A NaN 36R 2016-09-19T23:59:04.000000000
B 23.0 36L 2016-09-19T05:24:33.000000000
```
#### Expected Output
pred1 and pred2 should have the same values in column p1.
pred1 is correct whereas pred2 is changing type to float64.
#### Output of `pd.show_versions()`
<details>
## 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: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.0
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14423/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14423/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14424
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14424/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14424/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14424/events
|
https://github.com/pandas-dev/pandas/pull/14424
| 183,026,019 |
MDExOlB1bGxSZXF1ZXN0ODkzNjc2Njk=
| 14,424 |
BUG: String indexing against object dtype may raise AttributeError
|
{
"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": "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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-14T11:21:48Z | 2016-10-22T09:54:41Z | 2016-10-22T09:54:33Z |
MEMBER
| null |
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
String indexing may raise `AttributeError`, rather than `KeyError`.
```
df = pd.DataFrame([1], pd.Index([pd.Timestamp('2011-01-01')], dtype=object))
df.index.is_all_dates
# True
df['2011']
# AttributeError: 'Index' object has no attribute '_get_string_slice'
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14424/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14424/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14424.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14424",
"merged_at": "2016-10-22T09:54:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14424.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14424"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14425
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14425/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14425/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14425/events
|
https://github.com/pandas-dev/pandas/issues/14425
| 183,028,910 |
MDU6SXNzdWUxODMwMjg5MTA=
| 14,425 |
incorrect calculation of centered moving averages for even length series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1199593?v=4",
"events_url": "https://api.github.com/users/simonm3/events{/privacy}",
"followers_url": "https://api.github.com/users/simonm3/followers",
"following_url": "https://api.github.com/users/simonm3/following{/other_user}",
"gists_url": "https://api.github.com/users/simonm3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonm3",
"id": 1199593,
"login": "simonm3",
"node_id": "MDQ6VXNlcjExOTk1OTM=",
"organizations_url": "https://api.github.com/users/simonm3/orgs",
"received_events_url": "https://api.github.com/users/simonm3/received_events",
"repos_url": "https://api.github.com/users/simonm3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonm3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonm3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonm3"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "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": "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"
}
] |
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-10-14T11:39:06Z | 2018-07-17T08:42:19Z | 2016-10-14T20:45:43Z |
NONE
| null |
For even numbered periods the centered moving average is calculated incorrectly. Suppose the period length is 5. Then the center of 5 periods is 3. However if the period length is 4 then the center of the period is 2.5. The value at index 3 should be the average of the values at 2.5 and 3.5. Pandas is showing the 2.5 value at 3 which is incorrect.
EXAMPLE:
a=pd.Series(range(1,6), index=range(1,6))
a.rolling(4, center=True).mean()
1 NaN
2 NaN
3 2.5
4 3.5
5 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/14425/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14425/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14426
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14426/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14426/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14426/events
|
https://github.com/pandas-dev/pandas/pull/14426
| 183,075,072 |
MDExOlB1bGxSZXF1ZXN0ODk0MDE3NjM=
| 14,426 |
ENH: merge_asof() has left_index/right_index and left_by/right_by (#14253)
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] | null | 3 | 2016-10-14T15:08:45Z | 2016-10-28T17:44:18Z | 2016-10-28T17:42:29Z |
CONTRIBUTOR
| null |
- [x] closes #14253
- [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/14426/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14426/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14426.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14426",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14426.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14426"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14427
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14427/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14427/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14427/events
|
https://github.com/pandas-dev/pandas/issues/14427
| 183,145,377 |
MDU6SXNzdWUxODMxNDUzNzc=
| 14,427 |
BUG: Assigning values in SparseDataFrame with duplicate columns fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4",
"events_url": "https://api.github.com/users/bkandel/events{/privacy}",
"followers_url": "https://api.github.com/users/bkandel/followers",
"following_url": "https://api.github.com/users/bkandel/following{/other_user}",
"gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bkandel",
"id": 606089,
"login": "bkandel",
"node_id": "MDQ6VXNlcjYwNjA4OQ==",
"organizations_url": "https://api.github.com/users/bkandel/orgs",
"received_events_url": "https://api.github.com/users/bkandel/received_events",
"repos_url": "https://api.github.com/users/bkandel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bkandel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bkandel"
}
|
[
{
"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": "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": 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"
}
| 5 | 2016-10-14T20:40:05Z | 2019-09-18T14:02:16Z | 2019-09-18T14:02:16Z |
CONTRIBUTOR
| null |
As discussed in https://github.com/pandas-dev/pandas/pull/14384#discussion_r82538778.
#### A small, complete example of the issue
``` python
import pandas as pd
df1 = pd.DataFrame({'a': [1, 2, 3]})
df2 = pd.DataFrame({'b': [2,3,4]})
df = pd.concat([df1, df1, df2], axis=1).to_sparse()
df.index = [1, 2, 3]
df.loc[1, 'a'] = 3
```
errors with
``` python
AttributeError Traceback (most recent call last)
<ipython-input-6-0a670748626a> in <module>()
4 df = pd.concat([df1, df1, df2], axis=1).to_sparse()
5 df.index = [1, 2, 3]
----> 6 df.loc[1, 'a'] = 3
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/core/indexing.pyc in __setitem__(self, key, value)
138 key = com._apply_if_callable(key, self.obj)
139 indexer = self._get_setitem_indexer(key)
--> 140 self._setitem_with_indexer(indexer, value)
141
142 def _has_valid_type(self, k, axis):
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/core/indexing.pyc in _setitem_with_indexer(self, indexer, value)
545 # scalar
546 for item in labels:
--> 547 setter(item, value)
548
549 else:
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/core/indexing.pyc in setter(item, v)
453
454 def setter(item, v):
--> 455 s = self.obj[item]
456 pi = plane_indexer[0] if lplane_indexer == 1 else plane_indexer
457
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/sparse/frame.pyc in __getitem__(self, key)
345 return self._getitem_array(key)
346 else:
--> 347 return self._get_item_cache(key)
348
349 @Appender(DataFrame.get_value.__doc__, indents=0)
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/core/generic.pyc in _get_item_cache(self, item)
1385 if res is None:
1386 values = self._data.get(item)
-> 1387 res = self._box_item_values(item, values)
1388 cache[item] = res
1389 res._set_as_cached(item, self)
/Users/bkandel/.virtualenvs/pandas_19/lib/python2.7/site-packages/pandas/core/frame.pyc in _box_item_values(self, key, values)
2392 items = self.columns[self.columns.get_loc(key)]
2393 if values.ndim == 2:
-> 2394 return self._constructor(values.T, columns=items, index=self.index)
2395 else:
2396 return self._box_col_values(values, items)
AttributeError: 'BlockManager' object has no attribute 'T'
```
#### Expected Output
``` python
a a b
1 3 3 2
2 2 2 3
3 3 3 4
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 28.3.0
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14427/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14427/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14428
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14428/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14428/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14428/events
|
https://github.com/pandas-dev/pandas/pull/14428
| 183,172,579 |
MDExOlB1bGxSZXF1ZXN0ODk0NzEzNDk=
| 14,428 |
Bug: Grouping by index and column fails on DataFrame with single index (GH14327)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15064365?v=4",
"events_url": "https://api.github.com/users/jonmmease/events{/privacy}",
"followers_url": "https://api.github.com/users/jonmmease/followers",
"following_url": "https://api.github.com/users/jonmmease/following{/other_user}",
"gists_url": "https://api.github.com/users/jonmmease/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonmmease",
"id": 15064365,
"login": "jonmmease",
"node_id": "MDQ6VXNlcjE1MDY0MzY1",
"organizations_url": "https://api.github.com/users/jonmmease/orgs",
"received_events_url": "https://api.github.com/users/jonmmease/received_events",
"repos_url": "https://api.github.com/users/jonmmease/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonmmease/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonmmease/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonmmease"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 7 | 2016-10-14T23:39:26Z | 2016-10-15T19:25:48Z | 2016-10-15T19:25:41Z |
CONTRIBUTOR
| null |
- [x] closes #14327
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This PR is a continuation of #14333. See discussion there for explanation of why this new PR was needed.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14428/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14428/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14428.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14428",
"merged_at": "2016-10-15T19:25:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14428.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14428"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14429
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14429/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14429/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14429/events
|
https://github.com/pandas-dev/pandas/pull/14429
| 183,173,901 |
MDExOlB1bGxSZXF1ZXN0ODk0NzIyODI=
| 14,429 |
PERF: improved perf in .to_json when lines=True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 4 | 2016-10-14T23:53:09Z | 2016-10-15T20:03:48Z | 2016-10-15T20:03:48Z |
CONTRIBUTOR
| null |
closes #14408
master
```
In [1]: np.random.seed(1234)
In [2]: N = 100000
...: C = 5
...: df = DataFrame(dict([('float{0}'.format(i), np.random.randn(N)) for i in range(C)]))
In [3]: %timeit df.to_json('foo.json',orient='records',lines=True)
1 loop, best of 3: 3.67 s per loop
```
PR (with proper encoding/decoding, IOW work directly on the bytes and minimize copies)
```
In [5]: %timeit df.to_json('foo.json',orient='records',lines=True)
10 loops, best of 3: 137 ms per loop
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14429/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14429/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14429.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14429",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14429.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14429"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14430
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14430/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14430/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14430/events
|
https://github.com/pandas-dev/pandas/pull/14430
| 183,231,292 |
MDExOlB1bGxSZXF1ZXN0ODk1MDU2MDM=
| 14,430 |
DOC: correct DataFrame.pivot docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 2 | 2016-10-15T20:29:41Z | 2016-10-22T09:50:20Z | 2016-10-22T09:50:20Z |
MEMBER
| null |
The mention of panels that are created is not correct. You get a multi-index, I noticed
|
{
"+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/14430/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14430/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14430.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14430",
"merged_at": "2016-10-22T09:50:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14430.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14430"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14431
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14431/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14431/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14431/events
|
https://github.com/pandas-dev/pandas/pull/14431
| 183,236,537 |
MDExOlB1bGxSZXF1ZXN0ODk1MDg2MTQ=
| 14,431 |
BUG: Fix issue with inserting duplicate columns in a dataframe (#14291)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3327564?v=4",
"events_url": "https://api.github.com/users/paul-mannino/events{/privacy}",
"followers_url": "https://api.github.com/users/paul-mannino/followers",
"following_url": "https://api.github.com/users/paul-mannino/following{/other_user}",
"gists_url": "https://api.github.com/users/paul-mannino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paul-mannino",
"id": 3327564,
"login": "paul-mannino",
"node_id": "MDQ6VXNlcjMzMjc1NjQ=",
"organizations_url": "https://api.github.com/users/paul-mannino/orgs",
"received_events_url": "https://api.github.com/users/paul-mannino/received_events",
"repos_url": "https://api.github.com/users/paul-mannino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paul-mannino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paul-mannino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paul-mannino"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 4 | 2016-10-15T22:24:41Z | 2016-10-24T22:52:00Z | 2016-10-24T22:51:29Z |
CONTRIBUTOR
| null |
- [x] closes #14291
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Resubmitting PR (@jorisvandenbossche)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14431/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14431/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14431.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14431",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14431.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14431"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14432
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14432/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14432/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14432/events
|
https://github.com/pandas-dev/pandas/pull/14432
| 183,238,446 |
MDExOlB1bGxSZXF1ZXN0ODk1MDk3MTA=
| 14,432 |
ENH: Allow the groupby by param to handle columns and index levels (GH5677)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15064365?v=4",
"events_url": "https://api.github.com/users/jonmmease/events{/privacy}",
"followers_url": "https://api.github.com/users/jonmmease/followers",
"following_url": "https://api.github.com/users/jonmmease/following{/other_user}",
"gists_url": "https://api.github.com/users/jonmmease/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonmmease",
"id": 15064365,
"login": "jonmmease",
"node_id": "MDQ6VXNlcjE1MDY0MzY1",
"organizations_url": "https://api.github.com/users/jonmmease/orgs",
"received_events_url": "https://api.github.com/users/jonmmease/received_events",
"repos_url": "https://api.github.com/users/jonmmease/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonmmease/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonmmease/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonmmease"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 13 | 2016-10-15T23:13:33Z | 2017-06-05T11:28:15Z | 2016-12-14T20:39:39Z |
CONTRIBUTOR
| null |
- [x] closes #5677
- [x] tests added
- [x] rebase after #14342 is merged to fix #14334
- [x] tests pass (requires rebase above)
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
- [x] updates existing documentation
- [x] add example to whatsnew 0.20 and groupby.rst
Change to allow strings passed as the `by` parameter to `df.groupby` to reference columns (existing behavior) or index level names if no column match is found. Columns take precedence in the case of ambiguity to maintain backward compatibility.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14432/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14432/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14432.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14432",
"merged_at": "2016-12-14T20:39:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14432.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14432"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14433
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14433/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14433/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14433/events
|
https://github.com/pandas-dev/pandas/pull/14433
| 183,263,540 |
MDExOlB1bGxSZXF1ZXN0ODk1MjQwMTY=
| 14,433 |
BUG: underflow on Timestamp creation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-16T12:03:44Z | 2016-10-20T13:46:01Z | 2016-10-20T13:46:01Z |
CONTRIBUTOR
| null |
- [x] closes #14415
- [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/14433/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14433/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14433.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14433",
"merged_at": "2016-10-20T13:46:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14433.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14433"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14434
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14434/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14434/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14434/events
|
https://github.com/pandas-dev/pandas/pull/14434
| 183,279,933 |
MDExOlB1bGxSZXF1ZXN0ODk1MzI5NTk=
| 14,434 |
Checks for left_index and right_index merge parameters
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7207415?v=4",
"events_url": "https://api.github.com/users/ivallesp/events{/privacy}",
"followers_url": "https://api.github.com/users/ivallesp/followers",
"following_url": "https://api.github.com/users/ivallesp/following{/other_user}",
"gists_url": "https://api.github.com/users/ivallesp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivallesp",
"id": 7207415,
"login": "ivallesp",
"node_id": "MDQ6VXNlcjcyMDc0MTU=",
"organizations_url": "https://api.github.com/users/ivallesp/orgs",
"received_events_url": "https://api.github.com/users/ivallesp/received_events",
"repos_url": "https://api.github.com/users/ivallesp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivallesp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivallesp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivallesp"
}
|
[
{
"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": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 9 | 2016-10-16T17:46:40Z | 2016-10-20T10:42:51Z | 2016-10-20T10:32:06Z |
CONTRIBUTOR
| null |
Hi,
I just committed an error when I was doing an analysis using pandas and this motivated me to implement two checks which in my opinion are necessary.
I was trying to perform a merge and I confused the parameters "left_on" and "right_on" for "left_index" and "right_index". I ran the code and it did not raised me any error. It produced a table which seem to be fine in terms of shape. I suspect that what happened is that the tables got merged by the index of the data frame. I think it would be a great idea to check if right_index and left_index are of type bool, if not, raise an error. This way we will avoid that more people got the same error as mine :D.
Tests passed
Thanks!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14434/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14434/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14434.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14434",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14434.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14434"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14435
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14435/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14435/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14435/events
|
https://github.com/pandas-dev/pandas/issues/14435
| 183,292,725 |
MDU6SXNzdWUxODMyOTI3MjU=
| 14,435 |
HDF Store with multi-index problems when using data_columns=True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10107101?v=4",
"events_url": "https://api.github.com/users/MMCMA/events{/privacy}",
"followers_url": "https://api.github.com/users/MMCMA/followers",
"following_url": "https://api.github.com/users/MMCMA/following{/other_user}",
"gists_url": "https://api.github.com/users/MMCMA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MMCMA",
"id": 10107101,
"login": "MMCMA",
"node_id": "MDQ6VXNlcjEwMTA3MTAx",
"organizations_url": "https://api.github.com/users/MMCMA/orgs",
"received_events_url": "https://api.github.com/users/MMCMA/received_events",
"repos_url": "https://api.github.com/users/MMCMA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MMCMA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MMCMA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MMCMA"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-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"
}
| 1 | 2016-10-16T21:24:19Z | 2016-12-04T17:22:51Z | 2016-12-04T17:22:51Z |
NONE
| null |
####
Not sure if this is supposed to be like this. When I store a multi-index along with the option `data_column=True`, I cannot query along the dataframe indexes only the columns are valid references. However, it works when I store them with the option `data_columns=[...]`.
``` python
import pandas as pd
import numpy as np
#adjust the path
file_path = 'D:\\test_store.h5'
np.random.seed(1234)
pd.set_option('display.max_rows',4)
# simulate some data
index = pd.MultiIndex.from_product([np.arange(10000,10200),
pd.date_range('19800101',periods=500)],
names=['id','date'])
df = pd.DataFrame(dict(id2=np.random.randint(0, 1000, size=len(index)),
w=np.random.randn(len(index))),
index=index).reset_index().set_index(['id', 'date'])
# store the data
store = pd.HDFStore(file_path,mode='a',complib='blosc', complevel=9)
store.append('df_dc_None', df, data_columns=None)
store.append('df_dc_explicit', df, data_columns=['id2', 'w'])
store.append('df_dc_True', df, data_columns=True)
store.close()
# query the data
start = '19810201'
print(pd.read_hdf(file_path,'df_dc_None', where='date>start & id=10000'))
print(pd.read_hdf(file_path,'df_dc_True', where='id2>500'))
print(pd.read_hdf(file_path,'df_dc_explicit', where='date>start & id2>500'))
try:
print(pd.read_hdf(file_path,'df_dc_True', where='date>start & id2>500'))
except ValueError as err:
print(err)
```
#### Output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.2
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.7
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: 0.7.9.None
psycopg2: None
jinja2: 2.8
boto: 2.40.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/14435/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14435/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14436
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14436/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14436/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14436/events
|
https://github.com/pandas-dev/pandas/pull/14436
| 183,307,716 |
MDExOlB1bGxSZXF1ZXN0ODk1NDkzMDQ=
| 14,436 |
WIP: Rework IndexEngine to better support hashtable-free algorithms.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": 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"
}
| 6 | 2016-10-17T01:33:58Z | 2017-02-27T21:06:03Z | 2017-02-27T16:00:28Z |
CONTRIBUTOR
| null |
Initial work toward #14273. This makes `__contains__` behave uniformly across all index types by making it simply defer to `get_loc` (we can and probably should go back and put in a fast path for the case that a hash table has already been populated). Assuming this general path seems reasonable, the next step would be to update `get_indexer` to do binary-search-based lookups on large indices.
A few high-level design questions:
- I haven't benchmarked yet to see how big the difference is, but theoretically these changes are trading slower lookups for a smaller memory footprint. Depending on users' usage patterns and resource constraints, the tradeoffs made here may or may not be an improvement for them. I added an `avoid_hashtable` keyword to IndexEngine to make it easier to test the new behavior interactively without having to work with giant indices. Do we want to support a user-configurable toggle like this for cases where people know that they really do or don't want a hash table? If so, where would they pass that option? Alternatively, should _SIZE_CUTOFF be configurable, perhaps via `pandas.set_option`?
- One odd behavior I ran into while working on this is that `Int64Index.__contains__` silently truncates floats to integers before doing lookups, while `Int64Index.get_loc` does not. On this branch, that behavior is only preserved for integral-valued floats (the behavior of coercing integral floats to ints was explicitly tested). This also happens for `DatetimeIndex`. Is there any concern about "breaking" the behavior of `Int64Index.__contains__` for non-integral floats?
<details>
```
In [11]: pd.__version__
Out[11]: u'0.19.0'
In [12]: i
Out[12]: Int64Index([1, 2, 3, 5], dtype='int64')
In [13]: 1.5 in i
Out[13]: True
In [14]: i.get_loc(1.5)
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-14-c37f93fbd72a> in <module>()
----> 1 i.get_loc(1.5)
/home/ssanderson/.virtualenvs/pandas-19/local/lib/python2.7/site-packages/pandas/indexes/base.pyc in get_loc(self, key, method, tolerance)
2104 return self._engine.get_loc(key)
2105 except KeyError:
-> 2106 return self._engine.get_loc(self._maybe_cast_indexer(key))
2107
2108 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4160)()
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:3983)()
pandas/index.pyx in pandas.index.Int64Engine._check_type (pandas/index.c:7773)()
KeyError: 1.5
```
</details>
- [ ] closes #14273
- [ ] 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/14436/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14436/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14436.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14436",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14436.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14436"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14437
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14437/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14437/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14437/events
|
https://github.com/pandas-dev/pandas/issues/14437
| 183,343,675 |
MDU6SXNzdWUxODMzNDM2NzU=
| 14,437 |
.unique() inconsistency between Series and Index objects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11876547?v=4",
"events_url": "https://api.github.com/users/datajanko/events{/privacy}",
"followers_url": "https://api.github.com/users/datajanko/followers",
"following_url": "https://api.github.com/users/datajanko/following{/other_user}",
"gists_url": "https://api.github.com/users/datajanko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datajanko",
"id": 11876547,
"login": "datajanko",
"node_id": "MDQ6VXNlcjExODc2NTQ3",
"organizations_url": "https://api.github.com/users/datajanko/orgs",
"received_events_url": "https://api.github.com/users/datajanko/received_events",
"repos_url": "https://api.github.com/users/datajanko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datajanko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datajanko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datajanko"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-17T07:26:02Z | 2016-10-17T10:51:20Z | 2016-10-17T10:18:36Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
ix = pd.Index([0,0,1,2])
sr = pd.Series([0,0,1,2])
ix.unique()
Int64Index([0, 1, 2], dtype='int64')
sr.unique()
array([0, 1, 2], dtype=int64)
```
#### Expected Output
I'd expect that unique returns the original datatype or always an array.
I'd prefer the original data_type since arrays do not provide a to_series function but indexes do.
So when working with pipelines, this is much more convenient
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.0
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14437/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14437/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14438
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14438/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14438/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14438/events
|
https://github.com/pandas-dev/pandas/issues/14438
| 183,404,422 |
MDU6SXNzdWUxODM0MDQ0MjI=
| 14,438 |
BUG: concat with dataframes heterogeneous in length and tuple keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/401766?v=4",
"events_url": "https://api.github.com/users/dubourg/events{/privacy}",
"followers_url": "https://api.github.com/users/dubourg/followers",
"following_url": "https://api.github.com/users/dubourg/following{/other_user}",
"gists_url": "https://api.github.com/users/dubourg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dubourg",
"id": 401766,
"login": "dubourg",
"node_id": "MDQ6VXNlcjQwMTc2Ng==",
"organizations_url": "https://api.github.com/users/dubourg/orgs",
"received_events_url": "https://api.github.com/users/dubourg/received_events",
"repos_url": "https://api.github.com/users/dubourg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dubourg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dubourg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dubourg"
}
|
[
{
"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"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 1 | 2016-10-17T12:36:37Z | 2016-10-20T10:28:27Z | 2016-10-20T10:25:35Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
import numpy as np
import pandas as pd
df1 = pd.DataFrame(np.random.rand(4).reshape((2, 2)), columns=list('AB'))
df2 = pd.DataFrame(np.random.rand(6).reshape((3, 2)), columns=list('AB'))
print(pd.concat([df1, df2], keys=[('bee', 'bah'), ('bee', 'bouh')], names=['zig', 'zag', None]))
```
#### Expected Output (works w/ 0.18.1)
```
A B
zig zag
bee bah 0 0.689411 0.364650
1 0.143786 0.415858
bouh 0 0.557942 0.646434
1 0.551938 0.695175
2 0.991975 0.880451
```
#### 0.19 raises
```
/path/to/lib/python3.4/site-packages/pandas/tools/merge.py in _make_concat_multiindex(indexes, keys, levels, names)
1673 else:
1674 codes, categories = _factorize_from_iterable(concat_index)
-> 1675 levels.append(categories)
1676 label_list.append(codes)
1677
AttributeError: 'tuple' object has no attribute 'append'
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-74-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG:
LOCALE: None.None
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: None
numpy: 1.11.2
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.7
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
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14438/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14438/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14439
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14439/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14439/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14439/events
|
https://github.com/pandas-dev/pandas/issues/14439
| 183,412,719 |
MDU6SXNzdWUxODM0MTI3MTk=
| 14,439 |
DEV: Update merge-pr.py script given repo rename
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-10-17T13:14:33Z | 2016-10-20T14:35:19Z | 2016-10-19T11:58:54Z |
MEMBER
| null |
This is still pointing to pydata/pandas.git -- it is working fine presumably because of magic redirection
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14439/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14439/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14440
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14440/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14440/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14440/events
|
https://github.com/pandas-dev/pandas/issues/14440
| 183,419,690 |
MDU6SXNzdWUxODM0MTk2OTA=
| 14,440 |
Floating point accuracy problems in `DatetimeIndex.round`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9717992?v=4",
"events_url": "https://api.github.com/users/eoincondron/events{/privacy}",
"followers_url": "https://api.github.com/users/eoincondron/followers",
"following_url": "https://api.github.com/users/eoincondron/following{/other_user}",
"gists_url": "https://api.github.com/users/eoincondron/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eoincondron",
"id": 9717992,
"login": "eoincondron",
"node_id": "MDQ6VXNlcjk3MTc5OTI=",
"organizations_url": "https://api.github.com/users/eoincondron/orgs",
"received_events_url": "https://api.github.com/users/eoincondron/received_events",
"repos_url": "https://api.github.com/users/eoincondron/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eoincondron/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eoincondron/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eoincondron"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-10-17T13:42:57Z | 2017-03-05T16:26:59Z | 2017-03-05T16:26:59Z |
NONE
| null |
#### A small, complete example of the issue
There is a slight problem when using the rounding methods of `DatetimeIndex` (`round, floor, ceil`) to high frequencies as illustrated by this example:
``` python
pd.DatetimeIndex(['2016-10-17 12:00:00.0015']).round('ms')
DatetimeIndex(['2016-10-17 12:00:00.001999872'], dtype='datetime64[ns]', freq=None)
```
The problem is here in the `TimelikeOps._round` method:
```
result = (unit * rounder(values / float(unit))).astype('i8')
```
`rounder(values / float(unit))` returns an array of `floats` containing the multiples of `unit` required. However, although the values look like `ints`, when multiplied by `unit` the result can be off due to floating point accuracy. Replacing it with
```
result = (unit * rounder(values / float(unit)).astype('i8'))
```
Should fix the problem. I'm willing to do a PR to fix it.
#### Output of `pd.show_versions()`
pandas: 0.19.0
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: 0.7.6.None
psycopg2: None
jinja2: 2.8
boto: 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/14440/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14440/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14441
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14441/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14441/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14441/events
|
https://github.com/pandas-dev/pandas/pull/14441
| 183,443,939 |
MDExOlB1bGxSZXF1ZXN0ODk2NDMxODU=
| 14,441 |
Update unpack_template.h
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10852597?v=4",
"events_url": "https://api.github.com/users/aixtools/events{/privacy}",
"followers_url": "https://api.github.com/users/aixtools/followers",
"following_url": "https://api.github.com/users/aixtools/following{/other_user}",
"gists_url": "https://api.github.com/users/aixtools/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aixtools",
"id": 10852597,
"login": "aixtools",
"node_id": "MDQ6VXNlcjEwODUyNTk3",
"organizations_url": "https://api.github.com/users/aixtools/orgs",
"received_events_url": "https://api.github.com/users/aixtools/received_events",
"repos_url": "https://api.github.com/users/aixtools/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aixtools/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aixtools/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aixtools"
}
|
[
{
"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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 4 | 2016-10-17T15:12:36Z | 2016-10-20T22:44:57Z | 2016-10-20T22:44:39Z |
CONTRIBUTOR
| null |
- [x ] closes #14373
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
USE_CASE_RANGE is a GNU C feature. This change will activate
USE_CASE_RANGE on any platform when using GNU C and not on any platform
when a different compiler is being used.
closes #14373
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14441/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14441/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14441.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14441",
"merged_at": "2016-10-20T22:44:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14441.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14441"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14442
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14442/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14442/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14442/events
|
https://github.com/pandas-dev/pandas/pull/14442
| 183,474,682 |
MDExOlB1bGxSZXF1ZXN0ODk2NjUxMDQ=
| 14,442 |
DOC: Expand on reference docs for read_json
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-17T17:15:12Z | 2016-10-27T13:51:10Z | 2016-10-27T13:51:10Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [] whatsnew entry
Continuation of closed PR #14284
Documentation update for `read_json()`.
expanded reference document for pandas.read_json(), especially concentrating on the orient parameter. Also added some example usage code and explicitly mention to_json() as a source of valid JSON strings.
<div class="section" id="pandas-read-json">
<h1>pandas.read_json<a class="headerlink" href="#pandas-read-json" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="pandas.read_json">
<code class="descclassname">pandas.</code><code class="descname">read_json</code><span class="sig-paren">(</span><em>path_or_buf=None</em>, <em>orient=None</em>, <em>typ='frame'</em>, <em>dtype=True</em>, <em>convert_axes=True</em>, <em>convert_dates=True</em>, <em>keep_default_dates=True</em>, <em>numpy=False</em>, <em>precise_float=False</em>, <em>date_unit=None</em>, <em>encoding=None</em>, <em>lines=False</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/pandas-dev/pandas/blob/master/pandas/io/json.py#L112-L286"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pandas.read_json" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert a JSON string to pandas object</p>
<table class="docutils field-list" frame="void" rules="none">
<colgroup><col class="field-name">
<col class="field-body">
</colgroup><tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path_or_buf</strong> : a valid JSON string or file-like, default: None</p>
<blockquote>
<div><p>The string could be a URL. Valid URL schemes include http, ftp, s3, and
file. For file URLs, a host is expected. For instance, a local file
could be <code class="docutils literal"><span class="pre">file://localhost/path/to/table.json</span></code></p>
</div></blockquote>
<p><strong>orient</strong> : string,</p>
<blockquote>
<div><p>Indication of expected JSON string format.
Compatible JSON strings can be produced by <code class="docutils literal"><span class="pre">to_json()</span></code> with a
corresponding orient value.
The set of possible orients is:</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal"><span class="pre">'split'</span></code> : dict like
<code class="docutils literal"><span class="pre">{index</span> <span class="pre">-></span> <span class="pre">[index],</span> <span class="pre">columns</span> <span class="pre">-></span> <span class="pre">[columns],</span> <span class="pre">data</span> <span class="pre">-></span> <span class="pre">[values]}</span></code></li>
<li><code class="docutils literal"><span class="pre">'records'</span></code> : list like
<code class="docutils literal"><span class="pre">[{column</span> <span class="pre">-></span> <span class="pre">value},</span> <span class="pre">...</span> <span class="pre">,</span> <span class="pre">{column</span> <span class="pre">-></span> <span class="pre">value}]</span></code></li>
<li><code class="docutils literal"><span class="pre">'index'</span></code> : dict like <code class="docutils literal"><span class="pre">{index</span> <span class="pre">-></span> <span class="pre">{column</span> <span class="pre">-></span> <span class="pre">value}}</span></code></li>
<li><code class="docutils literal"><span class="pre">'columns'</span></code> : dict like <code class="docutils literal"><span class="pre">{column</span> <span class="pre">-></span> <span class="pre">{index</span> <span class="pre">-></span> <span class="pre">value}}</span></code></li>
<li><code class="docutils literal"><span class="pre">'values'</span></code> : just the values array</li>
</ul>
</div></blockquote>
<p>The allowed and default values depend on the value
of the <cite>typ</cite> parameter.</p>
<ul class="simple">
<li>when <code class="docutils literal"><span class="pre">typ</span> <span class="pre">==</span> <span class="pre">'series'</span></code>,<ul>
<li>allowed orients are <code class="docutils literal"><span class="pre">{'split','records','index'}</span></code></li>
<li>default is <code class="docutils literal"><span class="pre">'index'</span></code></li>
<li>The Series index must be unique for orient <code class="docutils literal"><span class="pre">'index'</span></code>.</li>
</ul>
</li>
<li>when <code class="docutils literal"><span class="pre">typ</span> <span class="pre">==</span> <span class="pre">'frame'</span></code>,<ul>
<li>allowed orients are <code class="docutils literal"><span class="pre">{'split','records','index',</span>
<span class="pre">'columns','values'}</span></code></li>
<li>default is <code class="docutils literal"><span class="pre">'columns'</span></code></li>
<li>The DataFrame index must be unique for orients <code class="docutils literal"><span class="pre">'index'</span></code> and
<code class="docutils literal"><span class="pre">'columns'</span></code>.</li>
<li>The DataFrame columns must be unique for orients <code class="docutils literal"><span class="pre">'index'</span></code>,
<code class="docutils literal"><span class="pre">'columns'</span></code>, and <code class="docutils literal"><span class="pre">'records'</span></code>.</li>
</ul>
</li>
</ul>
</div></blockquote>
<p><strong>typ</strong> : type of object to recover (series or frame), default ‘frame’</p>
<p><strong>dtype</strong> : boolean or dict, default True</p>
<blockquote>
<div><p>If True, infer dtypes, if a dict of column to dtype, then use those,
if False, then don’t infer dtypes at all, applies only to the data.</p>
</div></blockquote>
<p><strong>convert_axes</strong> : boolean, default True</p>
<blockquote>
<div><p>Try to convert the axes to the proper dtypes.</p>
</div></blockquote>
<p><strong>convert_dates</strong> : boolean, default True</p>
<blockquote>
<div><p>List of columns to parse for dates; If True, then try to parse
datelike columns default is True; a column label is datelike if</p>
<ul class="simple">
<li>it ends with <code class="docutils literal"><span class="pre">'_at'</span></code>,</li>
<li>it ends with <code class="docutils literal"><span class="pre">'_time'</span></code>,</li>
<li>it begins with <code class="docutils literal"><span class="pre">'timestamp'</span></code>,</li>
<li>it is <code class="docutils literal"><span class="pre">'modified'</span></code>, or</li>
<li>it is <code class="docutils literal"><span class="pre">'date'</span></code></li>
</ul>
</div></blockquote>
<p><strong>keep_default_dates</strong> : boolean, default True</p>
<blockquote>
<div><p>If parsing dates, then parse the default datelike columns</p>
</div></blockquote>
<p><strong>numpy</strong> : boolean, default False</p>
<blockquote>
<div><p>Direct decoding to numpy arrays. Supports numeric data only, but
non-numeric column and index labels are supported. Note also that the
JSON ordering MUST be the same for each term if numpy=True.</p>
</div></blockquote>
<p><strong>precise_float</strong> : boolean, default False</p>
<blockquote>
<div><p>Set to enable usage of higher precision (strtod) function when
decoding string to double values. Default (False) is to use fast but
less precise builtin functionality</p>
</div></blockquote>
<p><strong>date_unit</strong> : string, default None</p>
<blockquote>
<div><p>The timestamp unit to detect if converting dates. The default behaviour
is to try and detect the correct precision, but if this is not desired
then pass one of ‘s’, ‘ms’, ‘us’ or ‘ns’ to force parsing only seconds,
milliseconds, microseconds or nanoseconds respectively.</p>
</div></blockquote>
<p><strong>lines</strong> : boolean, default False</p>
<blockquote>
<div><p>Read the file as a json object per line.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 0.19.0.</span></p>
</div>
</div></blockquote>
<p><strong>encoding</strong> : str, default is ‘utf-8’</p>
<blockquote>
<div><p>The encoding to use to decode py3 bytes.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 0.19.0.</span></p>
</div>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><strong>result</strong> : Series or DataFrame, depending on the value of <cite>typ</cite>.</p>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Examples</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">([[</span><span class="s1">'a'</span><span class="p">,</span> <span class="s1">'b'</span><span class="p">],</span> <span class="p">[</span><span class="s1">'c'</span><span class="p">,</span> <span class="s1">'d'</span><span class="p">]],</span>
<span class="gp">... </span> <span class="n">index</span><span class="o">=</span><span class="p">[</span><span class="s1">'row 1'</span><span class="p">,</span> <span class="s1">'row 2'</span><span class="p">],</span>
<span class="gp">... </span> <span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s1">'col 1'</span><span class="p">,</span> <span class="s1">'col 2'</span><span class="p">])</span>
</pre></div>
</div>
<p>Encoding/decoding a Dataframe using <code class="docutils literal"><span class="pre">'split'</span></code> formatted JSON:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">to_json</span><span class="p">(</span><span class="n">orient</span><span class="o">=</span><span class="s1">'split'</span><span class="p">)</span>
<span class="go">'{"columns":["col 1","col 2"],</span>
<span class="go"> "index":["row 1","row 2"],</span>
<span class="go"> "data":[["a","b"],["c","d"]]}'</span>
<span class="gp">>>> </span><span class="n">pd</span><span class="o">.</span><span class="n">read_json</span><span class="p">(</span><span class="n">_</span><span class="p">,</span> <span class="n">orient</span><span class="o">=</span><span class="s1">'split'</span><span class="p">)</span>
<span class="go"> col 1 col 2</span>
<span class="go">row 1 a b</span>
<span class="go">row 2 c d</span>
</pre></div>
</div>
<p>Encoding/decoding a Dataframe using <code class="docutils literal"><span class="pre">'index'</span></code> formatted JSON:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">to_json</span><span class="p">(</span><span class="n">orient</span><span class="o">=</span><span class="s1">'index'</span><span class="p">)</span>
<span class="go">'{"row 1":{"col 1":"a","col 2":"b"},"row 2":{"col 1":"c","col 2":"d"}}'</span>
<span class="gp">>>> </span><span class="n">pd</span><span class="o">.</span><span class="n">read_json</span><span class="p">(</span><span class="n">_</span><span class="p">,</span> <span class="n">orient</span><span class="o">=</span><span class="s1">'index'</span><span class="p">)</span>
<span class="go"> col 1 col 2</span>
<span class="go">row 1 a b</span>
<span class="go">row 2 c d</span>
</pre></div>
</div>
<p>Encoding/decoding a Dataframe using <code class="docutils literal"><span class="pre">'records'</span></code> formatted JSON.
Note that index labels are not preserved with this encoding.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">to_json</span><span class="p">(</span><span class="n">orient</span><span class="o">=</span><span class="s1">'records'</span><span class="p">)</span>
<span class="go">'[{"col 1":"a","col 2":"b"},{"col 1":"c","col 2":"d"}]'</span>
<span class="gp">>>> </span><span class="n">pd</span><span class="o">.</span><span class="n">read_json</span><span class="p">(</span><span class="n">_</span><span class="p">,</span> <span class="n">orient</span><span class="o">=</span><span class="s1">'records'</span><span class="p">)</span>
<span class="go"> col 1 col 2</span>
<span class="go">0 a b</span>
<span class="go">1 c d</span>
</pre></div>
</div>
</dd></dl>
</div>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14442/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14442/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14442.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14442",
"merged_at": "2016-10-27T13:51:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14442.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14442"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14443
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14443/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14443/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14443/events
|
https://github.com/pandas-dev/pandas/issues/14443
| 183,506,996 |
MDU6SXNzdWUxODM1MDY5OTY=
| 14,443 |
duplicated removing items that are not duplicates in 0.18
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13733556?v=4",
"events_url": "https://api.github.com/users/johnml1135/events{/privacy}",
"followers_url": "https://api.github.com/users/johnml1135/followers",
"following_url": "https://api.github.com/users/johnml1135/following{/other_user}",
"gists_url": "https://api.github.com/users/johnml1135/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johnml1135",
"id": 13733556,
"login": "johnml1135",
"node_id": "MDQ6VXNlcjEzNzMzNTU2",
"organizations_url": "https://api.github.com/users/johnml1135/orgs",
"received_events_url": "https://api.github.com/users/johnml1135/received_events",
"repos_url": "https://api.github.com/users/johnml1135/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johnml1135/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johnml1135/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johnml1135"
}
|
[] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-17T19:36:17Z | 2016-10-18T23:41:35Z | 2016-10-18T11:47:00Z |
NONE
| null |
I wish I could say more about this, but it is with proprietary data. Basically, I have a DataFrame of 10 columns and around 7000 rows. When I call "duplicated" on 4 of the rows (3 have strings, 1 has a float), I get around 10 items being flagged as duplicate (5 pairs) when in fact, they are different.
This is sample text of what is being flagged:
```
Type Line LineString \
1885 else 832.0 (&temp32)->byte1 = (&temp32)->byte4
1895 do while 832.0 do while(0)
4515 enum 122.0 enum {QQ_ON_UNASSERTED = 0, QQ_ON_ASSERTED = 1}
4521 enum 167.0 enum {FIELD_RESET = 1, FIELD_TRIPPED = 0}
Parameter Filename
1885 temp32 arinc.c
1895 arinc.c
4515 QQ_ON_ASSERTED eeprom.c
4521 FIELD_TRIPPED eeprom.c
```
I know that duplicates are checked through hashing, but is there some way to, I don't know, compare a checksum or a more robust measurement to ensure that only duplicates are flagged? What is the chance that two items could be hashed to the same value?
By adding more of the fields to check the data I am able to prevent false duplicate flags.
I am using Pandas 0.18 from WinPython-64bit-3.4.4.2Qt5.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14443/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14443/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14444
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14444/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14444/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14444/events
|
https://github.com/pandas-dev/pandas/issues/14444
| 183,543,183 |
MDU6SXNzdWUxODM1NDMxODM=
| 14,444 |
Series `sort_index` missing `kind` keyword
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1195447?v=4",
"events_url": "https://api.github.com/users/numerical/events{/privacy}",
"followers_url": "https://api.github.com/users/numerical/followers",
"following_url": "https://api.github.com/users/numerical/following{/other_user}",
"gists_url": "https://api.github.com/users/numerical/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/numerical",
"id": 1195447,
"login": "numerical",
"node_id": "MDQ6VXNlcjExOTU0NDc=",
"organizations_url": "https://api.github.com/users/numerical/orgs",
"received_events_url": "https://api.github.com/users/numerical/received_events",
"repos_url": "https://api.github.com/users/numerical/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/numerical/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/numerical/subscriptions",
"type": "User",
"url": "https://api.github.com/users/numerical"
}
|
[
{
"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": 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-10-17T22:17:38Z | 2016-10-20T10:38:09Z | 2016-10-17T23:26:55Z |
NONE
| null |
#### A small, complete example of the issue
``` python
>>> import pandas as pd
>>> pd.Series(index=[3,2,1,4,3]).sort_index(kind='mergesort')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: sort_index() got an unexpected keyword argument 'kind'
```
#### Expected Output
A `Series` sorted by the index, i.e.:
``` python
>>> pd.Series(index=[3,2,1,4,3]).sort_index()
1 NaN
2 NaN
3 NaN
3 NaN
4 NaN
dtype: float64
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-42-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: 1.5.4
setuptools: 3.3
Cython: 0.20.1post0
numpy: 1.11.0
scipy: 0.13.3
statsmodels: None
xarray: None
IPython: 1.2.1
sphinx: 1.2.2
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: 0.8.7
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.7.2
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14444/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14444/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14445
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14445/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14445/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14445/events
|
https://github.com/pandas-dev/pandas/pull/14445
| 183,553,468 |
MDExOlB1bGxSZXF1ZXN0ODk3MjE1MzY=
| 14,445 |
ENH: support kind and na_position kwargs in Series.sort_index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7232535?v=4",
"events_url": "https://api.github.com/users/brandonmburroughs/events{/privacy}",
"followers_url": "https://api.github.com/users/brandonmburroughs/followers",
"following_url": "https://api.github.com/users/brandonmburroughs/following{/other_user}",
"gists_url": "https://api.github.com/users/brandonmburroughs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brandonmburroughs",
"id": 7232535,
"login": "brandonmburroughs",
"node_id": "MDQ6VXNlcjcyMzI1MzU=",
"organizations_url": "https://api.github.com/users/brandonmburroughs/orgs",
"received_events_url": "https://api.github.com/users/brandonmburroughs/received_events",
"repos_url": "https://api.github.com/users/brandonmburroughs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brandonmburroughs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brandonmburroughs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brandonmburroughs"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 15 | 2016-10-17T23:22:47Z | 2016-12-04T20:33:03Z | 2016-12-04T20:32:42Z |
CONTRIBUTOR
| null |
closes #13589
closes #13729
I'm waiting on adding the whatsnew entry. I'm not sure if this is a BUG (the [documentation](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.sort_index.html) says these parameters exist) or an ENH (we're adding support for these parameters). It depends on how you look at it!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14445/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14445/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14445.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14445",
"merged_at": "2016-12-04T20:32:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14445.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14445"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14446
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14446/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14446/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14446/events
|
https://github.com/pandas-dev/pandas/pull/14446
| 183,674,486 |
MDExOlB1bGxSZXF1ZXN0ODk4MDY0NTc=
| 14,446 |
Fix index for datetime64 conversion. Fixes #13937
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10204255?v=4",
"events_url": "https://api.github.com/users/amolkahat/events{/privacy}",
"followers_url": "https://api.github.com/users/amolkahat/followers",
"following_url": "https://api.github.com/users/amolkahat/following{/other_user}",
"gists_url": "https://api.github.com/users/amolkahat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amolkahat",
"id": 10204255,
"login": "amolkahat",
"node_id": "MDQ6VXNlcjEwMjA0MjU1",
"organizations_url": "https://api.github.com/users/amolkahat/orgs",
"received_events_url": "https://api.github.com/users/amolkahat/received_events",
"repos_url": "https://api.github.com/users/amolkahat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amolkahat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amolkahat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amolkahat"
}
|
[
{
"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"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 15 | 2016-10-18T12:38:41Z | 2017-03-03T10:07:39Z | 2017-03-02T13:44:58Z |
CONTRIBUTOR
| null |
- [x] closes #13937
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] 0.20.0
Fix index for datetime64 conversion
This PR fixes index for datetime64 conversion. Also,
update tests - pandas/pandas/tests/tests_convert_to.py
Fixes https://github.com/pydata/pandas/issues/13937
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14446/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14446/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14446.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14446",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14446.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14446"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14447
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14447/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14447/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14447/events
|
https://github.com/pandas-dev/pandas/pull/14447
| 183,699,773 |
MDExOlB1bGxSZXF1ZXN0ODk4MjQ5MjY=
| 14,447 |
BUG: Rename pydata to pandas-dev in merge-pr.py
|
{
"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": "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"
}
| 2 | 2016-10-18T14:17:52Z | 2016-10-20T14:27:52Z | 2016-10-19T11:58:54Z |
MEMBER
| null |
Title is self-explanatory. Closes #14439.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14447/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14447/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14447.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14447",
"merged_at": "2016-10-19T11:58:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14447.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14447"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14448
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14448/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14448/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14448/events
|
https://github.com/pandas-dev/pandas/issues/14448
| 183,817,974 |
MDU6SXNzdWUxODM4MTc5NzQ=
| 14,448 |
DOC/BUG: pd.to_datetime example produces different results from documentation
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 4 | 2016-10-18T22:19:12Z | 2016-10-24T22:28:17Z | 2016-10-24T22:28:17Z |
NONE
| null |
#### A small, complete example of the issue
referring too http://pandas.pydata.org/pandas-docs/stable/generated/pandas.to_datetime.html
The example provides different results.
``` python
# Your code here
import pandas as pd
pd.to_datetime('13000101', format='%Y%m%d')
```
raises...
```
Traceback (most recent call last):
File "C:\Miniconda3\lib\site-packages\pandas\tseries\tools.py", line 404, in _convert_listlike
values, tz = tslib.datetime_to_datetime64(arg)
File "pandas\tslib.pyx", line 1754, in pandas.tslib.datetime_to_datetime64 (pandas\tslib.c:30557)
TypeError: Unrecognized value type: <class 'str'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Miniconda3\lib\site-packages\pandas\util\decorators.py", line 91, in wrapper
return func(*args, **kwargs)
File "C:\Miniconda3\lib\site-packages\pandas\tseries\tools.py", line 424, in to_datetime
return _convert_listlike(np.array([arg]), box, format)[0]
File "C:\Miniconda3\lib\site-packages\pandas\tseries\tools.py", line 407, in _convert_listlike
raise e
File "C:\Miniconda3\lib\site-packages\pandas\tseries\tools.py", line 374, in _convert_listlike
errors=errors)
File "pandas\tslib.pyx", line 3721, in pandas.tslib.array_strptime (pandas\tslib.c:60980)
File "pandas\tslib.pyx", line 3716, in pandas.tslib.array_strptime (pandas\tslib.c:60878)
File "pandas\tslib.pyx", line 1718, in pandas.tslib._check_dts_bounds (pandas\tslib.c:30034)
pandas.tslib.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1300-01-01 00:00:00
```
#### Expected Output
(according to example in docs)
```
datetime.datetime(1300, 1, 1, 0, 0)
```
#### Output of `pd.show_versions()`
<details>
> > > pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 28.0.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: 1.4.1
bottleneck: 1.1.0
tables: None
numexpr: 2.6.0
matplotlib: 1.5.3
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.0
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.0
pymysql: 0.7.9.None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14448/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14448/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14449
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14449/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14449/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14449/events
|
https://github.com/pandas-dev/pandas/pull/14449
| 183,875,021 |
MDExOlB1bGxSZXF1ZXN0ODk5NDgwNzk=
| 14,449 |
Type levels as list in _make_concat_multiindex (fixes #14438)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/401766?v=4",
"events_url": "https://api.github.com/users/dubourg/events{/privacy}",
"followers_url": "https://api.github.com/users/dubourg/followers",
"following_url": "https://api.github.com/users/dubourg/following{/other_user}",
"gists_url": "https://api.github.com/users/dubourg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dubourg",
"id": 401766,
"login": "dubourg",
"node_id": "MDQ6VXNlcjQwMTc2Ng==",
"organizations_url": "https://api.github.com/users/dubourg/orgs",
"received_events_url": "https://api.github.com/users/dubourg/received_events",
"repos_url": "https://api.github.com/users/dubourg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dubourg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dubourg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dubourg"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 5 | 2016-10-19T06:20:15Z | 2016-10-20T10:25:40Z | 2016-10-20T10:25:35Z |
CONTRIBUTOR
| null |
- [x] closes #14438
- [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/14449/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14449/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14449.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14449",
"merged_at": "2016-10-20T10:25:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14449.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14449"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14450
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14450/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14450/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14450/events
|
https://github.com/pandas-dev/pandas/issues/14450
| 183,905,013 |
MDU6SXNzdWUxODM5MDUwMTM=
| 14,450 |
df.join(get_dummies(cut(df.v))) fails with AttributeError _is_dtype_compat
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/438648?v=4",
"events_url": "https://api.github.com/users/pwaller/events{/privacy}",
"followers_url": "https://api.github.com/users/pwaller/followers",
"following_url": "https://api.github.com/users/pwaller/following{/other_user}",
"gists_url": "https://api.github.com/users/pwaller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pwaller",
"id": 438648,
"login": "pwaller",
"node_id": "MDQ6VXNlcjQzODY0OA==",
"organizations_url": "https://api.github.com/users/pwaller/orgs",
"received_events_url": "https://api.github.com/users/pwaller/received_events",
"repos_url": "https://api.github.com/users/pwaller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pwaller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pwaller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pwaller"
}
|
[
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-19T09:04:00Z | 2016-10-19T10:29:26Z | 2016-10-19T10:29:13Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
df = pd.DataFrame({"data": np.arange(0, 10, 0.1)})
v = pd.cut(df.data, [0, 1, 2, 5, 10], include_lowest=True).rename("cuts")
df.join(pd.get_dummies(v))
```
#### Expected Output
A data frame similar to the input dataframe with 4 additional variables for the cut categories.
#### What happens
```
----> 3 df.join(pd.get_dummies(v))
/home/pwaller/.local/lib/python3.5/site-packages/pandas/core/frame.py in join(self, other, on, how, lsuffix, rsuffix, sort)
4534 # For SparseDataFrame's benefit
4535 return self._join_compat(other, on=on, how=how, lsuffix=lsuffix,
-> 4536 rsuffix=rsuffix, sort=sort)
4537
4538 def _join_compat(self, other, on=None, how='left', lsuffix='', rsuffix='',
/home/pwaller/.local/lib/python3.5/site-packages/pandas/core/frame.py in _join_compat(self, other, on, how, lsuffix, rsuffix, sort)
4548 return merge(self, other, left_on=on, how=how,
4549 left_index=on is None, right_index=True,
-> 4550 suffixes=(lsuffix, rsuffix), sort=sort)
4551 else:
4552 if on is not None:
/home/pwaller/.local/lib/python3.5/site-packages/pandas/tools/merge.py in merge(left, right, how, on, left_on, right_on, left_index, right_index, sort, suffixes, copy, indicator)
57 right_index=right_index, sort=sort, suffixes=suffixes,
58 copy=copy, indicator=indicator)
---> 59 return op.get_result()
60 if __debug__:
61 merge.__doc__ = _merge_doc % '\nleft : DataFrame'
/home/pwaller/.local/lib/python3.5/site-packages/pandas/tools/merge.py in get_result(self)
505 result_data = concatenate_block_managers(
506 [(ldata, lindexers), (rdata, rindexers)],
--> 507 axes=[llabels.append(rlabels), join_index],
508 concat_axis=0, copy=self.copy)
509
/home/pwaller/.local/lib/python3.5/site-packages/pandas/indexes/base.py in append(self, other)
1440 # if any of the to_concat is category
1441 from pandas.indexes.category import CategoricalIndex
-> 1442 return CategoricalIndex._append_same_dtype(self, to_concat, name)
1443
1444 if len(typs) == 1:
/home/pwaller/.local/lib/python3.5/site-packages/pandas/indexes/category.py in _append_same_dtype(self, to_concat, name)
578 ValueError if other is not in the categories
579 """
--> 580 to_concat = [self._is_dtype_compat(c) for c in to_concat]
581 codes = np.concatenate([c.codes for c in to_concat])
582 result = self._create_from_codes(codes, name=name)
/home/pwaller/.local/lib/python3.5/site-packages/pandas/indexes/category.py in <listcomp>(.0)
578 ValueError if other is not in the categories
579 """
--> 580 to_concat = [self._is_dtype_compat(c) for c in to_concat]
581 codes = np.concatenate([c.codes for c in to_concat])
582 result = self._create_from_codes(codes, name=name)
AttributeError: 'Index' object has no attribute '_is_dtype_compat'
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-43-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: None
pip: 8.1.1
setuptools: 28.6.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.1.2
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14450/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14450/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14451
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14451/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14451/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14451/events
|
https://github.com/pandas-dev/pandas/issues/14451
| 183,916,492 |
MDU6SXNzdWUxODM5MTY0OTI=
| 14,451 |
pandas performance hotspots
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19982850?v=4",
"events_url": "https://api.github.com/users/makeyourowntextminingtoolkit/events{/privacy}",
"followers_url": "https://api.github.com/users/makeyourowntextminingtoolkit/followers",
"following_url": "https://api.github.com/users/makeyourowntextminingtoolkit/following{/other_user}",
"gists_url": "https://api.github.com/users/makeyourowntextminingtoolkit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/makeyourowntextminingtoolkit",
"id": 19982850,
"login": "makeyourowntextminingtoolkit",
"node_id": "MDQ6VXNlcjE5OTgyODUw",
"organizations_url": "https://api.github.com/users/makeyourowntextminingtoolkit/orgs",
"received_events_url": "https://api.github.com/users/makeyourowntextminingtoolkit/received_events",
"repos_url": "https://api.github.com/users/makeyourowntextminingtoolkit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/makeyourowntextminingtoolkit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/makeyourowntextminingtoolkit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/makeyourowntextminingtoolkit"
}
|
[
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 9 | 2016-10-19T09:54:52Z | 2016-10-24T15:11:19Z | 2016-10-20T23:08:27Z |
NONE
| null |
#### Context
I'm writing a text mining toolkit, and decided to try pandas because it offered convenience row-and-column labelled access. Numpy doesn't, and structured numpy arrays only have named columns.
#### Performance Problem
Indexing text, and manipulating dataframes of word co-occurrence/relevance appeared to be very slow, so I profiled my code using %time, cProfile and pprofile.
The following 2 blogs detail this work:
[http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/10/profiling-indexing-relevance-and-co.html](http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/10/profiling-indexing-relevance-and-co.html)
[http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/10/profiling-indexing-relevance-and-co_16.html](http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/10/profiling-indexing-relevance-and-co_16.html)
#### Key Findings
It seems that some operations are **really** slow:
- growing a pandas dataframe using df.ix[a,b] = value ... 96% time of a profiled function is in indexing.py __setitem__
- performing cell calculations eg df.ix[a,b] += something .. one example saw 60% of a function doing an in-place increment!
- performing calculations on rows eg df.loc[a] = somethng ... 37% of a function is spent doing df.loc[a] = df.loc[a] \* factor
#### Solution?
I know the optimal use-case for pandas is working with whole-arrays and columns at a time .. but this performance seems pretty bad.
Does the pandas project consider it a priority to improve this?
My initial testing with pure numpy and also h5py (vs pandas.HD5) seems to show massive improvements .. but at a loss of convenience.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14451/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14451/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14452
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14452/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14452/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14452/events
|
https://github.com/pandas-dev/pandas/pull/14452
| 183,991,240 |
MDExOlB1bGxSZXF1ZXN0OTAwMzA0MzY=
| 14,452 |
DOC:updated docstring in .to_datetime()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6829331?v=4",
"events_url": "https://api.github.com/users/keshavramaswamy/events{/privacy}",
"followers_url": "https://api.github.com/users/keshavramaswamy/followers",
"following_url": "https://api.github.com/users/keshavramaswamy/following{/other_user}",
"gists_url": "https://api.github.com/users/keshavramaswamy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/keshavramaswamy",
"id": 6829331,
"login": "keshavramaswamy",
"node_id": "MDQ6VXNlcjY4MjkzMzE=",
"organizations_url": "https://api.github.com/users/keshavramaswamy/orgs",
"received_events_url": "https://api.github.com/users/keshavramaswamy/received_events",
"repos_url": "https://api.github.com/users/keshavramaswamy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/keshavramaswamy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/keshavramaswamy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/keshavramaswamy"
}
|
[
{
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 5 | 2016-10-19T15:13:56Z | 2016-10-29T17:11:45Z | 2016-10-24T22:28:17Z |
CONTRIBUTOR
| null |
- [x] closes #14448
- [ ] 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/14452/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14452/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14452.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14452",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14452.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14452"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14453
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14453/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14453/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14453/events
|
https://github.com/pandas-dev/pandas/pull/14453
| 184,007,855 |
MDExOlB1bGxSZXF1ZXN0OTAwNDI1MTY=
| 14,453 |
BUG: Catch overflow in both directions for checked add
|
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 9 | 2016-10-19T16:13:28Z | 2016-10-24T23:51:04Z | 2016-10-22T09:49:40Z |
MEMBER
| null |
Port of #14324 after project name 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/14453/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14453/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14453.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14453",
"merged_at": "2016-10-22T09:49:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14453.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14453"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14454
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14454/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14454/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14454/events
|
https://github.com/pandas-dev/pandas/issues/14454
| 184,010,425 |
MDU6SXNzdWUxODQwMTA0MjU=
| 14,454 |
Unable to store category data in panels
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3998443?v=4",
"events_url": "https://api.github.com/users/tonymowers/events{/privacy}",
"followers_url": "https://api.github.com/users/tonymowers/followers",
"following_url": "https://api.github.com/users/tonymowers/following{/other_user}",
"gists_url": "https://api.github.com/users/tonymowers/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tonymowers",
"id": 3998443,
"login": "tonymowers",
"node_id": "MDQ6VXNlcjM5OTg0NDM=",
"organizations_url": "https://api.github.com/users/tonymowers/orgs",
"received_events_url": "https://api.github.com/users/tonymowers/received_events",
"repos_url": "https://api.github.com/users/tonymowers/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tonymowers/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tonymowers/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tonymowers"
}
|
[
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-19T16:23:39Z | 2018-07-06T20:21:11Z | 2016-10-20T23:07:57Z |
NONE
| null |
#### Create a dataframe with a variable of dtype category and then convert to a panel
``` python
# A dataframe with a category variable
df = pd.DataFrame({ 'day' : [1,2,3], 'month' : ['a','b','c'], 'dow' : ['mon','mon','thur' ]})
df = df.set_index(['day','month'])
df.dow = df.dow.astype('category')
# Transform to panel and check the dtype
df.to_panel().dtypes
#### Expected Output
dow category
dtype: object
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: 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.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
# The variable was converted from a category to an object when put into a panel
dow object
dtype: object
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14454/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14454/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14455
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14455/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14455/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14455/events
|
https://github.com/pandas-dev/pandas/pull/14455
| 184,033,198 |
MDExOlB1bGxSZXF1ZXN0OTAwNjA3Mjk=
| 14,455 |
ERR: qcut uniquess checking
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3426091?v=4",
"events_url": "https://api.github.com/users/ashishsingal1/events{/privacy}",
"followers_url": "https://api.github.com/users/ashishsingal1/followers",
"following_url": "https://api.github.com/users/ashishsingal1/following{/other_user}",
"gists_url": "https://api.github.com/users/ashishsingal1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ashishsingal1",
"id": 3426091,
"login": "ashishsingal1",
"node_id": "MDQ6VXNlcjM0MjYwOTE=",
"organizations_url": "https://api.github.com/users/ashishsingal1/orgs",
"received_events_url": "https://api.github.com/users/ashishsingal1/received_events",
"repos_url": "https://api.github.com/users/ashishsingal1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ashishsingal1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashishsingal1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ashishsingal1"
}
|
[
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 9 | 2016-10-19T18:02:55Z | 2016-12-28T14:39:53Z | 2016-12-27T22:24:56Z |
CONTRIBUTOR
| null |
- [x] closes #7751
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Add option to drop non-unique bins.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14455/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14455/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14455.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14455",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14455.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14455"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14456
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14456/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14456/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14456/events
|
https://github.com/pandas-dev/pandas/pull/14456
| 184,058,647 |
MDExOlB1bGxSZXF1ZXN0OTAwNzkxNzA=
| 14,456 |
DOC: fix pd.to_datetime documentation (issue #14448)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11353903?v=4",
"events_url": "https://api.github.com/users/tarun16feb/events{/privacy}",
"followers_url": "https://api.github.com/users/tarun16feb/followers",
"following_url": "https://api.github.com/users/tarun16feb/following{/other_user}",
"gists_url": "https://api.github.com/users/tarun16feb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tarun16feb",
"id": 11353903,
"login": "tarun16feb",
"node_id": "MDQ6VXNlcjExMzUzOTAz",
"organizations_url": "https://api.github.com/users/tarun16feb/orgs",
"received_events_url": "https://api.github.com/users/tarun16feb/received_events",
"repos_url": "https://api.github.com/users/tarun16feb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tarun16feb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tarun16feb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tarun16feb"
}
|
[
{
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
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-10-19T19:56:33Z | 2016-10-20T10:22:18Z | 2016-10-20T01:12:15Z |
NONE
| null |
Dupe of #14452
- [x] closes #14448
- [ ] 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/14456/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14456/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14456.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14456",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14456.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14456"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14457
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14457/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14457/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14457/events
|
https://github.com/pandas-dev/pandas/issues/14457
| 184,081,457 |
MDU6SXNzdWUxODQwODE0NTc=
| 14,457 |
groupby transform producing different results depending on whether a lambda function was passed or a numpy function was passed
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1900410?v=4",
"events_url": "https://api.github.com/users/pirsquared/events{/privacy}",
"followers_url": "https://api.github.com/users/pirsquared/followers",
"following_url": "https://api.github.com/users/pirsquared/following{/other_user}",
"gists_url": "https://api.github.com/users/pirsquared/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pirsquared",
"id": 1900410,
"login": "pirsquared",
"node_id": "MDQ6VXNlcjE5MDA0MTA=",
"organizations_url": "https://api.github.com/users/pirsquared/orgs",
"received_events_url": "https://api.github.com/users/pirsquared/received_events",
"repos_url": "https://api.github.com/users/pirsquared/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pirsquared/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pirsquared/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pirsquared"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 0 | 2016-10-19T21:40:43Z | 2016-10-25T10:55:04Z | 2016-10-25T10:55:04Z |
NONE
| null |
stackoverflow
http://stackoverflow.com/q/40141881/2336654
``` python
import pandas as pd
import numpy as np
df = pd.DataFrame(dict(A=['a', 'a'], B=[0, 1]))
print(df.groupby('A').transform(np.mean))
# is no the same as
print(df.groupby('A').transform(lambda x: np.mean(x)))
```
#### Output of `pd.show_versions()`
<details>
## 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
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: 0.2.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14457/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14457/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14458
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14458/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14458/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14458/events
|
https://github.com/pandas-dev/pandas/pull/14458
| 184,100,629 |
MDExOlB1bGxSZXF1ZXN0OTAxMTAwODY=
| 14,458 |
BUG: Set frequency for empty Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5206277?v=4",
"events_url": "https://api.github.com/users/sahildua2305/events{/privacy}",
"followers_url": "https://api.github.com/users/sahildua2305/followers",
"following_url": "https://api.github.com/users/sahildua2305/following{/other_user}",
"gists_url": "https://api.github.com/users/sahildua2305/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sahildua2305",
"id": 5206277,
"login": "sahildua2305",
"node_id": "MDQ6VXNlcjUyMDYyNzc=",
"organizations_url": "https://api.github.com/users/sahildua2305/orgs",
"received_events_url": "https://api.github.com/users/sahildua2305/received_events",
"repos_url": "https://api.github.com/users/sahildua2305/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sahildua2305/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sahildua2305/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sahildua2305"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 8 | 2016-10-19T23:36:04Z | 2017-03-03T13:17:14Z | 2017-03-03T13:16:14Z |
CONTRIBUTOR
| null |
- [x] closes #14320
- [x] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Alternative to #14340
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14458/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14458/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14458.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14458",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14458.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14458"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14459
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14459/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14459/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14459/events
|
https://github.com/pandas-dev/pandas/issues/14459
| 184,212,730 |
MDU6SXNzdWUxODQyMTI3MzA=
| 14,459 |
Conflict b/w skiprows and default quotechar kwargs to pandas.read_table
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4",
"events_url": "https://api.github.com/users/rahulporuri/events{/privacy}",
"followers_url": "https://api.github.com/users/rahulporuri/followers",
"following_url": "https://api.github.com/users/rahulporuri/following{/other_user}",
"gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rahulporuri",
"id": 1926457,
"login": "rahulporuri",
"node_id": "MDQ6VXNlcjE5MjY0NTc=",
"organizations_url": "https://api.github.com/users/rahulporuri/orgs",
"received_events_url": "https://api.github.com/users/rahulporuri/received_events",
"repos_url": "https://api.github.com/users/rahulporuri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rahulporuri"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 14 | 2016-10-20T12:13:41Z | 2016-10-31T20:39:59Z | 2016-10-31T20:39:59Z |
NONE
| null |
#### A small, complete example of the issue
while trying to open a data file similar to
```
a
b"
c
d
e"
a,b,c
1,2,3
4,5,6
7,8,9
```
i expect the following code
```
python -c "import pandas; df = pandas.read_table('quoted_data.csv', skiprows=5, sep=','); print df"
```
#### Expected Output
```
a b c
0 1 2 3
1 4 5 6
2 7 8 9
```
#### Observed Output
```
Empty DataFrame
Columns: [7,8,9]
Index: []
```
### Further Insight
```
python -c "import pandas; df = pandas.read_table('quoted_data.csv', skiprows=2, sep=','); print df"
```
surprisingly works. also,
```
python -c "import pandas; df = pandas.read_table('quoted_data.csv', skiprows=5, quotechar="?", sep=','); print df"
```
works
The behavior changed between `pandas` `0.18.0` and `0.18.1`. we suspect changes made in https://github.com/pandas-dev/pandas/pull/12900 to be causing this.
Note that the difference in `skiprows` values that works (2) and that doesn't (5) is the same as the number of lines in the file between quote chars.
Apologies for the noise if this has already been reported or is being addressed.
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 16.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 23.1.0
Cython: 0.24
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14459/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14459/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14460
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14460/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14460/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14460/events
|
https://github.com/pandas-dev/pandas/issues/14460
| 184,213,943 |
MDU6SXNzdWUxODQyMTM5NDM=
| 14,460 |
Strip columns/column names in data frame of white spaces
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4",
"events_url": "https://api.github.com/users/rahulporuri/events{/privacy}",
"followers_url": "https://api.github.com/users/rahulporuri/followers",
"following_url": "https://api.github.com/users/rahulporuri/following{/other_user}",
"gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rahulporuri",
"id": 1926457,
"login": "rahulporuri",
"node_id": "MDQ6VXNlcjE5MjY0NTc=",
"organizations_url": "https://api.github.com/users/rahulporuri/orgs",
"received_events_url": "https://api.github.com/users/rahulporuri/received_events",
"repos_url": "https://api.github.com/users/rahulporuri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rahulporuri"
}
|
[
{
"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"
}
] |
open
| false | null |
[] | null | 9 | 2016-10-20T12:19:37Z | 2021-05-02T00:33:43Z | null |
NONE
| null |
This is more of a question than a bug.
#### A small, complete example of the issue
while opening a data file similar to
```
a , b , c , d
1 , 2 , 3 , 4
5 , 6 , 7 , 8
```
using
``` python
python -c "import pandas; df = pandas.read_table('unstripped_data.csv', sep=','); print df.columns"
```
#### Observed Output
`Index([u' a ', u' b ', u' c ', u' d '], dtype='object')`
#### Expected Output
`Index([u'a', u'b', u'c', u'd'], dtype='object')`
We expected that the column names/columns be stripped of white spaces.
Apologies for the noise if this has already been reported or is being addressed.
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 16.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 23.1.0
Cython: 0.24
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14460/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14460/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14461
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14461/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14461/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14461/events
|
https://github.com/pandas-dev/pandas/issues/14461
| 184,272,494 |
MDU6SXNzdWUxODQyNzI0OTQ=
| 14,461 |
pd.Series.asof performance regression: 14x slower
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/106273?v=4",
"events_url": "https://api.github.com/users/laudney/events{/privacy}",
"followers_url": "https://api.github.com/users/laudney/followers",
"following_url": "https://api.github.com/users/laudney/following{/other_user}",
"gists_url": "https://api.github.com/users/laudney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laudney",
"id": 106273,
"login": "laudney",
"node_id": "MDQ6VXNlcjEwNjI3Mw==",
"organizations_url": "https://api.github.com/users/laudney/orgs",
"received_events_url": "https://api.github.com/users/laudney/received_events",
"repos_url": "https://api.github.com/users/laudney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laudney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laudney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laudney"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 9 | 2016-10-20T16:05:57Z | 2016-10-26T08:16:57Z | 2016-10-26T08:16:57Z |
CONTRIBUTOR
| null |
#### pd.Series.asof takes 14x longer in 0.19.0 than 0.18.1
``` python
In[14]: pd.__version__
Out[14]: '0.18.1'
In[15]: s = pd.Series([1, 1, 1, np.nan, np.nan])
In[16]: %timeit s.asof(4)
The slowest run took 8.25 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 8.96 µs per loop
In[8]: pd.__version__
Out[8]: '0.19.0'
In[9]: s = pd.Series([1, 1, 1, np.nan, np.nan])
In[10]: %timeit s.asof(4)
10000 loops, best of 3: 125 µs per loop
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14461/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14461/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14462
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14462/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14462/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14462/events
|
https://github.com/pandas-dev/pandas/issues/14462
| 184,318,879 |
MDU6SXNzdWUxODQzMTg4Nzk=
| 14,462 |
Alternative serialization for text data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4",
"events_url": "https://api.github.com/users/mrocklin/events{/privacy}",
"followers_url": "https://api.github.com/users/mrocklin/followers",
"following_url": "https://api.github.com/users/mrocklin/following{/other_user}",
"gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrocklin",
"id": 306380,
"login": "mrocklin",
"node_id": "MDQ6VXNlcjMwNjM4MA==",
"organizations_url": "https://api.github.com/users/mrocklin/orgs",
"received_events_url": "https://api.github.com/users/mrocklin/received_events",
"repos_url": "https://api.github.com/users/mrocklin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrocklin"
}
|
[
{
"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": "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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "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"
}
] |
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-10-20T19:27:26Z | 2020-09-22T10:22:28Z | null |
CONTRIBUTOR
| null |
Pandas DataFrames containing text columns are expensive to serialize. This affects dask.dataframe performance in multiprocessing or distributed settings.
### Pickle is expensive
In particular the current solution of using `pickle.dumps` for object dtype columns can be needlessly expensive when all of the values in the column are text. In this case fairly naive solutions, like `msgpack` can be much much faster.
Here is an old blogpost on the topic: http://matthewrocklin.com/blog/work/2015/03/16/Fast-Serialization
And an image

### Alternatives
There are naive solutions like msgpack (already in pandas) or encoding the text directly.
There are more sophisticated solutions as well that would provide efficient packing, including with repeated elements.
### But sometimes objects are objects
One concern here is that sometimes the Python objects aren't text. I propose that Pandas does a check each time or asks for forgiveness on an exception.
Anyway, I would find this valuable. It would help to reduce bottlenecks in dask.dataframe in some situations.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14462/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14462/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14463
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14463/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14463/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14463/events
|
https://github.com/pandas-dev/pandas/issues/14463
| 184,336,324 |
MDU6SXNzdWUxODQzMzYzMjQ=
| 14,463 |
ExtractAll on a single pattern
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16885848?v=4",
"events_url": "https://api.github.com/users/i-frost/events{/privacy}",
"followers_url": "https://api.github.com/users/i-frost/followers",
"following_url": "https://api.github.com/users/i-frost/following{/other_user}",
"gists_url": "https://api.github.com/users/i-frost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/i-frost",
"id": 16885848,
"login": "i-frost",
"node_id": "MDQ6VXNlcjE2ODg1ODQ4",
"organizations_url": "https://api.github.com/users/i-frost/orgs",
"received_events_url": "https://api.github.com/users/i-frost/received_events",
"repos_url": "https://api.github.com/users/i-frost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/i-frost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/i-frost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/i-frost"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2016-10-20T20:46:27Z | 2016-10-21T10:41:59Z | 2016-10-21T10:41:43Z |
NONE
| null |
``` python
s = pd.DataFrame(["I love you", "Pandas", "<3"], index=["A", "B", "C"],columns=['a'])
io=r"\b(Pandas)\b"
s['a'].str.extractall(io)
```
#### Expected Output
```
0
```
match
B 0 Pandas
#### Output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-27-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: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: 0.999999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
<details>
# Paste the output here
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/strings.py", line 1621, in extractall
return str_extractall(self._orig, pat, flags=flags)
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/strings.py", line 716, in str_extractall
result = DataFrame(match_list, index, columns)
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 263, in __init__
arrays, columns = _to_arrays(data, columns, dtype=dtype)
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5352, in _to_arrays
dtype=dtype)
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5431, in _list_to_arrays
coerce_float=coerce_float)
File "/home/ian/anaconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5489, in _convert_object_array
'columns' % (len(columns), len(content)))
AssertionError: 1 columns passed, passed data had 6 columns
</details>
I am new to extractall() and the google resources are somewhat scarce.
I am trying to find the rows with the most hits of the words in a string so I am using normal regex syntax to construct a pattern to look for all whole words. It works fine if I look for more than one word:
> > > io=r"\b(I)\b|\b(love)\b|\b(you)\b"
> > > s['a'].str.extractall(io)
> > > 0 1 2
> > > match
> > > A 0 I NaN NaN
> > > 1 NaN love NaN
> > > 2 NaN NaN you
But for one word it fails, if use just extract then it works.
> > > io=r"\b(Pandas)\b"
> > > s['a'].str.extract(io)
> > > A NaN
> > > B Pandas
> > > C NaN
I then obviously have to change my logic based on if it is a single or multi word.
Unless I add a bogus lookup!
> > > io=r"\b(Pandas)\b|\b(blahblahblah)\b"
> > > s['a'].str.extractall(io)
> > > 0 1
> > > match
> > > B 0 Pandas NaN
Am I doing something daft? Is this a bug or maybe a feature if so could this be changed to work on a single lookup?
Thanks
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14463/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14463/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14464
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14464/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14464/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14464/events
|
https://github.com/pandas-dev/pandas/issues/14464
| 184,377,161 |
MDU6SXNzdWUxODQzNzcxNjE=
| 14,464 |
Allow DataFrame.apply() to accept dict of funcs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8622473?v=4",
"events_url": "https://api.github.com/users/mattayes/events{/privacy}",
"followers_url": "https://api.github.com/users/mattayes/followers",
"following_url": "https://api.github.com/users/mattayes/following{/other_user}",
"gists_url": "https://api.github.com/users/mattayes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattayes",
"id": 8622473,
"login": "mattayes",
"node_id": "MDQ6VXNlcjg2MjI0NzM=",
"organizations_url": "https://api.github.com/users/mattayes/orgs",
"received_events_url": "https://api.github.com/users/mattayes/received_events",
"repos_url": "https://api.github.com/users/mattayes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattayes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattayes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattayes"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-10-21T01:08:01Z | 2017-10-27T19:06:18Z | 2017-04-14T15:37:04Z |
CONTRIBUTOR
| null |
When using DataFrame.apply(), it would be helpful to be able to apply different functions to different columns. There's a nice workaround on [StackOverflow](http://stackoverflow.com/questions/26434123/pandas-apply-different-functions-to-different-columns):
``` python
import numpy as np
import pandas as pd
def multi_func(functions):
def f(col):
return functions[col.name](col)
return f
df = pd.DataFrame(np.random.random((10, 2)), columns=['A', 'B'])
results = df.apply(multi_func({'A': np.mean, 'B': np.sum}))
results
A 0.401456
B 6.845529
dtype: float64
```
My guess is that the changes would be made in [pandas.core.frame.DataFrame](https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py), potentially adding a new `_apply_X` method. Any thoughts/advice?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14464/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14464/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14465
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14465/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14465/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14465/events
|
https://github.com/pandas-dev/pandas/pull/14465
| 184,407,772 |
MDExOlB1bGxSZXF1ZXN0OTAzMjgzNTA=
| 14,465 |
MAINT: Use check_output when merging.
|
{
"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": "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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 2 | 2016-10-21T06:18:41Z | 2016-10-24T22:10:15Z | 2016-10-24T22:10:14Z |
MEMBER
| null |
Since we don't support Python 2.6 anymore, the `check_output` method from `subprocess` is
at our disposal.
Follow-up to #14447.
xref <a href="https://github.com/pandas-dev/pandas/issues/14439#issuecomment-254522055"> #14439 (comment)</a>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14465/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14465/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14465.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14465",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14465.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14465"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14466
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14466/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14466/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14466/events
|
https://github.com/pandas-dev/pandas/pull/14466
| 184,457,251 |
MDExOlB1bGxSZXF1ZXN0OTAzNjMxMDc=
| 14,466 |
BUG: incorrect broadcasting that could casuse dtype coercion in a groupby-transform
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 0 | 2016-10-21T10:53:50Z | 2016-10-25T10:55:04Z | 2016-10-25T10:55:04Z |
CONTRIBUTOR
| null |
closes #14457
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14466/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14466/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14466.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14466",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14466.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14466"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14467
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14467/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14467/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14467/events
|
https://github.com/pandas-dev/pandas/issues/14467
| 184,543,196 |
MDU6SXNzdWUxODQ1NDMxOTY=
| 14,467 |
Dataframe constructor misinterprets `columns` argument if nested list is passed in as the `data` parameter.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4617010?v=4",
"events_url": "https://api.github.com/users/madphysicist/events{/privacy}",
"followers_url": "https://api.github.com/users/madphysicist/followers",
"following_url": "https://api.github.com/users/madphysicist/following{/other_user}",
"gists_url": "https://api.github.com/users/madphysicist/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/madphysicist",
"id": 4617010,
"login": "madphysicist",
"node_id": "MDQ6VXNlcjQ2MTcwMTA=",
"organizations_url": "https://api.github.com/users/madphysicist/orgs",
"received_events_url": "https://api.github.com/users/madphysicist/received_events",
"repos_url": "https://api.github.com/users/madphysicist/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/madphysicist/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/madphysicist/subscriptions",
"type": "User",
"url": "https://api.github.com/users/madphysicist"
}
|
[
{
"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 |
{
"avatar_url": "https://avatars.githubusercontent.com/u/55150103?v=4",
"events_url": "https://api.github.com/users/harri471/events{/privacy}",
"followers_url": "https://api.github.com/users/harri471/followers",
"following_url": "https://api.github.com/users/harri471/following{/other_user}",
"gists_url": "https://api.github.com/users/harri471/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/harri471",
"id": 55150103,
"login": "harri471",
"node_id": "MDQ6VXNlcjU1MTUwMTAz",
"organizations_url": "https://api.github.com/users/harri471/orgs",
"received_events_url": "https://api.github.com/users/harri471/received_events",
"repos_url": "https://api.github.com/users/harri471/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/harri471/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harri471/subscriptions",
"type": "User",
"url": "https://api.github.com/users/harri471"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/55150103?v=4",
"events_url": "https://api.github.com/users/harri471/events{/privacy}",
"followers_url": "https://api.github.com/users/harri471/followers",
"following_url": "https://api.github.com/users/harri471/following{/other_user}",
"gists_url": "https://api.github.com/users/harri471/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/harri471",
"id": 55150103,
"login": "harri471",
"node_id": "MDQ6VXNlcjU1MTUwMTAz",
"organizations_url": "https://api.github.com/users/harri471/orgs",
"received_events_url": "https://api.github.com/users/harri471/received_events",
"repos_url": "https://api.github.com/users/harri471/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/harri471/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harri471/subscriptions",
"type": "User",
"url": "https://api.github.com/users/harri471"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 8 | 2016-10-21T18:33:45Z | 2021-05-19T12:53:57Z | 2021-05-19T12:53:57Z |
NONE
| null |
This issue is based on Stack Overflow question http://stackoverflow.com/q/40182072/2988730.
#### A small, complete example of the issue
``` python
df = pd.DataFrame([[1, 2, 3], [4, 5, 6]],
index=[['gibberish']*2, [0, 1]],
columns=[['baldersash']*3, [10, 20, 30]])
```
The result is
```
File "<ipython-input-321-2695882ac68b>", line 3, in <module>
columns=[['baldersash']*3, [10, 20, 30]])
File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 263, in __init__
arrays, columns = _to_arrays(data, columns, dtype=dtype)
File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5352, in _to_arrays
dtype=dtype)
File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5431, in _list_to_arrays
coerce_float=coerce_float)
File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/pandas/core/frame.py", line 5489, in _convert_object_array
'columns' % (len(columns), len(content)))
AssertionError: 2 columns passed, passed data had 3 columns
```
#### Expected Output
```
baldersash
10 20 30
gibberish 0 1 2 3
1 4 5 6
```
The surprising thing here is that any of the following seem to work just fine:
1. Supplying a numpy array as `data`:
``` python
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6]]),
index=[['gibberish']*2, [0, 1]],
columns=[['baldersash']*3, [10, 20, 30]])
```
Results in
```
baldersash
10 20 30
gibberish 0 1 2 3
1 4 5 6
```
2. Reducing the size of the input array to have two columns:
``` python
df = pd.DataFrame([[1, 2], [3, 4]],
index=[['gibberish']*2, [0, 1]],
columns=[['baldersash']*2, [10, 20]])
```
Results in
```
baldersash
10 20
gibberish 0 1 2
1 3 4
```
3. Omitting the `columns` argument:
``` python
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6]]),
index=[['gibberish']*2, [0, 1]])
```
Results in
```
0 1 2
gibberish 0 1 2 3
1 4 5 6
```
4. Using a single-level list for the `columns` argument:
``` python
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6]]),
index=[['gibberish']*2, [0, 1]],
columns=[10, 20, 30])
```
Results in
```
10 20 30
gibberish 0 1 2 3
1 4 5 6
```
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.29.2.el6.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: 25.1.6
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.3.5
xlrd: None
xlwt: None
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14467/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14467/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14468
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14468/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14468/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14468/events
|
https://github.com/pandas-dev/pandas/issues/14468
| 184,546,274 |
MDU6SXNzdWUxODQ1NDYyNzQ=
| 14,468 |
adding static type checking with mypy
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
}
| 38 | 2016-10-21T18:56:32Z | 2019-08-05T20:39:47Z | 2019-03-26T15:45:07Z |
CONTRIBUTOR
| null |
http://blog.zulip.org/2016/10/13/static-types-in-python-oh-mypy/
might be interesting if someone is looking for a project :>
|
{
"+1": 15,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 15,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14468/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14468/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14469
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14469/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14469/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14469/events
|
https://github.com/pandas-dev/pandas/issues/14469
| 184,569,362 |
MDU6SXNzdWUxODQ1NjkzNjI=
| 14,469 |
pd.read_html() not working showing error in _html5lib.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7278807?v=4",
"events_url": "https://api.github.com/users/prakritidev/events{/privacy}",
"followers_url": "https://api.github.com/users/prakritidev/followers",
"following_url": "https://api.github.com/users/prakritidev/following{/other_user}",
"gists_url": "https://api.github.com/users/prakritidev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prakritidev",
"id": 7278807,
"login": "prakritidev",
"node_id": "MDQ6VXNlcjcyNzg4MDc=",
"organizations_url": "https://api.github.com/users/prakritidev/orgs",
"received_events_url": "https://api.github.com/users/prakritidev/received_events",
"repos_url": "https://api.github.com/users/prakritidev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prakritidev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prakritidev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prakritidev"
}
|
[
{
"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"
}
| 3 | 2016-10-21T21:04:48Z | 2016-10-22T08:33:13Z | 2016-10-22T08:33:07Z |
NONE
| null |
#### A small, complete example of the issue
pd.read_html() not working showing error in _html5lib.py,line 70 class TreeBuilderForHtml5lib
``` python
import pandas as pd
import html5lib
import lxml
data = pd.read_html('https://blockchain.info/blocks')
```
gives
```
File "C:\Anaconda2\lib\site-packages\bs4\builder\_html5lib.py", line 70, in <module>
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
```
#### Output of `pd.show_versions()`
<details>
# Paste the output here
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 20.3
Cython: 0.23.4
numpy: 1.11.2
scipy: 0.17.0
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.3
pytz: 2016.7
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: None
html5lib: 0.999999999
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 1,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14469/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14469/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14470
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14470/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14470/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14470/events
|
https://github.com/pandas-dev/pandas/pull/14470
| 184,594,016 |
MDExOlB1bGxSZXF1ZXN0OTA0NjEzODc=
| 14,470 |
DOC: update readme for repo move
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-10-22T00:00:25Z | 2016-10-22T09:07:31Z | 2016-10-22T00:37:02Z |
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14470/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14470/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14470.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14470",
"merged_at": "2016-10-22T00:37:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14470.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14470"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/14471
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14471/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14471/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14471/events
|
https://github.com/pandas-dev/pandas/issues/14471
| 184,595,719 |
MDU6SXNzdWUxODQ1OTU3MTk=
| 14,471 |
DataFrame Operations on Large Frames Seems To Crash Python Kernel on MacOS Yosemite At Random
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6879573?v=4",
"events_url": "https://api.github.com/users/jgoad/events{/privacy}",
"followers_url": "https://api.github.com/users/jgoad/followers",
"following_url": "https://api.github.com/users/jgoad/following{/other_user}",
"gists_url": "https://api.github.com/users/jgoad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jgoad",
"id": 6879573,
"login": "jgoad",
"node_id": "MDQ6VXNlcjY4Nzk1NzM=",
"organizations_url": "https://api.github.com/users/jgoad/orgs",
"received_events_url": "https://api.github.com/users/jgoad/received_events",
"repos_url": "https://api.github.com/users/jgoad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jgoad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jgoad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jgoad"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false | null |
[] | null | 3 | 2016-10-22T00:21:31Z | 2018-02-13T12:02:02Z | 2018-02-13T12:02:02Z |
NONE
| null |
Apologies for not following the requested format, but there is no output for this error. Running the script from command line will occasionally execute without error, but often python will crash without error. This occurs with both python 3.5 and 2.7, and with pandas 0.18.1 and 0.19.0.
The code came directly from a windows machine where it ran fine and now it does not run reliably on Mac... In one instance it happens when merging two large frame and in another it occurs when using groupby.
I know this is extremely obscure but does anyone have 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/14471/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14471/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14472
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14472/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14472/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14472/events
|
https://github.com/pandas-dev/pandas/pull/14472
| 184,597,506 |
MDExOlB1bGxSZXF1ZXN0OTA0NjM4OTQ=
| 14,472 |
BUG: downcast = 'unsigend' on 0 would would not downcast to unsigned.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20782321?v=4",
"events_url": "https://api.github.com/users/verhalenn/events{/privacy}",
"followers_url": "https://api.github.com/users/verhalenn/followers",
"following_url": "https://api.github.com/users/verhalenn/following{/other_user}",
"gists_url": "https://api.github.com/users/verhalenn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/verhalenn",
"id": 20782321,
"login": "verhalenn",
"node_id": "MDQ6VXNlcjIwNzgyMzIx",
"organizations_url": "https://api.github.com/users/verhalenn/orgs",
"received_events_url": "https://api.github.com/users/verhalenn/received_events",
"repos_url": "https://api.github.com/users/verhalenn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/verhalenn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/verhalenn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/verhalenn"
}
|
[
{
"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": 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-10-22T00:47:20Z | 2016-11-02T10:47:10Z | 2016-10-25T10:47:51Z |
NONE
| null |
Continuation of #14412
- [ ] closes #14401
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Once again I had some very bizarre issues with git. Hope this does it this time.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14472/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14472/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14472.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14472",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14472.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14472"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14473
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14473/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14473/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14473/events
|
https://github.com/pandas-dev/pandas/pull/14473
| 184,600,253 |
MDExOlB1bGxSZXF1ZXN0OTA0NjU2MjM=
| 14,473 |
ERR: Fix GH13139: better error message on invalid pd.eval and df.query input
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7226969?v=4",
"events_url": "https://api.github.com/users/tserafim/events{/privacy}",
"followers_url": "https://api.github.com/users/tserafim/followers",
"following_url": "https://api.github.com/users/tserafim/following{/other_user}",
"gists_url": "https://api.github.com/users/tserafim/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tserafim",
"id": 7226969,
"login": "tserafim",
"node_id": "MDQ6VXNlcjcyMjY5Njk=",
"organizations_url": "https://api.github.com/users/tserafim/orgs",
"received_events_url": "https://api.github.com/users/tserafim/received_events",
"repos_url": "https://api.github.com/users/tserafim/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tserafim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tserafim/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tserafim"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-22T01:35:07Z | 2016-10-24T22:13:28Z | 2016-10-24T22:13:24Z |
CONTRIBUTOR
| null |
- [x] closes #13139
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Added test case to check for invalid input(empy string) on pd.eval('') and df.query('').
Used existing helper function(_check_expression)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14473/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14473/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14473.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14473",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14473.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14473"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14474
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14474/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14474/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14474/events
|
https://github.com/pandas-dev/pandas/issues/14474
| 184,621,399 |
MDU6SXNzdWUxODQ2MjEzOTk=
| 14,474 |
RLS: v0.19.1
|
{
"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": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 10 | 2016-10-22T09:56:32Z | 2016-11-07T20:04:30Z | 2016-11-07T20:04:30Z |
MEMBER
| null |
Been busy with other things last week, but next week I should have some more time for pandas and I could prepare for a 0.19.1 release (eg somewhere by the end of next week/beginning week after). Sounds OK?
Open issues/PRs: https://github.com/pandas-dev/pandas/milestones/0.19.1
Some issues still that would be nice to get fixed next week before releasing.
@pandas-dev/pandas-core
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14474/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14474/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14475
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14475/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14475/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14475/events
|
https://github.com/pandas-dev/pandas/pull/14475
| 184,626,009 |
MDExOlB1bGxSZXF1ZXN0OTA0Nzk1NDM=
| 14,475 |
BLD: don't require cython on sdist install
|
{
"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": "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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-22T11:49:26Z | 2016-10-24T22:24:19Z | 2016-10-24T22:24:18Z |
CONTRIBUTOR
| null |
- [x] closes #14204
- [x] tests not needed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
We could just make a cython a build-time requirement, but given we already create a sdists with `.c` files, probably makes sense to continue to support it.
I tested this locally, applying this patch on the latest source [release](https://pypi.python.org/packages/58/2c/62ba69f6cf16693fc341df084e8262ebb89f678ddc534164099fc7ddeb0b/pandas-0.19.0.zip#md5=6243f3abeaed035720bd77237bdade53) and it installed into a an environment without cython fine.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14475/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14475/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14475.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14475",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14475.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14475"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14476
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14476/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14476/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14476/events
|
https://github.com/pandas-dev/pandas/pull/14476
| 184,639,227 |
MDExOlB1bGxSZXF1ZXN0OTA0ODY5NjU=
| 14,476 |
PERF: performance regression in Series.asof
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/106273?v=4",
"events_url": "https://api.github.com/users/laudney/events{/privacy}",
"followers_url": "https://api.github.com/users/laudney/followers",
"following_url": "https://api.github.com/users/laudney/following{/other_user}",
"gists_url": "https://api.github.com/users/laudney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laudney",
"id": 106273,
"login": "laudney",
"node_id": "MDQ6VXNlcjEwNjI3Mw==",
"organizations_url": "https://api.github.com/users/laudney/orgs",
"received_events_url": "https://api.github.com/users/laudney/received_events",
"repos_url": "https://api.github.com/users/laudney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laudney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laudney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laudney"
}
|
[
{
"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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 19 | 2016-10-22T16:21:02Z | 2016-10-26T08:17:08Z | 2016-10-26T08:16:57Z |
CONTRIBUTOR
| null |
Fix performance regression in Series.asof by avoiding pre-computing nulls and returning value by indexing the underlying ndarray.
- [x] closes #14461
- [x] add asv benchmark
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14476/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14476/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14476.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14476",
"merged_at": "2016-10-26T08:16:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14476.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14476"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14477
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14477/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14477/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14477/events
|
https://github.com/pandas-dev/pandas/issues/14477
| 184,665,418 |
MDU6SXNzdWUxODQ2NjU0MTg=
| 14,477 |
read_csv incompatible with newstr and future
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2185472?v=4",
"events_url": "https://api.github.com/users/larssono/events{/privacy}",
"followers_url": "https://api.github.com/users/larssono/followers",
"following_url": "https://api.github.com/users/larssono/following{/other_user}",
"gists_url": "https://api.github.com/users/larssono/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/larssono",
"id": 2185472,
"login": "larssono",
"node_id": "MDQ6VXNlcjIxODU0NzI=",
"organizations_url": "https://api.github.com/users/larssono/orgs",
"received_events_url": "https://api.github.com/users/larssono/received_events",
"repos_url": "https://api.github.com/users/larssono/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/larssono/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/larssono/subscriptions",
"type": "User",
"url": "https://api.github.com/users/larssono"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 8 | 2016-10-23T01:24:45Z | 2018-08-29T23:46:55Z | 2016-10-26T22:31:40Z |
NONE
| null |
When upgrading the pandas-0.19 I have several tests failing on a package I maintain. These packages are using several imports from future to work with both py2 and py3. It seems there is an issue with using `from __future__ import unicode_literals`
#### A small, complete example of the issue
``` python
import pandas as pd
pd.read_csv('simple.txt', quotechar='"')
from __future__ import unicode_literals
pd.read_csv('simple.txt', quotechar='"')
```
The first reading works the second does not and throws the stack trace attached. ("TypeError: "quotechar" must be string, not unicode")
The example file
[simple.txt](https://github.com/pandas-dev/pandas/files/546124/simple.txt)
#### Expected Output
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 26.0.0
Cython: None
numpy: 1.11.2
scipy: 0.16.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: None
```
TypeError Traceback (most recent call last)
<ipython-input-2-6e275a5a7598> in <module>()
1 from __future__ import unicode_literals
----> 2 pd.read_csv('/Users/lom/simple.csv', quotechar='"')
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
643 skip_blank_lines=skip_blank_lines)
644
--> 645 return _read(filepath_or_buffer, kwds)
646
647 parser_f.__name__ = name
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
386
387 # Create the parser.
--> 388 parser = TextFileReader(filepath_or_buffer, **kwds)
389
390 if (nrows is not None) and (chunksize is not None):
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds)
727 self.options['has_index_names'] = kwds['has_index_names']
728
--> 729 self._make_engine(self.engine)
730
731 def close(self):
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine)
920 def _make_engine(self, engine='c'):
921 if engine == 'c':
--> 922 self._engine = CParserWrapper(self.f, **self.options)
923 else:
924 if engine == 'python':
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, src, **kwds)
1387 kwds['allow_leading_cols'] = self.index_col is not False
1388
-> 1389 self._reader = _parser.TextReader(src, **kwds)
1390
1391 # XXX
pandas/parser.pyx in pandas.parser.TextReader.__cinit__ (pandas/parser.c:4411)()
pandas/parser.pyx in pandas.parser.TextReader._set_quoting (pandas/parser.c:6535)()
TypeError: "quotechar" must be string, not unicode
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14477/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14477/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14478
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14478/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14478/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14478/events
|
https://github.com/pandas-dev/pandas/issues/14478
| 184,704,997 |
MDU6SXNzdWUxODQ3MDQ5OTc=
| 14,478 |
df.to_hdf() blocks some supported pytables compression types ‘blosc:lz4’, ‘blosc:lz4hc’, ‘blosc:snappy’, ‘blosc:zlib’ and ‘blosc:zstd’
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2701562?v=4",
"events_url": "https://api.github.com/users/dragoljub/events{/privacy}",
"followers_url": "https://api.github.com/users/dragoljub/followers",
"following_url": "https://api.github.com/users/dragoljub/following{/other_user}",
"gists_url": "https://api.github.com/users/dragoljub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragoljub",
"id": 2701562,
"login": "dragoljub",
"node_id": "MDQ6VXNlcjI3MDE1NjI=",
"organizations_url": "https://api.github.com/users/dragoljub/orgs",
"received_events_url": "https://api.github.com/users/dragoljub/received_events",
"repos_url": "https://api.github.com/users/dragoljub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragoljub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragoljub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragoljub"
}
|
[
{
"color": "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": "2017-06-07T21:25:14Z",
"closed_issues": 117,
"created_at": "2017-05-05T11:47:57Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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-06-06T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/50",
"id": 2502169,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/50/labels",
"node_id": "MDk6TWlsZXN0b25lMjUwMjE2OQ==",
"number": 50,
"open_issues": 0,
"state": "closed",
"title": "0.20.2",
"updated_at": "2017-06-08T11:19:35Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/50"
}
| 5 | 2016-10-23T18:10:06Z | 2017-05-11T22:55:10Z | 2017-05-11T22:55:09Z |
NONE
| null |
`df.to_hdf()` blocks access to the following compressors offered in pytables 3.3.0: ‘blosc:lz4’, ‘blosc:lz4hc’, ‘blosc:snappy’, ‘blosc:zlib’ and ‘blosc:zstd’.
I would like to try blosc:lz4 compression for some of the bigger data I have to compare size and speed to LZO.
``` python
df.to_hdf(path, 'df', complib='blosc:lz4')
D:\Python27\lib\site-packages\pandas\io\pytables.pyc in __init__(self, path, mode, complevel, complib, fletcher32, **kwargs)
434
435 if complib not in (None, 'blosc', 'bzip2', 'lzo', 'zlib'):
--> 436 raise ValueError("complib only supports 'blosc', 'bzip2', lzo' "
437 "or 'zlib' compression.")
438
ValueError: complib only supports 'blosc', 'bzip2', lzo' or 'zlib' compression.
```
|
{
"+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/14478/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14478/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14479
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14479/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14479/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14479/events
|
https://github.com/pandas-dev/pandas/pull/14479
| 184,712,373 |
MDExOlB1bGxSZXF1ZXN0OTA1Mjc4NTU=
| 14,479 |
API: Rename CParserError to ParserError
|
{
"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": "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"
}
| 27 | 2016-10-23T20:07:05Z | 2016-11-18T13:38:45Z | 2016-11-18T13:38:11Z |
MEMBER
| null |
Title is self-explanatory. Partially resolves #12665.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14479/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14479/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14479.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14479",
"merged_at": "2016-11-18T13:38:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14479.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14479"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14480
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14480/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14480/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14480/events
|
https://github.com/pandas-dev/pandas/issues/14480
| 184,786,633 |
MDU6SXNzdWUxODQ3ODY2MzM=
| 14,480 |
Strip whitespace from column names when usecols in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4",
"events_url": "https://api.github.com/users/rahulporuri/events{/privacy}",
"followers_url": "https://api.github.com/users/rahulporuri/followers",
"following_url": "https://api.github.com/users/rahulporuri/following{/other_user}",
"gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rahulporuri",
"id": 1926457,
"login": "rahulporuri",
"node_id": "MDQ6VXNlcjE5MjY0NTc=",
"organizations_url": "https://api.github.com/users/rahulporuri/orgs",
"received_events_url": "https://api.github.com/users/rahulporuri/received_events",
"repos_url": "https://api.github.com/users/rahulporuri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rahulporuri"
}
|
[
{
"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"
}
| 6 | 2016-10-24T09:09:09Z | 2016-10-24T10:39:00Z | 2016-10-24T10:15:26Z |
NONE
| null |
#### A small, complete example of the issue
when loading a file of the type, where headers have a trailing whitespace,
```
a ,b ,c
1,2,3
4,5,6
```
I would expect the following code to work and give the result
``` python
pandas.read_table('test_data.csv', sep=',', usecols=['a', 'b'])
```
#### Expected Output
```
a b
0 1 2
1 4 5
```
#### Actual Output
Neither the `c` nor the `python` engine produce the expected result.
the tracebacks have been concatenated for brevity.
``` python
/Users/rahulporuri/Github/pandas/pandas/io/parsers.pyc in __init__(self, src, **kwds)
1431
1432 if len(self.names) < len(self.usecols):
-> 1433 raise ValueError("Usecols do not match names.")
1434
1435 self._set_noconvert_columns()
ValueError: Usecols do not match names.
```
``` python
/Users/rahulporuri/Github/pandas/pandas/io/parsers.pyc in _handle_usecols(self, columns, usecols_key)
2199 for u in self.usecols:
2200 if isinstance(u, string_types):
-> 2201 col_indices.append(usecols_key.index(u))
2202 else:
2203 col_indices.append(u)
ValueError: 'a' is not in list
```
This is related to an issue reported earlier https://github.com/pandas-dev/pandas/issues/14460 on stripping columns/column names of whitespaces.
On a side note, if the file has column names with leading whitespaces instead of trailing whitespaces, adding the `skipinitialspace=True` kwarg to `pandas.read_table` produces the expected result.
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: 794f79295484298525dbc8dd3b8ab251ad065e61
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 16.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0+27.g794f792
nose: None
pip: 8.1.2
setuptools: 23.1.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: 4.1.2
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
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
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14480/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14480/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14481
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14481/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14481/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14481/events
|
https://github.com/pandas-dev/pandas/pull/14481
| 184,808,725 |
MDExOlB1bGxSZXF1ZXN0OTA1ODk1ODU=
| 14,481 |
BUG: fix empty intersection of RangeIndex (GH14364)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-24T10:54:53Z | 2016-10-24T22:21:12Z | 2016-10-24T22:20:45Z |
MEMBER
| null |
closes #14364
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14481/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14481/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14481.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14481",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14481.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14481"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14482
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14482/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14482/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14482/events
|
https://github.com/pandas-dev/pandas/issues/14482
| 184,843,547 |
MDU6SXNzdWUxODQ4NDM1NDc=
| 14,482 |
fillna on a string column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2766856?v=4",
"events_url": "https://api.github.com/users/darindillon/events{/privacy}",
"followers_url": "https://api.github.com/users/darindillon/followers",
"following_url": "https://api.github.com/users/darindillon/following{/other_user}",
"gists_url": "https://api.github.com/users/darindillon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/darindillon",
"id": 2766856,
"login": "darindillon",
"node_id": "MDQ6VXNlcjI3NjY4NTY=",
"organizations_url": "https://api.github.com/users/darindillon/orgs",
"received_events_url": "https://api.github.com/users/darindillon/received_events",
"repos_url": "https://api.github.com/users/darindillon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/darindillon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darindillon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/darindillon"
}
|
[
{
"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"
}
| 2 | 2016-10-24T13:40:51Z | 2016-10-24T14:46:05Z | 2016-10-24T14:06:02Z |
NONE
| null |
Using pandas version 0.16.0.
I read a CSV file that has a string column with some missing values, and pandas loads those missing string values as NaN. Pandas won't let me group on that string value, so I'm trying to fillna() with the value "<blank>". But that doesn't work either, pandas overwrites the good values then too.
Yes, I understand fillna is apparently trying to convert the strings to numbers. But then there's no intuitive way to handle missing string values. Can we change fillna to handle missing string values?
``` python
import pandas
import numpy
#The real use case is reading a CSV with missing values, but this demos the issue
df = pandas.DataFrame({ 'x': ['first', numpy.nan, 'third'], 'y' : [1, 2, 3]})
df #Shows we have a missing value in the string column
#I want to group by 'x'. The following won't work because pandas doesn't
#correctly sum the value for the missing row (it ought to be "2" but shows blank).
#Yes, I understand NaN != NaN, so I get why it fails, but then I need a workaround.
df.groupby('x').sum() #shows blank for the missing value, instead of "2".
#OK, so I'll fillna the missing value and then group.
df['x'] = df['x'].fillna('<blank>', inplace=True)
df #BAD! That overwrote all my good string values!!!
```
Since the column was already an object (with just strings) and I'm fillna with a string, it should not have to drop values.
pandas.show_versions()
## INSTALLED VERSIONS
commit: None
python: 3.4.3.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.16.0
nose: None
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: None
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: 2.2.2
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.7.2
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: 0.9.1
apiclient: None
sqlalchemy: 1.0.3
pymysql: None
psycopg2: None
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14482/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14482/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14483
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14483/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14483/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14483/events
|
https://github.com/pandas-dev/pandas/issues/14483
| 184,850,500 |
MDU6SXNzdWUxODQ4NTA1MDA=
| 14,483 |
Enhancement: add "sum" to pandas.describe()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2766856?v=4",
"events_url": "https://api.github.com/users/darindillon/events{/privacy}",
"followers_url": "https://api.github.com/users/darindillon/followers",
"following_url": "https://api.github.com/users/darindillon/following{/other_user}",
"gists_url": "https://api.github.com/users/darindillon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/darindillon",
"id": 2766856,
"login": "darindillon",
"node_id": "MDQ6VXNlcjI3NjY4NTY=",
"organizations_url": "https://api.github.com/users/darindillon/orgs",
"received_events_url": "https://api.github.com/users/darindillon/received_events",
"repos_url": "https://api.github.com/users/darindillon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/darindillon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darindillon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/darindillon"
}
|
[
{
"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": "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"
}
| 25 | 2016-10-24T14:06:12Z | 2017-01-03T20:43:45Z | 2016-11-23T13:06:09Z |
NONE
| null |
Feature request: can we add "sum" to the pandas.describe() method? Not every dataset cares about sum, of course, but enough datasets do care about it that it seems worth adding to the default describe() method. (For instance, financial applications where you have multiple columns representing different scenarios, and you want to see how much profit would be earned of each scenario).
|
{
"+1": 9,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 9,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14483/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14483/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14484
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14484/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14484/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14484/events
|
https://github.com/pandas-dev/pandas/issues/14484
| 184,924,744 |
MDU6SXNzdWUxODQ5MjQ3NDQ=
| 14,484 |
BUG: to_latex outputs string with missing second index level values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23038098?v=4",
"events_url": "https://api.github.com/users/the-alleged-car/events{/privacy}",
"followers_url": "https://api.github.com/users/the-alleged-car/followers",
"following_url": "https://api.github.com/users/the-alleged-car/following{/other_user}",
"gists_url": "https://api.github.com/users/the-alleged-car/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/the-alleged-car",
"id": 23038098,
"login": "the-alleged-car",
"node_id": "MDQ6VXNlcjIzMDM4MDk4",
"organizations_url": "https://api.github.com/users/the-alleged-car/orgs",
"received_events_url": "https://api.github.com/users/the-alleged-car/received_events",
"repos_url": "https://api.github.com/users/the-alleged-car/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/the-alleged-car/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/the-alleged-car/subscriptions",
"type": "User",
"url": "https://api.github.com/users/the-alleged-car"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-12-13T13:05:41Z",
"closed_issues": 160,
"created_at": "2017-10-02T10:21:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2017-12-12T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/52",
"id": 2806806,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/52/labels",
"node_id": "MDk6TWlsZXN0b25lMjgwNjgwNg==",
"number": 52,
"open_issues": 0,
"state": "closed",
"title": "0.21.1",
"updated_at": "2018-02-19T22:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/52"
}
| 3 | 2016-10-24T18:55:28Z | 2017-12-08T11:11:44Z | 2017-12-08T11:11:44Z |
NONE
| null |
I am using pandas to generate a LaTeX string using the to_latex() method on a DataFrame, which is indexed using a MultiIndex object. Running the code snippet produces an incorrect list of strings: the LaTeX table is missing two index numbers.
#### Code Snippet
``` python
import pandas as pd
outliers_lst = [(23240, 0),
(23240, 15),
(23240, 23),
(23240, 31),
(23240, 85),
(38661, 85),
(41231, 85),
(41231, 92),
(46371, 0)]
headers = (['max', 'EC 1', 'S'],
['max', 'EC 1', 'A'],
['max', 'EC 2', 'S'])
table = pd.DataFrame("",index = pd.MultiIndex.from_tuples(sorted(outliers_lst)), columns = pd.MultiIndex.from_tuples(headers))
table.to_latex(index = True, longtable = True, column_format = 'c'*5).split('\n')
```
#### Incorrect Output
```
[u'\\begin{longtable}{cccccccccccccccccccccccccc}',
u'\\toprule',
u' & & max & & \\\\',
u' & & EC 1 & & EC 2 \\\\',
u' & & S & A & S \\\\',
u'\\midrule',
u'\\endhead',
u'\\midrule',
u'\\multicolumn{3}{r}{{Continued on next page}} \\\\',
u'\\midrule',
u'\\endfoot',
u'',
u'\\bottomrule',
u'\\endlastfoot',
u'23240 & 0 & & & \\\\',
u' & 15 & & & \\\\',
u' & 23 & & & \\\\',
u' & 31 & & & \\\\',
u' & 85 & & & \\\\',
u'38661 & & & & \\\\',
u'41231 & & & & \\\\',
u' & 92 & & & \\\\',
u'46371 & 0 & & & \\\\',
u'\\end{longtable}',
u'']
```
#### Correct Output
```
[u'\\begin{longtable}{cccccccccccccccccccccccccc}',
u'\\toprule',
u' & & max & & \\\\',
u' & & EC 1 & & EC 2 \\\\',
u' & & S & A & S \\\\',
u'\\midrule',
u'\\endhead',
u'\\midrule',
u'\\multicolumn{3}{r}{{Continued on next page}} \\\\',
u'\\midrule',
u'\\endfoot',
u'',
u'\\bottomrule',
u'\\endlastfoot',
u'23240 & 0 & & & \\\\',
u' & 15 & & & \\\\',
u' & 23 & & & \\\\',
u' & 31 & & & \\\\',
u' & 85 & & & \\\\',
u'38661 & 85 & & & \\\\',
u'41231 & 85 & & & \\\\',
u' & 92 & & & \\\\',
u'46371 & 0 & & & \\\\',
u'\\end{longtable}',
u'']
```
Note that in the correct output LaTeX strings, the rows with indices (38661, 85) and (41231, 85) correctly include the second index (the number 85), but in the incorrect LaTeX strings the rows do not include the number 85.
Could this be because the row (23240, 85) above (38661, 85) includes 85 in its second index?
<details>
commit: None
python: 2.7.12.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.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: 0.7.6.None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14484/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14484/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14485
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14485/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14485/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14485/events
|
https://github.com/pandas-dev/pandas/issues/14485
| 184,938,738 |
MDU6SXNzdWUxODQ5Mzg3Mzg=
| 14,485 |
Concatenation of list columns fails when grouping on multiple columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13874371?v=4",
"events_url": "https://api.github.com/users/jlorince/events{/privacy}",
"followers_url": "https://api.github.com/users/jlorince/followers",
"following_url": "https://api.github.com/users/jlorince/following{/other_user}",
"gists_url": "https://api.github.com/users/jlorince/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jlorince",
"id": 13874371,
"login": "jlorince",
"node_id": "MDQ6VXNlcjEzODc0Mzcx",
"organizations_url": "https://api.github.com/users/jlorince/orgs",
"received_events_url": "https://api.github.com/users/jlorince/received_events",
"repos_url": "https://api.github.com/users/jlorince/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jlorince/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jlorince/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jlorince"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1 | 2016-10-24T19:56:35Z | 2016-10-24T22:05:54Z | 2016-10-24T22:05:53Z |
NONE
| null |
Assume we have a simple DF like this
```
x = pd.DataFrame({'a':[1,1,2,2],'b':['a','a','a','b'],'c':[[1,2],[3,4],[5,6],[7,8]]})
a b c
0 1 a [1, 2]
1 1 a [3, 4]
2 2 a [5, 6]
3 2 b [7, 8]
```
and we want to do a groupby operation that concatenates the lists in column `c` together. This works fine when grouping on one column:
```
x.groupby('b')['c'].sum()
b
a [1, 2, 3, 4, 5, 6]
b [7, 8]
dtype: object
x.groupby('a')['c'].sum()
a
1 [1, 2, 3, 4]
2 [5, 6, 7, 8]
dtype: object
```
But fails when grouping on multiple columns (i.e. `x.groupby(['a','b'])['c'].sum()`) with `ValueError: Function does not reduce`.
This is based on this SO question: https://stackoverflow.com/questions/40224793/pandas-concatenate-list-columns-with-groupby-when-grouping-on-multiple-columns/40226389#40226389
#### 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: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 17.1.1
Cython: 0.22.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.5.3
pytz: 2015.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.6.1
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None
jinja2: 2.7.3
boto: 2.33.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/14485/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14485/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14486
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14486/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14486/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14486/events
|
https://github.com/pandas-dev/pandas/issues/14486
| 184,966,362 |
MDU6SXNzdWUxODQ5NjYzNjI=
| 14,486 |
Funky labels in groupby().myserie.plot.line()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/886074?v=4",
"events_url": "https://api.github.com/users/teto/events{/privacy}",
"followers_url": "https://api.github.com/users/teto/followers",
"following_url": "https://api.github.com/users/teto/following{/other_user}",
"gists_url": "https://api.github.com/users/teto/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/teto",
"id": 886074,
"login": "teto",
"node_id": "MDQ6VXNlcjg4NjA3NA==",
"organizations_url": "https://api.github.com/users/teto/orgs",
"received_events_url": "https://api.github.com/users/teto/received_events",
"repos_url": "https://api.github.com/users/teto/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/teto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/teto/subscriptions",
"type": "User",
"url": "https://api.github.com/users/teto"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 0 | 2016-10-24T22:00:16Z | 2021-05-02T00:39:15Z | null |
NONE
| null |
#### A small, complete example of the issue
I am not sure I understand how label generation work in pandas and I've had several problems in the past. I tried to find some documentation without success so here is my pb. I open a ticket here since I was told on gitter it might be a bug but it might just be me misunderstanding
``` python
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({ 'A' : 1.,
'B' : pd.Timestamp('20130102'),
'C' : pd.Series(1,index=list(range(4)),dtype='float32'),
'D' : np.array([3] * 4,dtype='int32'),
'E' : pd.Categorical(["test","train","test","train"]),
'F' : 'foo' })
fig = plt.figure()
axes = fig.gca()
g = df.groupby(['B','F'])
print("Nb of %d" % len(g))
g.plot.line(ax=axes,
legend=True,
x="D",
y="C"
)
plt.show()
```
#### Expected Output
I would expect to see only one label per group there is one group but instead I see 2 labels (only one line plotted).
The real example (in a more complex program), I have 2 groups with a multiindex of 3 keys and it generates 6 labels while it plots 2 lines.
Hence it seems there are as many labels as (nb of groups)\* (nb of keys in multindex)
#### Output of `pd.show_versions()`
<details>
# Paste the output here
## INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.0-26-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: fr_FR.UTF-8
LOCALE: fr_FR.UTF-8
```
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 26.1.1
Cython: 0.24.1
numpy: 1.11.1rc1
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.5
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.5
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: 0.7.3
lxml: None
bs4: 4.5.1
html5lib: 0.999
httplib2: 0.9.1
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14486/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14486/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14487
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14487/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14487/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14487/events
|
https://github.com/pandas-dev/pandas/issues/14487
| 184,976,216 |
MDU6SXNzdWUxODQ5NzYyMTY=
| 14,487 |
API: to_datetime inconsistent returning of datetime.datetime
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
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"
}
| 5 | 2016-10-24T22:56:44Z | 2021-05-02T00:39:44Z | null |
MEMBER
| null |
Copying from https://github.com/pandas-dev/pandas/issues/14448#issuecomment-255068330 (as the issue is closed now):
```
In [1]: pd.to_datetime('13000101', errors='ignore')
Out[1]: '13000101'
In [2]: pd.to_datetime('13000101', errors='ignore', format='%Y%m%d')
Out[2]: datetime.datetime(1300, 1, 1, 0, 0)
```
The above inconsistency (which is also not documented at all I think), is that something we want to fix?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14487/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14487/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14488
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14488/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14488/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14488/events
|
https://github.com/pandas-dev/pandas/issues/14488
| 185,072,201 |
MDU6SXNzdWUxODUwNzIyMDE=
| 14,488 |
Adding optional pickle protocol version argument to pandas.to_pickle()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10496026?v=4",
"events_url": "https://api.github.com/users/ragesz/events{/privacy}",
"followers_url": "https://api.github.com/users/ragesz/followers",
"following_url": "https://api.github.com/users/ragesz/following{/other_user}",
"gists_url": "https://api.github.com/users/ragesz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ragesz",
"id": 10496026,
"login": "ragesz",
"node_id": "MDQ6VXNlcjEwNDk2MDI2",
"organizations_url": "https://api.github.com/users/ragesz/orgs",
"received_events_url": "https://api.github.com/users/ragesz/received_events",
"repos_url": "https://api.github.com/users/ragesz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ragesz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ragesz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ragesz"
}
|
[
{
"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": "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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 1 | 2016-10-25T10:02:35Z | 2017-05-18T10:30:53Z | 2017-05-18T10:30:53Z |
NONE
| null |
Sometimes pickle files saved in Python v3.x are needed to read in Python v2.x. It would be nice if one can easily set pickle protocol version in `to_pickle()`.
It can be done with the following little changes:
In file `/pandas/io/pickle.py`:
```
def to_pickle(obj, path, protocol=pkl.HIGHEST_PROTOCOL):
"""
Pickle (serialize) object to input file path
Parameters
----------
obj : any object
path : string
File path
"""
with open(path, 'wb') as f:
pkl.dump(obj, f, protocol=protocol)
```
In file `/pandas/core/generic.py`:
```
def to_pickle(self, path, protocol):
"""
Pickle (serialize) object to input file path.
Parameters
----------
path : string
File path
"""
from pandas.io.pickle import to_pickle
return to_pickle(self, path, protocol)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14488/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14488/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14489
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14489/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14489/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14489/events
|
https://github.com/pandas-dev/pandas/issues/14489
| 185,073,567 |
MDU6SXNzdWUxODUwNzM1Njc=
| 14,489 |
CI: numpy dev 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": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 3 | 2016-10-25T10:08:45Z | 2016-10-26T22:19:16Z | 2016-10-26T22:19:16Z |
CONTRIBUTOR
| null |
https://travis-ci.org/pandas-dev/pandas/jobs/169382808
IIRC some issues w.r.t. int *\* int. unrelated to this PR.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14489/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14489/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14490
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14490/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14490/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14490/events
|
https://github.com/pandas-dev/pandas/issues/14490
| 185,135,220 |
MDU6SXNzdWUxODUxMzUyMjA=
| 14,490 |
Time out errors when reading large files from S3
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4",
"events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}",
"followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers",
"following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}",
"gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amelio-vazquez-reina",
"id": 1993919,
"login": "amelio-vazquez-reina",
"node_id": "MDQ6VXNlcjE5OTM5MTk=",
"organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs",
"received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events",
"repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amelio-vazquez-reina"
}
|
[
{
"color": "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": 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-10-25T14:32:05Z | 2016-10-26T10:21:26Z | 2016-10-26T10:21:03Z |
CONTRIBUTOR
| null |
I am getting "time out" errors when trying to read from a large CSV (2GB) in S3:
``` python
df = pd.read_csv('path_to_2GB_file.csv')
```
The file is hosted privately so unfortunately can't make it accessible. I'll be happy to try reading from an open/public S3 repository if anyone knows where to get CSVs of a similar size. Unfortunately I couldn't find any on a quick search.
#### Output
``` python
TimeoutError Traceback (most recent call last)
<ipython-input-4-0470fac7215b> in <module>()
----> 1 winsdf = pd.read_csv('s3://dxusers-useast1/sys-opt/flight_creative_exchange_spend_hour/2016-10-10.csv')
/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squ
eeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose,
skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quote
char, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarr
ay, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
643 skip_blank_lines=skip_blank_lines)
644
--> 645 return _read(filepath_or_buffer, kwds)
646
647 parser_f.__name__ = name
/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
398 return parser
399
--> 400 data = parser.read()
401 parser.close()
402 return data
/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/pandas/io/parsers.py in read(self, nrows)
936 raise ValueError('skipfooter not supported for iteration')
937
--> 938 ret = self._engine.read(nrows)
939
940 if self.options.get('as_recarray'):
/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/pandas/io/parsers.py in read(self, nrows)
1503 def read(self, nrows=None):
1504 try:
-> 1505 data = self._reader.read(nrows)
1506 except StopIteration:
1507 if self._first_chunk:
pandas/parser.pyx in pandas.parser.TextReader.read (pandas/parser.c:9884)()
pandas/parser.pyx in pandas.parser.TextReader._read_low_memory (pandas/parser.c:10142)()
pandas/parser.pyx in pandas.parser.TextReader._read_rows (pandas/parser.c:10870)()
pandas/parser.pyx in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:10741)()
pandas/parser.pyx in pandas.parser.raise_parser_error (pandas/parser.c:25721)()
/Users/amelio/anaconda/envs/py35/lib/python3.5/socket.py in readinto(self, b)
573 while True:
574 try:
--> 575 return self._sock.recv_into(b)
576 except timeout:
577 self._timeout_occurred = True
/Users/amelio/anaconda/envs/py35/lib/python3.5/ssl.py in recv_into(self, buffer, nbytes, flags)
927 "non-zero flags not allowed in calls to recv_into() on %s" %
928 self.__class__)
--> 929 return self.read(nbytes, buffer)
930 else:
931 return socket.recv_into(self, buffer, nbytes, flags)
/Users/amelio/anaconda/envs/py35/lib/python3.5/ssl.py in read(self, len, buffer)
789 raise ValueError("Read on closed or unwrapped SSL socket.")
790 try:
--> 791 return self._sslobj.read(len, buffer)
792 except SSLError as x:
793 if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
/Users/amelio/anaconda/envs/py35/lib/python3.5/ssl.py in read(self, len, buffer)
573 """
574 if buffer is not None:
--> 575 v = self._sslobj.read(len, buffer)
576 else:
577 v = self._sslobj.read(len)
TimeoutError: [Errno 60] Operation timed out
```
#### Output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0
nose: 1.3.7
pip: 8.1.2
setuptools: 26.1.1.post20160901
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.1
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: 2.42.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/14490/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14490/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14491
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14491/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14491/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14491/events
|
https://github.com/pandas-dev/pandas/issues/14491
| 185,188,781 |
MDU6SXNzdWUxODUxODg3ODE=
| 14,491 |
ERR: improve error message with unalignable label indexing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3620703?v=4",
"events_url": "https://api.github.com/users/bluenote10/events{/privacy}",
"followers_url": "https://api.github.com/users/bluenote10/followers",
"following_url": "https://api.github.com/users/bluenote10/following{/other_user}",
"gists_url": "https://api.github.com/users/bluenote10/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bluenote10",
"id": 3620703,
"login": "bluenote10",
"node_id": "MDQ6VXNlcjM2MjA3MDM=",
"organizations_url": "https://api.github.com/users/bluenote10/orgs",
"received_events_url": "https://api.github.com/users/bluenote10/received_events",
"repos_url": "https://api.github.com/users/bluenote10/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bluenote10/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bluenote10/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bluenote10"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2016-10-25T17:55:05Z | 2016-12-09T16:36:30Z | 2016-12-09T16:36:29Z |
NONE
| null |
#### A small, complete example of the issue
Using a boolean index in a `pandas.Series` on a data frame with an string index fails with `Unalignable boolean Series key provided`:
``` python
import pandas as pd
# DF without string index
df = pd.DataFrame({"A": [0, 1, 2]})
df.loc[[True, True, True], :] # works
df.loc[pd.Series([True, True, True]), :] # works
# DF with string index
df = pd.DataFrame({"A": [0, 1, 2]}, index=["a", "b", "c"])
df.loc[[True, True, True], :] # works
df.loc[pd.Series([True, True, True]), :] # fails
```
#### Expected Output
Boolean indexing should work with a `pandas.Series` like it does with regular Python lists and boolean numpy arrays.
#### Output of `pd.show_versions()`
<details>
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-98-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.0
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: None
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14491/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14491/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14492
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14492/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14492/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14492/events
|
https://github.com/pandas-dev/pandas/pull/14492
| 185,203,289 |
MDExOlB1bGxSZXF1ZXN0OTA4NjkyMzg=
| 14,492 |
BUG: Accept unicode quotechars again in pd.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": "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-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 10 | 2016-10-25T18:54:17Z | 2016-10-27T07:05:58Z | 2016-10-26T22:31:40Z |
MEMBER
| null |
Title is self-explanatory. Affects Python 2.x only. Closes #14477.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14492/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14492/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14492.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14492",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14492.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14492"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14493
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14493/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14493/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14493/events
|
https://github.com/pandas-dev/pandas/issues/14493
| 185,224,232 |
MDU6SXNzdWUxODUyMjQyMzI=
| 14,493 |
ENH: Add sparse option in pivot_table / pivot / unstack
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/741544?v=4",
"events_url": "https://api.github.com/users/yupbank/events{/privacy}",
"followers_url": "https://api.github.com/users/yupbank/followers",
"following_url": "https://api.github.com/users/yupbank/following{/other_user}",
"gists_url": "https://api.github.com/users/yupbank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yupbank",
"id": 741544,
"login": "yupbank",
"node_id": "MDQ6VXNlcjc0MTU0NA==",
"organizations_url": "https://api.github.com/users/yupbank/orgs",
"received_events_url": "https://api.github.com/users/yupbank/received_events",
"repos_url": "https://api.github.com/users/yupbank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yupbank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yupbank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yupbank"
}
|
[
{
"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": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
open
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 7 | 2016-10-25T20:25:09Z | 2020-04-20T01:02:55Z | null |
NONE
| null |
#### A small, complete example of the issue
``` python
# Your code here
sparse_df = df.pivot(index='a', columns='b', values='c', aggfunc=lambda x: len(x), sparse=True)
```
#### Expected Output
#### Output of `pd.show_versions()`
<details>
# Paste the output here
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14493/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14493/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14494
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14494/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14494/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14494/events
|
https://github.com/pandas-dev/pandas/pull/14494
| 185,231,064 |
MDExOlB1bGxSZXF1ZXN0OTA4ODk1MzA=
| 14,494 |
BUG: don't allow users to move from an interned string
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4",
"events_url": "https://api.github.com/users/llllllllll/events{/privacy}",
"followers_url": "https://api.github.com/users/llllllllll/followers",
"following_url": "https://api.github.com/users/llllllllll/following{/other_user}",
"gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/llllllllll",
"id": 3064397,
"login": "llllllllll",
"node_id": "MDQ6VXNlcjMwNjQzOTc=",
"organizations_url": "https://api.github.com/users/llllllllll/orgs",
"received_events_url": "https://api.github.com/users/llllllllll/received_events",
"repos_url": "https://api.github.com/users/llllllllll/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions",
"type": "User",
"url": "https://api.github.com/users/llllllllll"
}
|
[
{
"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": "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": "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"
}
| 10 | 2016-10-25T20:53:43Z | 2016-11-16T21:02:11Z | 2016-11-16T20:57:42Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
I was thinking about code paths that give away borrowed references to strings and realized that interned strings can be accessed even when their refcount is 1. This is because the intern table holds a "weak ref" to the string. This allows the string to be garbage collected normally; however, if a user creates an interned string with exactly one reference and feeds it to move, you could later get a second reference to the **same** string object by calling intern with a copy of the old string. The data backing the old string may have been mutated so you will get very strange results. I am almost certain that no on has run into this since `move_into_mutable_buffer` was added but it doesn't hurt to add this quick check to prevent broken usage like this in the future.
This only affects python 2 because bytes objects cannot be interned in python 3.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14494/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14494/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14494.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14494",
"merged_at": "2016-11-16T20:57:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14494.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14494"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14495
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14495/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14495/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14495/events
|
https://github.com/pandas-dev/pandas/issues/14495
| 185,253,190 |
MDU6SXNzdWUxODUyNTMxOTA=
| 14,495 |
COMPAT: bottleneck 1.2.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-10-25T22:41:39Z | 2017-01-28T12:46:08Z | 2017-01-28T12:46:08Z |
CONTRIBUTOR
| null |
just need to verify things, should hopefully be ok.
https://pypi.python.org/pypi/Bottleneck
its not up on conda-forge (or defaults ATM). so need to watch for that and test.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14495/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14495/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14496
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14496/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14496/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14496/events
|
https://github.com/pandas-dev/pandas/pull/14496
| 185,299,491 |
MDExOlB1bGxSZXF1ZXN0OTA5MzgxMjg=
| 14,496 |
Use old Cython build_ext until includes are fixed.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/486017?v=4",
"events_url": "https://api.github.com/users/robertwb/events{/privacy}",
"followers_url": "https://api.github.com/users/robertwb/followers",
"following_url": "https://api.github.com/users/robertwb/following{/other_user}",
"gists_url": "https://api.github.com/users/robertwb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/robertwb",
"id": 486017,
"login": "robertwb",
"node_id": "MDQ6VXNlcjQ4NjAxNw==",
"organizations_url": "https://api.github.com/users/robertwb/orgs",
"received_events_url": "https://api.github.com/users/robertwb/received_events",
"repos_url": "https://api.github.com/users/robertwb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/robertwb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/robertwb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/robertwb"
}
|
[
{
"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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 5 | 2016-10-26T05:19:08Z | 2016-10-26T22:34:45Z | 2016-10-26T22:29:04Z |
CONTRIBUTOR
| null |
This change in Cython 0.25
The distutils extension Cython.Distutils.build_ext has now been updated to use cythonize which properly handles dependencies. The old extension can still be found in Cython.Distutils.old_build_ext and is now deprecated.
seems to have broken the include of auto-generated algos_common_helper.pxi. As a temporary workaround, the old build_ext can be used.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14496/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14496/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14496.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14496",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14496.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14496"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14497
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14497/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14497/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14497/events
|
https://github.com/pandas-dev/pandas/pull/14497
| 185,355,100 |
MDExOlB1bGxSZXF1ZXN0OTA5NzcxODE=
| 14,497 |
TST: do not use int to negative int power in tests (GH14489)
|
{
"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"
}
|
[] |
closed
| false | null |
[] | null | 3 | 2016-10-26T10:31:00Z | 2016-10-26T10:39:19Z | 2016-10-26T10:39:19Z |
MEMBER
| null |
Closes #14489
Numpy starts to error on those cases from 1.12 https://github.com/numpy/numpy/pull/8127
This just fixes the test for now, but other option is to coerce to floats (but that is certainly not for 0.19.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/14497/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14497/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14497.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14497",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14497.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14497"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14498
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14498/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14498/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14498/events
|
https://github.com/pandas-dev/pandas/pull/14498
| 185,355,322 |
MDExOlB1bGxSZXF1ZXN0OTA5NzczMjY=
| 14,498 |
COMPAT/TST: fix test for range testing of negative integers to neg powers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 4 | 2016-10-26T10:32:03Z | 2017-01-09T15:52:12Z | 2016-10-26T22:19:16Z |
CONTRIBUTOR
| null |
xref https://github.com/numpy/numpy/pull/8127
closes #14489
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14498/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14498/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14498.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14498",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14498.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14498"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14499
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14499/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14499/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14499/events
|
https://github.com/pandas-dev/pandas/issues/14499
| 185,361,519 |
MDU6SXNzdWUxODUzNjE1MTk=
| 14,499 |
Panel.ffill ignores axis parameter and fill along axis=1
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6661307?v=4",
"events_url": "https://api.github.com/users/Tux1/events{/privacy}",
"followers_url": "https://api.github.com/users/Tux1/followers",
"following_url": "https://api.github.com/users/Tux1/following{/other_user}",
"gists_url": "https://api.github.com/users/Tux1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Tux1",
"id": 6661307,
"login": "Tux1",
"node_id": "MDQ6VXNlcjY2NjEzMDc=",
"organizations_url": "https://api.github.com/users/Tux1/orgs",
"received_events_url": "https://api.github.com/users/Tux1/received_events",
"repos_url": "https://api.github.com/users/Tux1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Tux1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tux1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Tux1"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 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-10-26T11:01:38Z | 2017-01-20T12:16:29Z | 2017-01-20T12:16:29Z |
CONTRIBUTOR
| null |
#### A small, complete example of the issue
``` python
a = pd.Panel({'a':np.arange(15).reshape((5,3)), 'b':np.arange(15,30).reshape((5,3))})
a['a'].loc[1,1] = np.nan
a['a']
Out[36]:
0 1 2
0 0 1.0 2
1 3 NaN 5
2 6 7.0 8
3 9 10.0 11
4 12 13.0 14
a.ffill(axis=2)['a']
Out[38]:
0 1 2
0 0.0 1.0 2.0
1 3.0 1.0 5.0
2 6.0 7.0 8.0
3 9.0 10.0 11.0
4 12.0 13.0 14.0
```
#### Expected Output
`a.at['a', 1, 1] == 3`
If you ffill along axis=2, you should get `3` instead of `1`
#### Output of `pd.show_versions()`
Pandas 0.19.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/14499/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14499/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14500
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14500/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14500/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14500/events
|
https://github.com/pandas-dev/pandas/issues/14500
| 185,366,384 |
MDU6SXNzdWUxODUzNjYzODQ=
| 14,500 |
BUG: index.map() deletes index.name
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7723080?v=4",
"events_url": "https://api.github.com/users/Khris777/events{/privacy}",
"followers_url": "https://api.github.com/users/Khris777/followers",
"following_url": "https://api.github.com/users/Khris777/following{/other_user}",
"gists_url": "https://api.github.com/users/Khris777/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Khris777",
"id": 7723080,
"login": "Khris777",
"node_id": "MDQ6VXNlcjc3MjMwODA=",
"organizations_url": "https://api.github.com/users/Khris777/orgs",
"received_events_url": "https://api.github.com/users/Khris777/received_events",
"repos_url": "https://api.github.com/users/Khris777/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Khris777/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Khris777/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Khris777"
}
|
[
{
"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": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3 | 2016-10-26T11:25:01Z | 2016-10-27T12:57:47Z | 2016-10-27T12:57:47Z |
NONE
| null |
This is related to https://github.com/pandas-dev/pandas/issues/12766
Possibly a duplicate.
#### A small, complete example of the issue
```
DD = pd.DataFrame({'A':[1,2,3,4,5]})
DD.index.name = 'Test'
print DD.index.name
DD.index = DD.index.map(unicode)
print DD.index.name
```
#### Expected Output
The mapping operation deletes the index name.
However mapping a function on the index means modifying an existing index, so one would expect the name of the index to stay the same as opposed to when choosing a completely new index.
#### Output of `pd.show_versions()`
```
python: 2.7.12.final.0
pandas: 0.19.0
```
#### EDIT:
Doing a `set_index(column)` does NOT set the column name as the index name, I think it would be common sense that the name of the column which becomes the new index be automatically set as the index name.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14500/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14500/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14501
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14501/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14501/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14501/events
|
https://github.com/pandas-dev/pandas/pull/14501
| 185,379,186 |
MDExOlB1bGxSZXF1ZXN0OTA5OTM5MjY=
| 14,501 |
BUG: fix DatetimeIndex._maybe_cast_slice_bound for empty index (GH14354)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "2016-11-07T20:05:26Z",
"closed_issues": 83,
"created_at": "2016-09-28T10:09:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.0",
"due_on": "2016-10-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/43",
"id": 2034384,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels",
"node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==",
"number": 43,
"open_issues": 0,
"state": "closed",
"title": "0.19.1",
"updated_at": "2016-11-07T20:05:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43"
}
| 2 | 2016-10-26T12:27:56Z | 2016-10-27T13:53:09Z | 2016-10-27T13:53:09Z |
MEMBER
| null |
Closes #14354
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14501/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14501/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14501.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14501",
"merged_at": "2016-10-27T13:53:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14501.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14501"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14502
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14502/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14502/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14502/events
|
https://github.com/pandas-dev/pandas/pull/14502
| 185,390,625 |
MDExOlB1bGxSZXF1ZXN0OTEwMDIwNzM=
| 14,502 |
TST: simplify tests for GH14346
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2016-10-26T13:17:49Z | 2016-10-27T07:11:44Z | 2016-10-27T07:11:41Z |
MEMBER
| null |
Addresses my remaining comment from https://github.com/pandas-dev/pandas/pull/14346#issuecomment-255520873
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14502/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14502/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14502.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14502",
"merged_at": "2016-10-27T07:11:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14502.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14502"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14503
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14503/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14503/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14503/events
|
https://github.com/pandas-dev/pandas/issues/14503
| 185,449,278 |
MDU6SXNzdWUxODU0NDkyNzg=
| 14,503 |
API: Expand read_csv dtype for categoricals
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "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"
}
] |
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-10-26T16:47:34Z | 2021-05-02T00:40:16Z | null |
CONTRIBUTOR
| null |
In https://github.com/pandas-dev/pandas/pull/13406 Chris added support for `read_csv(..., dtype={'col': 'category'})` (thanks!). This issue is for expanding that syntax to allow a more complete specification of the resulting categorical.
``` python
# Your code here
df = pd.read_csv(path, dtype={'col': pd.Categorical(['a', 'b', 'c'], ordered=True})
df = pd.read_csv(path, dtype={'col': ['a', 'b', 'c']}) # shorthand, but unordered only
# we would still accept `dtype={'col': 'category'}` as well, to infer categories
```
Implementation-wise, I think we can keep all the parsing logic as is, and simply loop over `dtype` and call `set_categories` (and maybe `as_ordered`) on all the categoricals just before returning to the user.
This would help a bit in dask, where their category type inference can fail if the first partition doesn't contain all the categories (see https://github.com/dask/dask/issues/1705). This is why it'd be preferable to do it as an option to `read_csv`, rather than putting in on the user to followup with a `set_categories`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14503/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14503/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14504
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14504/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14504/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14504/events
|
https://github.com/pandas-dev/pandas/pull/14504
| 185,462,119 |
MDExOlB1bGxSZXF1ZXN0OTEwNTMwODQ=
| 14,504 |
BUG: to_numeric downcast = 'unsigned' would not un-sign a 0 value.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20782321?v=4",
"events_url": "https://api.github.com/users/verhalenn/events{/privacy}",
"followers_url": "https://api.github.com/users/verhalenn/followers",
"following_url": "https://api.github.com/users/verhalenn/following{/other_user}",
"gists_url": "https://api.github.com/users/verhalenn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/verhalenn",
"id": 20782321,
"login": "verhalenn",
"node_id": "MDQ6VXNlcjIwNzgyMzIx",
"organizations_url": "https://api.github.com/users/verhalenn/orgs",
"received_events_url": "https://api.github.com/users/verhalenn/received_events",
"repos_url": "https://api.github.com/users/verhalenn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/verhalenn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/verhalenn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/verhalenn"
}
|
[
{
"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-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"
}
| 8 | 2016-10-26T17:42:43Z | 2017-02-24T01:36:34Z | 2016-11-17T13:10:59Z |
NONE
| null |
- [ ] closes #14401
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Have to figure out whats going wrong with the build still. Will let you know as soon as I do.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14504/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14504/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14504.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14504",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14504.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14504"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14505
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14505/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14505/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14505/events
|
https://github.com/pandas-dev/pandas/pull/14505
| 185,501,734 |
MDExOlB1bGxSZXF1ZXN0OTEwODIxMjk=
| 14,505 |
Avoids exception when pandas.io.json.json_normalize contains items in…
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1256318?v=4",
"events_url": "https://api.github.com/users/dickreuter/events{/privacy}",
"followers_url": "https://api.github.com/users/dickreuter/followers",
"following_url": "https://api.github.com/users/dickreuter/following{/other_user}",
"gists_url": "https://api.github.com/users/dickreuter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dickreuter",
"id": 1256318,
"login": "dickreuter",
"node_id": "MDQ6VXNlcjEyNTYzMTg=",
"organizations_url": "https://api.github.com/users/dickreuter/orgs",
"received_events_url": "https://api.github.com/users/dickreuter/received_events",
"repos_url": "https://api.github.com/users/dickreuter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dickreuter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dickreuter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dickreuter"
}
|
[
{
"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": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false | null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 20 | 2016-10-26T20:29:50Z | 2016-11-04T11:20:47Z | 2016-11-04T11:20:14Z |
CONTRIBUTOR
| null |
Continued in https://github.com/pandas-dev/pandas/pull/14583
---
When using pandas.io.json.json_normalize to parse a nested json and convert it to a dataframe, the meta parameter can be used to use fields as metadata for each record in resulting table. In some cases, not all items may contain all of the specified meta fields. This change will avoid throwing an error and output np.nan instead.
… meta parameter that don't always occur in every item of the list
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14505/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14505/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14505.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14505",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14505.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14505"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14506
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14506/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14506/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14506/events
|
https://github.com/pandas-dev/pandas/pull/14506
| 185,512,907 |
MDExOlB1bGxSZXF1ZXN0OTEwOTA0Njc=
| 14,506 |
API: map() on Index returns an Index, not array
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2685555?v=4",
"events_url": "https://api.github.com/users/nateyoder/events{/privacy}",
"followers_url": "https://api.github.com/users/nateyoder/followers",
"following_url": "https://api.github.com/users/nateyoder/following{/other_user}",
"gists_url": "https://api.github.com/users/nateyoder/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateyoder",
"id": 2685555,
"login": "nateyoder",
"node_id": "MDQ6VXNlcjI2ODU1NTU=",
"organizations_url": "https://api.github.com/users/nateyoder/orgs",
"received_events_url": "https://api.github.com/users/nateyoder/received_events",
"repos_url": "https://api.github.com/users/nateyoder/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateyoder/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateyoder/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateyoder"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 22 | 2016-10-26T21:18:10Z | 2016-12-18T00:09:10Z | 2016-12-16T23:26:00Z |
CONTRIBUTOR
| null |
- [x] closes #12766
- [x] closes #12798
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This is a follow on to #12798.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14506/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14506/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14506.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14506",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14506.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14506"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14507
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14507/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14507/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14507/events
|
https://github.com/pandas-dev/pandas/pull/14507
| 185,519,117 |
MDExOlB1bGxSZXF1ZXN0OTEwOTUwNDQ=
| 14,507 |
[BUG] Handle trailing escaped backslash in line delimited json
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/135613?v=4",
"events_url": "https://api.github.com/users/joshowen/events{/privacy}",
"followers_url": "https://api.github.com/users/joshowen/followers",
"following_url": "https://api.github.com/users/joshowen/following{/other_user}",
"gists_url": "https://api.github.com/users/joshowen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshowen",
"id": 135613,
"login": "joshowen",
"node_id": "MDQ6VXNlcjEzNTYxMw==",
"organizations_url": "https://api.github.com/users/joshowen/orgs",
"received_events_url": "https://api.github.com/users/joshowen/received_events",
"repos_url": "https://api.github.com/users/joshowen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshowen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshowen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshowen"
}
|
[] |
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"
}
| 0 | 2016-10-26T21:46:25Z | 2016-10-27T08:53:17Z | 2016-10-26T21:50:06Z |
CONTRIBUTOR
| null |
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry (This is a bugfix for https://github.com/pandas-dev/pandas/pull/14429 and https://github.com/pandas-dev/pandas/pull/14391)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14507/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14507/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14507.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14507",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14507.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14507"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.