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/10703 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10703/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10703/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10703/events | https://github.com/pandas-dev/pandas/pull/10703 | 98,157,572 | MDExOlB1bGxSZXF1ZXN0NDEyMjc3Mjk= | 10,703 | BUG: Bug in Index construction with a mixed list of tuples #10697) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-07-30T12:25:15Z | 2015-07-30T14:36:19Z | 2015-07-30T14:36:19Z | CONTRIBUTOR | null | closes #10697
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10703/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10703/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10703.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10703",
"merged_at": "2015-07-30T14:36:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10703.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10703"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10704 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10704/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10704/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10704/events | https://github.com/pandas-dev/pandas/issues/10704 | 98,179,797 | MDU6SXNzdWU5ODE3OTc5Nw== | 10,704 | API: value_counts on a Categorical Series should have a CategoricalIndex | {
"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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-07-30T14:12:21Z | 2015-08-04T17:38:52Z | 2015-08-04T17:38:52Z | CONTRIBUTOR | null | Thoughts on this?
``` python
In [8]: import pandas.util.testing as tm
In [9]: s = pd.Series(tm.makeCategoricalIndex(k=100))
In [10]: s.value_counts()
Out[10]:
vcKH 40
vXR9 31
Zn8J 29
dtype: int64
In [11]: s.value_counts().index
Out[11]: Index(['vcKH', 'vXR9', 'Zn8J'], dtype='object')
```
Now that we have `CategoricalIndex` (thanks Jeff), should that type be preserved so that `Out[11]` is a `CategoricalIndex`? My use-case (not shown in this example) is when the original categories are ordered, you get your `value_counts` and then want to sort the index.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10704/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10704/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10705 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10705/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10705/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10705/events | https://github.com/pandas-dev/pandas/pull/10705 | 98,214,032 | MDExOlB1bGxSZXF1ZXN0NDEyNTU3ODY= | 10,705 | ENH: Index optional pivot | {
"avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4",
"events_url": "https://api.github.com/users/jseabold/events{/privacy}",
"followers_url": "https://api.github.com/users/jseabold/followers",
"following_url": "https://api.github.com/users/jseabold/following{/other_user}",
"gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jseabold",
"id": 296164,
"login": "jseabold",
"node_id": "MDQ6VXNlcjI5NjE2NA==",
"organizations_url": "https://api.github.com/users/jseabold/orgs",
"received_events_url": "https://api.github.com/users/jseabold/received_events",
"repos_url": "https://api.github.com/users/jseabold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jseabold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jseabold"
} | [
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 15 | 2015-07-30T16:45:26Z | 2015-07-31T18:14:04Z | 2015-07-31T11:14:36Z | CONTRIBUTOR | null | Closes #3962.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10705/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10705/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10705.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10705",
"merged_at": "2015-07-31T11:14:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10705.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10705"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10706 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10706/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10706/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10706/events | https://github.com/pandas-dev/pandas/pull/10706 | 98,228,798 | MDExOlB1bGxSZXF1ZXN0NDEyNjM4ODg= | 10,706 | adding plotly to ecosystem | {
"avatar_url": "https://avatars.githubusercontent.com/u/5034604?v=4",
"events_url": "https://api.github.com/users/msund/events{/privacy}",
"followers_url": "https://api.github.com/users/msund/followers",
"following_url": "https://api.github.com/users/msund/following{/other_user}",
"gists_url": "https://api.github.com/users/msund/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/msund",
"id": 5034604,
"login": "msund",
"node_id": "MDQ6VXNlcjUwMzQ2MDQ=",
"organizations_url": "https://api.github.com/users/msund/orgs",
"received_events_url": "https://api.github.com/users/msund/received_events",
"repos_url": "https://api.github.com/users/msund/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/msund/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/msund/subscriptions",
"type": "User",
"url": "https://api.github.com/users/msund"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 5 | 2015-07-30T18:08:28Z | 2015-07-31T23:48:38Z | 2015-07-30T21:19:39Z | CONTRIBUTOR | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10706/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10706/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10706.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10706",
"merged_at": "2015-07-30T21:19:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10706.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10706"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/10707 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10707/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10707/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10707/events | https://github.com/pandas-dev/pandas/issues/10707 | 98,238,845 | MDU6SXNzdWU5ODIzODg0NQ== | 10,707 | Export and import dataframe with tuples headers | {
"avatar_url": "https://avatars.githubusercontent.com/u/4437159?v=4",
"events_url": "https://api.github.com/users/Alexis-benoist/events{/privacy}",
"followers_url": "https://api.github.com/users/Alexis-benoist/followers",
"following_url": "https://api.github.com/users/Alexis-benoist/following{/other_user}",
"gists_url": "https://api.github.com/users/Alexis-benoist/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alexis-benoist",
"id": 4437159,
"login": "Alexis-benoist",
"node_id": "MDQ6VXNlcjQ0MzcxNTk=",
"organizations_url": "https://api.github.com/users/Alexis-benoist/orgs",
"received_events_url": "https://api.github.com/users/Alexis-benoist/received_events",
"repos_url": "https://api.github.com/users/Alexis-benoist/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alexis-benoist/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alexis-benoist/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alexis-benoist"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| null | 6 | 2015-07-30T18:58:10Z | 2015-07-30T20:56:50Z | 2015-07-30T19:04:36Z | NONE | null | Hello,
I have another issue with tuples. If you export and import a DataFrame to csv the tuples headers are transformed to string.
Here is an example of test:
``` python
import pandas as pd
from StringIO import StringIO
df_out = pd.DataFrame()
df_out['A'] = ['foo']
df_out['B', 1] = ['bar']
sio_out = StringIO()
df_out.to_csv(sio_out)
sio_in = StringIO(sio_out.getvalue())
df_in = pd.read_csv(sio_in)
assert df_in.columns.tolist() == df_out.columns.tolist()
```
Cheers,
Alexis.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10707/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10707/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10708 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10708/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10708/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10708/events | https://github.com/pandas-dev/pandas/issues/10708 | 98,261,416 | MDU6SXNzdWU5ODI2MTQxNg== | 10,708 | Output from get_dummies() should default to np.int8 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8753876?v=4",
"events_url": "https://api.github.com/users/johne13/events{/privacy}",
"followers_url": "https://api.github.com/users/johne13/followers",
"following_url": "https://api.github.com/users/johne13/following{/other_user}",
"gists_url": "https://api.github.com/users/johne13/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johne13",
"id": 8753876,
"login": "johne13",
"node_id": "MDQ6VXNlcjg3NTM4NzY=",
"organizations_url": "https://api.github.com/users/johne13/orgs",
"received_events_url": "https://api.github.com/users/johne13/received_events",
"repos_url": "https://api.github.com/users/johne13/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johne13/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johne13/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johne13"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-07-30T20:49:22Z | 2017-09-10T14:08:40Z | 2017-09-10T14:08:32Z | NONE | null | The output columns from `get_dummies()` are binary by nature, changing this default from float64 to int8 would save 7 bytes per dummy.
```
df=pd.DataFrame({ 'x':[1,2,3] })
pd.get_dummies(df.x)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10708/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10708/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10709 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10709/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10709/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10709/events | https://github.com/pandas-dev/pandas/pull/10709 | 98,317,192 | MDExOlB1bGxSZXF1ZXN0NDEzMDc2Njg= | 10,709 | added axvlines_color parameter to parallel_coordinates | {
"avatar_url": "https://avatars.githubusercontent.com/u/1635907?v=4",
"events_url": "https://api.github.com/users/undertherain/events{/privacy}",
"followers_url": "https://api.github.com/users/undertherain/followers",
"following_url": "https://api.github.com/users/undertherain/following{/other_user}",
"gists_url": "https://api.github.com/users/undertherain/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/undertherain",
"id": 1635907,
"login": "undertherain",
"node_id": "MDQ6VXNlcjE2MzU5MDc=",
"organizations_url": "https://api.github.com/users/undertherain/orgs",
"received_events_url": "https://api.github.com/users/undertherain/received_events",
"repos_url": "https://api.github.com/users/undertherain/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/undertherain/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/undertherain/subscriptions",
"type": "User",
"url": "https://api.github.com/users/undertherain"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| {
"closed_at": "2015-11-21T13:47:07Z",
"closed_issues": 216,
"created_at": "2015-09-10T14:30:44Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.17.0 of course!",
"due_on": "2015-11-21T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/37",
"id": 1299459,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/37/labels",
"node_id": "MDk6TWlsZXN0b25lMTI5OTQ1OQ==",
"number": 37,
"open_issues": 0,
"state": "closed",
"title": "0.17.1",
"updated_at": "2016-07-21T16:02:53Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/37"
} | 15 | 2015-07-31T05:04:05Z | 2015-11-13T17:13:48Z | 2015-11-13T17:13:47Z | CONTRIBUTOR | null | parallel_coordinates are in pandas.tools.plotting
'black' color was hard-coded for vertical lines, I suggest to make it an option
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10709/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10709/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10709.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10709",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10709.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10709"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10710 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10710/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10710/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10710/events | https://github.com/pandas-dev/pandas/issues/10710 | 98,331,168 | MDU6SXNzdWU5ODMzMTE2OA== | 10,710 | Indexing a multi-index does not respect order of list indexer | {
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
]
| closed | false | null | []
| {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 6 | 2015-07-31T07:16:36Z | 2021-05-10T21:45:32Z | 2021-05-10T21:45:32Z | MEMBER | null | ```
In [40]: cols = pd.MultiIndex.from_product([['A', 'B', 'C'],[1,2]])
In [41]: df = pd.DataFrame(np.random.randn(5,6), columns=cols)
In [42]: df.loc[:, ['B', 'A']]
Out[42]:
A B
1 2 1 2
0 -0.990868 1.577803 1.023247 -0.423165
1 -1.180170 1.236143 -1.484085 0.044929
2 1.665502 -0.711081 0.227827 0.651859
3 -0.659154 0.154327 -1.548650 -0.070550
4 -0.232819 0.100959 -0.102296 0.260816
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10710/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10710/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10711 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10711/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10711/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10711/events | https://github.com/pandas-dev/pandas/issues/10711 | 98,369,120 | MDU6SXNzdWU5ODM2OTEyMA== | 10,711 | DEPR: irow, icol, iget_value | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 0 | 2015-07-31T11:03:02Z | 2015-08-02T17:07:09Z | 2015-08-02T17:07:09Z | CONTRIBUTOR | null | I thought had done this quite a while ago. I guess should show a deprecation warning, then remove in maybe next version. These have long been deprecated in the [docs](http://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecations), but should actually be deprecated in calls (and of course removed from the 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/10711/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10711/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10712 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10712/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10712/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10712/events | https://github.com/pandas-dev/pandas/issues/10712 | 98,417,470 | MDU6SXNzdWU5ODQxNzQ3MA== | 10,712 | BUG: Series.dt ops reset name | {
"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": "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-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2015-07-31T15:50:00Z | 2016-02-27T15:09:04Z | 2016-02-27T15:09:04Z | MEMBER | null | `DatetimeIndex.tz_localize` preserves name.
```
import pandas as pd
idx = pd.date_range('2011-01-01', periods=5, freq='M', name='x')
idx
# DatetimeIndex(['2011-01-31', '2011-02-28', '2011-03-31', '2011-04-30', '2011-05-31'],
# dtype='datetime64[ns]', name=u'x', freq='M', tz=None)
idx.tz_localize('US/Eastern')
# DatetimeIndex(['2011-01-31 00:00:00-05:00', '2011-02-28 00:00:00-05:00',
# '2011-03-31 00:00:00-04:00', '2011-04-30 00:00:00-04:00',
# '2011-05-31 00:00:00-04:00'],
# dtype='datetime64[ns]', name=u'x', freq='M', tz='US/Eastern')
```
But `Series` doesn't. I don't check all methods which can return `Series` yet.
```
s = pd.Series(idx)
s
#0 2011-01-31
#1 2011-02-28
#2 2011-03-31
#3 2011-04-30
#4 2011-05-31
# Name: x, dtype: datetime64[ns]
# NG, name is reset
s2 = s.dt.tz_localize('US/Eastern')
s2
#0 2011-01-31 00:00:00-05:00
#1 2011-02-28 00:00:00-05:00
#2 2011-03-31 00:00:00-04:00
#3 2011-04-30 00:00:00-04:00
#4 2011-05-31 00:00:00-04:00
# dtype: object
# NG, name is reset
s2.name = 'x'
s2.dt.tz_convert('US/Pacific')
#0 2011-01-30 21:00:00-08:00
#1 2011-02-27 21:00:00-08:00
#2 2011-03-30 21:00:00-07:00
#3 2011-04-29 21:00:00-07:00
#4 2011-05-30 21:00:00-07:00
# dtype: object
# NG, name is reset
s.dt.normalize()
#0 2011-01-31
#1 2011-02-28
#2 2011-03-31
#3 2011-04-30
#4 2011-05-31
# dtype: datetime64[ns]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10712/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10712/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10713 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10713/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10713/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10713/events | https://github.com/pandas-dev/pandas/issues/10713 | 98,418,455 | MDU6SXNzdWU5ODQxODQ1NQ== | 10,713 | BUG/API: Categorical doesn't support categories with tz | {
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-07-31T15:54:00Z | 2015-08-08T19:43:55Z | 2015-08-08T19:43:55Z | MEMBER | null | Creating `Categorical` from `DatetimeIndex` with tz results in GMT.
```
import pandas as pd
idx = pd.date_range('2011-01-01', periods=5, freq='M', tz='US/Eastern')
idx
# DatetimeIndex(['2011-01-31 00:00:00-05:00', '2011-02-28 00:00:00-05:00',
# '2011-03-31 00:00:00-04:00', '2011-04-30 00:00:00-04:00',
# '2011-05-31 00:00:00-04:00'],
# dtype='datetime64[ns]', freq='M', tz='US/Eastern')
pd.Categorical(idx)
# [2011-01-31 05:00:00, 2011-02-28 05:00:00, 2011-03-31 04:00:00, 2011-04-30 04:00:00, 2011-05-31 # 04:00:00]
# Categories (5, datetime64[ns]): [2011-01-31 05:00:00, 2011-02-28 05:00:00, 2011-03-31 04:00:00
# , 2011-04-30 04:00:00, 2011-05-31 04:00:00]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10713/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10713/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10714 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10714/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10714/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10714/events | https://github.com/pandas-dev/pandas/pull/10714 | 98,489,815 | MDExOlB1bGxSZXF1ZXN0NDEzOTA5MDQ= | 10,714 | updating account info | {
"avatar_url": "https://avatars.githubusercontent.com/u/5034604?v=4",
"events_url": "https://api.github.com/users/msund/events{/privacy}",
"followers_url": "https://api.github.com/users/msund/followers",
"following_url": "https://api.github.com/users/msund/following{/other_user}",
"gists_url": "https://api.github.com/users/msund/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/msund",
"id": 5034604,
"login": "msund",
"node_id": "MDQ6VXNlcjUwMzQ2MDQ=",
"organizations_url": "https://api.github.com/users/msund/orgs",
"received_events_url": "https://api.github.com/users/msund/received_events",
"repos_url": "https://api.github.com/users/msund/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/msund/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/msund/subscriptions",
"type": "User",
"url": "https://api.github.com/users/msund"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 0 | 2015-07-31T23:45:51Z | 2015-08-07T22:54:09Z | 2015-07-31T23:48:23Z | 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/10714/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10714/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10714.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10714",
"merged_at": "2015-07-31T23:48:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10714.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10714"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/10715 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10715/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10715/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10715/events | https://github.com/pandas-dev/pandas/issues/10715 | 98,492,684 | MDU6SXNzdWU5ODQ5MjY4NA== | 10,715 | DOC: limit error traceback to one line for expected exceptions | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "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"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-08-01T00:25:57Z | 2019-10-21T19:52:15Z | null | MEMBER | null | xref https://github.com/pydata/pandas/pull/10674#issuecomment-126837519
When using `:okexcept:`, limit the traceback to one line (or as a separate option + try to push to ipython upstream afterwards)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10715/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10715/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10716 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10716/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10716/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10716/events | https://github.com/pandas-dev/pandas/pull/10716 | 98,498,248 | MDExOlB1bGxSZXF1ZXN0NDEzOTQzMjM= | 10,716 | BUG: Series.align with MultiIndex may be inverted | {
"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": "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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-01T01:56:20Z | 2015-08-18T11:22:55Z | 2015-08-18T10:51:57Z | MEMBER | null | Closes #10665. Closes #10741.
I'm adding some more tests for `Index.join`, and found a skeptic behavior.
For `right` join, all levels / labels of right side remains (OK).
```
import pandas as pd
midx = pd.MultiIndex.from_product([[0, 1], [0, 1, 2]], names=['a', 'b'])
idx = pd.Index([1, 2 ,3], name='b')
idx.join(midx, how='right')
# MultiIndex(levels=[[0, 1], [0, 1, 2]],
# labels=[[0, 0, 0, 1, 1, 1], [0, 1, 2, 0, 1, 2]],
# names=[u'a', u'b'])
idx.join(midx, how='right').values
# array([(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2)], dtype=object)
```
For `left` join, all levels are remain but not used as levels. Thus, values only on left side is dropped (NG).
```
idx.join(midx, how='left')
# MultiIndex(levels=[[0, 1], [1, 2, 3]],
# labels=[[0, 0, 1, 1], [0, 1, 0, 1]],
# names=[u'a', u'b'])
idx.join(midx, how='left').values
array([(0, 1), (0, 2), (1, 1), (1, 2)], dtype=object)
```
I understand the last result must be the following. If my understanding is correct, I'll include the fix to this PR.
```
idx.join(midx, how='left')
# MultiIndex(levels=[[0, 1], [1, 2, 3]],
# labels=[[0, 0, 1, 1], [0, 1, 2, 0, 1, 2]],
# names=[u'a', u'b'])
idx.join(midx, how='left').values
# array([(0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3)], dtype=object)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10716/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10716/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10716.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10716",
"merged_at": "2015-08-18T10:51:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10716.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10716"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10717 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10717/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10717/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10717/events | https://github.com/pandas-dev/pandas/pull/10717 | 98,528,449 | MDExOlB1bGxSZXF1ZXN0NDE0MDAxNjc= | 10,717 | CLN: plotting cleanups for groupby plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-01T10:52:31Z | 2015-08-31T13:54:03Z | 2015-08-31T13:53:59Z | MEMBER | null | Related to #8018. Because it touches lots of codes, I've split some cleanups required for #8018 which does NOT changes current 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/10717/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10717/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10717.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10717",
"merged_at": "2015-08-31T13:53:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10717.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10717"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10718 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10718/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10718/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10718/events | https://github.com/pandas-dev/pandas/pull/10718 | 98,541,976 | MDExOlB1bGxSZXF1ZXN0NDE0MDI2NjA= | 10,718 | BUG: Categorical doesn't show tzinfo properly | {
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 3 | 2015-08-01T14:48:50Z | 2015-08-08T19:44:00Z | 2015-08-08T19:43:55Z | MEMBER | null | Closes #10713.
- [x] Check timedelta
- [x] Refactor not to import `DatetimeIndex` and `PeriodIndex` if possible.
- [x] Fix `categories` line break location
- [x] Check `Categorical` `Series` formatting
- [x] Check `Categorical` `DataFrame` formatting
- [x] Fix `CategoricalIndex` formatting
## CategoricalIndex problem (befor this PR)
```
import pandas as pd
idx = pd.period_range('2011-01-01 09:00', freq='H', periods=5)
idx = pd.Index(pd.Categorical(idx))
idx
# CategoricalIndex([359409, 359410, 359411, 359412, 359413], categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00], ordered=False, dtype='category')
```
## Format differences (after this PR)
I left ordered category representation of `CategoricalIndex` as below because it has `ordered` repr separately.
```
pd.Categorical([1, 2, 3], ordered=True)
# [1, 2, 3]
# Categories (3, int64): [1 < 2 < 3]
pd.Series(pd.Categorical([1, 2, 3], ordered=True))
#0 1
#1 2
#2 3
# dtype: category
# Categories (3, int64): [1 < 2 < 3]
pd.CategoricalIndex([1, 2, 3], ordered=True)
# CategoricalIndex([1, 2, 3], categories=[1, 2, 3], ordered=True, dtype='category')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10718/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10718/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10718",
"merged_at": "2015-08-08T19:43:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10718"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10719 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10719/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10719/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10719/events | https://github.com/pandas-dev/pandas/pull/10719 | 98,546,522 | MDExOlB1bGxSZXF1ZXN0NDE0MDM1MTQ= | 10,719 | DEPR: deprecate irow,icol,iget_value,iget in Series/DataFrame, #10711 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-01T15:57:29Z | 2015-08-02T21:17:47Z | 2015-08-02T17:07:09Z | CONTRIBUTOR | null | closes #10711
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10719/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10719/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10719.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10719",
"merged_at": "2015-08-02T17:07:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10719.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10719"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10720 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10720/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10720/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10720/events | https://github.com/pandas-dev/pandas/issues/10720 | 98,546,859 | MDU6SXNzdWU5ODU0Njg1OQ== | 10,720 | DOC/ERR: better error message on unsuccessful datetime parsing | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
]
| open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/16845495?v=4",
"events_url": "https://api.github.com/users/baevpetr/events{/privacy}",
"followers_url": "https://api.github.com/users/baevpetr/followers",
"following_url": "https://api.github.com/users/baevpetr/following{/other_user}",
"gists_url": "https://api.github.com/users/baevpetr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/baevpetr",
"id": 16845495,
"login": "baevpetr",
"node_id": "MDQ6VXNlcjE2ODQ1NDk1",
"organizations_url": "https://api.github.com/users/baevpetr/orgs",
"received_events_url": "https://api.github.com/users/baevpetr/received_events",
"repos_url": "https://api.github.com/users/baevpetr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/baevpetr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baevpetr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/baevpetr"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/16845495?v=4",
"events_url": "https://api.github.com/users/baevpetr/events{/privacy}",
"followers_url": "https://api.github.com/users/baevpetr/followers",
"following_url": "https://api.github.com/users/baevpetr/following{/other_user}",
"gists_url": "https://api.github.com/users/baevpetr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/baevpetr",
"id": 16845495,
"login": "baevpetr",
"node_id": "MDQ6VXNlcjE2ODQ1NDk1",
"organizations_url": "https://api.github.com/users/baevpetr/orgs",
"received_events_url": "https://api.github.com/users/baevpetr/received_events",
"repos_url": "https://api.github.com/users/baevpetr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/baevpetr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baevpetr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/baevpetr"
}
]
| {
"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"
} | 14 | 2015-08-01T16:01:55Z | 2020-07-02T09:26:32Z | null | CONTRIBUTOR | null | exceptions that are raised on unsuccessful datetime/timedelta parsing should add this:
`you can coerce to NaT by passing errors='coerce'`
comment at the end: https://github.com/pydata/pandas/pull/10674
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10720/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10720/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10721 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10721/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10721/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10721/events | https://github.com/pandas-dev/pandas/pull/10721 | 98,560,437 | MDExOlB1bGxSZXF1ZXN0NDE0MDc1OTk= | 10,721 | Clarify docstring: Series.sort_index() creates new instance (rather than sorting in-place) | {
"avatar_url": "https://avatars.githubusercontent.com/u/2692805?v=4",
"events_url": "https://api.github.com/users/maxalbert/events{/privacy}",
"followers_url": "https://api.github.com/users/maxalbert/followers",
"following_url": "https://api.github.com/users/maxalbert/following{/other_user}",
"gists_url": "https://api.github.com/users/maxalbert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maxalbert",
"id": 2692805,
"login": "maxalbert",
"node_id": "MDQ6VXNlcjI2OTI4MDU=",
"organizations_url": "https://api.github.com/users/maxalbert/orgs",
"received_events_url": "https://api.github.com/users/maxalbert/received_events",
"repos_url": "https://api.github.com/users/maxalbert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maxalbert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maxalbert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maxalbert"
} | []
| closed | false | null | []
| null | 3 | 2015-08-01T20:42:22Z | 2015-08-01T21:14:03Z | 2015-08-01T21:00:21Z | 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/10721/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10721/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10721.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10721",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10721.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10721"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/10722 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10722/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10722/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10722/events | https://github.com/pandas-dev/pandas/issues/10722 | 98,560,781 | MDU6SXNzdWU5ODU2MDc4MQ== | 10,722 | "value is trying to be set on a copy of a slice from a DataFrame" errors? | {
"avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4",
"events_url": "https://api.github.com/users/nickeubank/events{/privacy}",
"followers_url": "https://api.github.com/users/nickeubank/followers",
"following_url": "https://api.github.com/users/nickeubank/following{/other_user}",
"gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nickeubank",
"id": 9683693,
"login": "nickeubank",
"node_id": "MDQ6VXNlcjk2ODM2OTM=",
"organizations_url": "https://api.github.com/users/nickeubank/orgs",
"received_events_url": "https://api.github.com/users/nickeubank/received_events",
"repos_url": "https://api.github.com/users/nickeubank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nickeubank"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 7 | 2015-08-01T20:49:57Z | 2015-08-01T21:38:33Z | 2015-08-01T21:12:42Z | CONTRIBUTOR | null | I'm (consistently) getting a `value is trying to be set on a copy of a slice...` error on the following bit of code, and can't figure out why:
```
i['gender'] = i.gender.replace({'male':'m', 'female':'f'})
```
The full error:
```
See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
"""Sympy configuration"""
/Users/Nick/anaconda/lib/python3.4/site-packages/spyderlib/widgets/externalshell/start_ipython_kernel.py:16: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
```
It seems dependent on something about the `i` DataFrame, but said DataFrame is way to big to include here (143 rows, 43 columns).
When I try and recreate this with a small example dataset, I don't get the error any more:
```
df = pd.DataFrame({'col1':['a','b','c'], 'col2':[0,1,2]})
df['col1'] = df.col1.replace({'b':'z', 'c':'z'})
```
Does anyone have any idea why this is happening?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10722/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10722/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10723 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10723/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10723/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10723/events | https://github.com/pandas-dev/pandas/pull/10723 | 98,604,288 | MDExOlB1bGxSZXF1ZXN0NDE0MTY1MzI= | 10,723 | BUG: concat of Series w/o names #10698 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4025968?v=4",
"events_url": "https://api.github.com/users/IamGianluca/events{/privacy}",
"followers_url": "https://api.github.com/users/IamGianluca/followers",
"following_url": "https://api.github.com/users/IamGianluca/following{/other_user}",
"gists_url": "https://api.github.com/users/IamGianluca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IamGianluca",
"id": 4025968,
"login": "IamGianluca",
"node_id": "MDQ6VXNlcjQwMjU5Njg=",
"organizations_url": "https://api.github.com/users/IamGianluca/orgs",
"received_events_url": "https://api.github.com/users/IamGianluca/received_events",
"repos_url": "https://api.github.com/users/IamGianluca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IamGianluca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IamGianluca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IamGianluca"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 18 | 2015-08-02T11:42:29Z | 2015-09-02T11:54:22Z | 2015-09-02T11:54:14Z | CONTRIBUTOR | null | closes #10698
Let the result of 'concat' to inherit the parent Series' names. The Series' name (if present) will be used as the resulting DataFrame column name. When only one of the Series has a valid name, the resulting DataFrame will inherit the name only, and use a column name for the other columns the column index value.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10723/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10723/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10723.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10723",
"merged_at": "2015-09-02T11:54:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10723.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10723"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10724 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10724/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10724/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10724/events | https://github.com/pandas-dev/pandas/pull/10724 | 98,605,407 | MDExOlB1bGxSZXF1ZXN0NDE0MTY4MjI= | 10,724 | BUG: pd.unique should respect datetime64 and timedelta64 dtypes (GH9431) | {
"avatar_url": "https://avatars.githubusercontent.com/u/6031088?v=4",
"events_url": "https://api.github.com/users/ajcr/events{/privacy}",
"followers_url": "https://api.github.com/users/ajcr/followers",
"following_url": "https://api.github.com/users/ajcr/following{/other_user}",
"gists_url": "https://api.github.com/users/ajcr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ajcr",
"id": 6031088,
"login": "ajcr",
"node_id": "MDQ6VXNlcjYwMzEwODg=",
"organizations_url": "https://api.github.com/users/ajcr/orgs",
"received_events_url": "https://api.github.com/users/ajcr/received_events",
"repos_url": "https://api.github.com/users/ajcr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ajcr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ajcr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ajcr"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 5 | 2015-08-02T12:05:21Z | 2015-08-04T17:58:00Z | 2015-08-03T22:03:11Z | CONTRIBUTOR | null | To fix [GH9431](https://github.com/pydata/pandas/issues/9431).
Previously `pd.unique` would return an array of `object` dtype when passed a 1D array, Series or Index with a `datetime64` or `timedelta64` dtype. This PR should remedy that behaviour.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10724/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10724/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10724.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10724",
"merged_at": "2015-08-03T22:03:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10724.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10724"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10725 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10725/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10725/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10725/events | https://github.com/pandas-dev/pandas/issues/10725 | 98,612,692 | MDU6SXNzdWU5ODYxMjY5Mg== | 10,725 | COMPAT: see if we can use EnumCol to store Categoricals in HDFStore | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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": "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"
} | 1 | 2015-08-02T14:25:47Z | 2021-04-18T23:08:00Z | null | CONTRIBUTOR | null | http://www.pytables.org/usersguide/libref/declarative_classes.html#the-atom-class-and-its-descendants
- would have to ensure back-compat reading.
- `order` property would have to be retained in column meta data (IIRC this is how its done now)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10725/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10725/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10726 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10726/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10726/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10726/events | https://github.com/pandas-dev/pandas/pull/10726 | 98,622,048 | MDExOlB1bGxSZXF1ZXN0NDE0MjA4MTQ= | 10,726 | API/WIP: .sorted | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 60 | 2015-08-02T17:00:55Z | 2015-08-22T20:23:48Z | 2015-08-21T14:02:20Z | CONTRIBUTOR | null | closes #9816
closes #8239
```
Changes to sorting API
^^^^^^^^^^^^^^^^^^^^^^
The sorting API has had some longtime inconsistencies. (:issue:`9816`,:issue:`8239`).
Here is a summary of the **prior** to 0.17.0 API
- ``Series.sort`` is **INPLACE** while ``DataFrame.sort`` returns a new object.
- ``Series.order`` returned a new object
- It was possible to use ``Series/DataFrame.sort_index`` to sort by **values** by passing the ``by`` keyword.
- ``Series/DataFrame.sortlevel`` worked only on a ``MultiIndex`` for sorting by index.
To address these issues, we have revamped the API:
- We have introduced a new method, ``.sort_values()``, which is the merger of ``DataFrame.sort()``, ``Series.sort()``,
and ``Series.order``, to handle sorting of **values**.
- The existing method ``Series.sort()`` has been deprecated and will be removed in a
future version of pandas.
- The ``by`` argument of ``DataFrame.sort_index()`` has been deprecated and will be removed in a future version of pandas.
- The methods ``DataFrame.sort()``, ``Series.order()``, will not be recommended to use and will carry a deprecation warning
in the doc-string.
- The existing method ``.sort_index()`` will gain the ``level`` keyword to enable level sorting.
We now have two distinct and non-overlapping methods of sorting. A ``*`` marks items that
will show a ``PendingDeprecationWarning`` (normally suppressed by python), and a ``+`` marks items that
will show a ``FutureWarning``.
To sort by the **values**:
================================= ====================================
Previous Replacement
================================= ====================================
*``Series.order()`` ``Series.sort_values()``
+``Series.sort()`` ``Series.sort_values(inplace=True)``
``DataFrame.sort(columns=...)`` ``DataFrame.sort_values(by=...)``
================================= ====================================
To sort by the **index**:
================================= ====================================
Previous Equivalent
================================= ====================================
``Series.sort_index()`` ``Series.sort_index()``
``Series.sortlevel(level=...)`` ``Series.sort_index(level=...``)
``DataFrame.sort_index()`` ``DataFrame.sort_index()``
``DataFrame.sortlevel(level=...)`` ``DataFrame.sort_index(level=...)``
*``DataFrame.sort()`` ``DataFrame.sort_index()``
================================== ====================================
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10726/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10726/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10726.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10726",
"merged_at": "2015-08-21T14:02:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10726.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10726"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10727 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10727/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10727/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10727/events | https://github.com/pandas-dev/pandas/pull/10727 | 98,640,300 | MDExOlB1bGxSZXF1ZXN0NDE0MjUzNjA= | 10,727 | DOC: limit error traceback to one line for expected exceptions (GH10715) | {
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 8 | 2015-08-02T21:58:32Z | 2015-09-06T08:52:00Z | 2015-08-21T07:33:44Z | MEMBER | null | Closes #10715
This gives you an output like
```
In [4]: s = pd.Series([1,3,5,np.nan,6,8])
In [5]: s.iloc[11]
---------------------------------------------------------------------------
IndexError: single positional indexer is out-of-bounds
```
for input
```
.. ipython:: python
:okexcept:
s = pd.Series([1,3,5,np.nan,6,8])
s.iloc[10]
```
I think we would always want such a truncated traceback in the docs in cases that exceptions are expected, so I don't think it is needed to make it an extra new option.
I only should check for cases where the actual message spans multiple lines (now it is hardcoded to give me the last line of the error traceback)
@jreback with this we don't have to use the `code-block` s in eg whatsnew for the expect behaviour of `to_datetime`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10727/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10727/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10727.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10727",
"merged_at": "2015-08-21T07:33:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10727.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10727"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10728 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10728/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10728/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10728/events | https://github.com/pandas-dev/pandas/issues/10728 | 98,647,481 | MDU6SXNzdWU5ODY0NzQ4MQ== | 10,728 | read_csv last whitespace line not ignored when skip_blank_lines=True | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 2 | 2015-08-03T00:09:22Z | 2015-08-17T11:10:19Z | 2015-08-17T11:10:19Z | CONTRIBUTOR | null | ```
data = "1,2,3\n4,5,6\n "
print(pandas.read_csv(pandas.compat.StringIO(data), skip_blank_lines=True))
1 2 3
0 4 5 6
1 NaN NaN 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/10728/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10728/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10729 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10729/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10729/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10729/events | https://github.com/pandas-dev/pandas/pull/10729 | 98,657,836 | MDExOlB1bGxSZXF1ZXN0NDE0MzA3MDc= | 10,729 | API: CategoricalIndex for value_counts | {
"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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 7 | 2015-08-03T02:26:59Z | 2015-08-18T12:44:38Z | 2015-08-04T17:38:52Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/10704
Changes `Categorical.value_counts` to return
a Series with a CategoricalIndex. Previously
the Series and an Index.
Just some random observations on the convenience of working with categoricals:
The code here could be simplified if
1. `Categorical.categories` was always a `Categoricalndex`
2. We were consistent about whether `NaN` is allowed in `.categories`
I thought that 1. would be a good idea, but I'm going back on it now. I can see how it'd be useful for `Categorical.categories` to be a more specific type like DatetimeIndex. For 2, I'd personally I'll always keep `NaN` out of my categories, but I could be missing a use case where it's 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/10729/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10729/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10729",
"merged_at": "2015-08-04T17:38:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10729"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10730 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10730/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10730/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10730/events | https://github.com/pandas-dev/pandas/issues/10730 | 98,687,322 | MDU6SXNzdWU5ODY4NzMyMg== | 10,730 | Add inplace option to DataFrame.update() | {
"avatar_url": "https://avatars.githubusercontent.com/u/338235?v=4",
"events_url": "https://api.github.com/users/dov/events{/privacy}",
"followers_url": "https://api.github.com/users/dov/followers",
"following_url": "https://api.github.com/users/dov/following{/other_user}",
"gists_url": "https://api.github.com/users/dov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dov",
"id": 338235,
"login": "dov",
"node_id": "MDQ6VXNlcjMzODIzNQ==",
"organizations_url": "https://api.github.com/users/dov/orgs",
"received_events_url": "https://api.github.com/users/dov/received_events",
"repos_url": "https://api.github.com/users/dov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dov"
} | [
{
"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": "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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "4530B5",
"default": false,
"description": "Relating to inplace parameter or equivalent",
"id": 3498153567,
"name": "inplace",
"node_id": "LA_kwDOAA0YD87QgZZf",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/inplace"
}
]
| 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 | 2015-08-03T07:28:59Z | 2021-10-29T02:17:14Z | null | NONE | null | Currently `DataFrame.update()` modifies the dataframe in place. I feel this is not symmetric to how most other methods work, e.g. `set_index()`, that returns a new `DataFrame`. It is probably too late to change this default behavior (isi it?), but if at the very least an `inplace` option was added (with default value `True` to support the current behaviour), it will be easier to chain a sequence of operators that includes `update()`.
| {
"+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/10730/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10730/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10731 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10731/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10731/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10731/events | https://github.com/pandas-dev/pandas/pull/10731 | 98,720,618 | MDExOlB1bGxSZXF1ZXN0NDE0NTY0MDg= | 10,731 | TST: better testing for io/data | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 0 | 2015-08-03T11:08:13Z | 2015-08-03T12:09:19Z | 2015-08-03T12:09:19Z | CONTRIBUTOR | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10731/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10731/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10731.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10731",
"merged_at": "2015-08-03T12:09:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10731.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10731"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/10732 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10732/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10732/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10732/events | https://github.com/pandas-dev/pandas/issues/10732 | 98,726,501 | MDU6SXNzdWU5ODcyNjUwMQ== | 10,732 | DataFrame msgpack objects written from linux cannot be read on windows | {
"avatar_url": "https://avatars.githubusercontent.com/u/849427?v=4",
"events_url": "https://api.github.com/users/ruidc/events{/privacy}",
"followers_url": "https://api.github.com/users/ruidc/followers",
"following_url": "https://api.github.com/users/ruidc/following{/other_user}",
"gists_url": "https://api.github.com/users/ruidc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ruidc",
"id": 849427,
"login": "ruidc",
"node_id": "MDQ6VXNlcjg0OTQyNw==",
"organizations_url": "https://api.github.com/users/ruidc/orgs",
"received_events_url": "https://api.github.com/users/ruidc/received_events",
"repos_url": "https://api.github.com/users/ruidc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ruidc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruidc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ruidc"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 14 | 2015-08-03T11:49:00Z | 2015-08-04T11:47:19Z | 2015-08-04T11:47:19Z | CONTRIBUTOR | null | eg. on linux:
```
df2 = pandas.DataFrame([['100']], index=[1], columns=['v'])
df2.to_msgpack(r"/mnt/C/temp/p2.msgpack")
```
then on windows:
```
df = pandas.read_msgpack(r"C:\temp\p2.msgpack")
ValueError: Shape of passed values is (1, 1), indices imply (1, 2)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10732/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10732/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10733 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10733/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10733/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10733/events | https://github.com/pandas-dev/pandas/pull/10733 | 98,737,602 | MDExOlB1bGxSZXF1ZXN0NDE0NjQxMTI= | 10,733 | DOC: to_datetime outdated example | {
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 2 | 2015-08-03T12:58:13Z | 2015-08-05T08:12:35Z | 2015-08-05T08:12:32Z | MEMBER | null | With the new default of `errors='raise'`, the following section in the docs is not fully correctly phrased anymore: http://pandas-docs.github.io/pandas-docs-travis/timeseries.html#invalid-data.
So I just removed that example of `to_datetime([1, '1'])` (as it now raises, which is less unexpected, and the new example already shows the three options).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10733/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10733/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10733.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10733",
"merged_at": "2015-08-05T08:12:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10733.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10733"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10734 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10734/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10734/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10734/events | https://github.com/pandas-dev/pandas/issues/10734 | 98,743,681 | MDU6SXNzdWU5ODc0MzY4MQ== | 10,734 | DEPR: DataFrame.combine propagates nan values | {
"avatar_url": "https://avatars.githubusercontent.com/u/1560652?v=4",
"events_url": "https://api.github.com/users/aktiur/events{/privacy}",
"followers_url": "https://api.github.com/users/aktiur/followers",
"following_url": "https://api.github.com/users/aktiur/following{/other_user}",
"gists_url": "https://api.github.com/users/aktiur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aktiur",
"id": 1560652,
"login": "aktiur",
"node_id": "MDQ6VXNlcjE1NjA2NTI=",
"organizations_url": "https://api.github.com/users/aktiur/orgs",
"received_events_url": "https://api.github.com/users/aktiur/received_events",
"repos_url": "https://api.github.com/users/aktiur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aktiur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aktiur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aktiur"
} | [
{
"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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| 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"
} | 17 | 2015-08-03T13:33:28Z | 2021-04-18T23:09:12Z | null | NONE | null | The documentation for DataFrame.combine claims that the method "do[es] not propagate NaN values, so if for a (column, time) one frame is missing a value, it will default to the other frame’s value". However, this does not seem to correspond to the actual behaviour of DataFrame.combine.
Sample code:
``` python
>>> import pandas as pd
>>> from operator import add
>>> a = pd.DataFrame({
... 'a': pd.Series([1, 3], index=[0, 1]),
... 'b': pd.Series([2, 3], index=[1, 2]),
... })
>>> b = pd.DataFrame({
... 'a': pd.Series([3, 5], index=[1, 2]),
... 'c': pd.Series([1, 2, 3], index=[2, 3, 4])
... })
>>> a.combine(b, add)
a b c
0 NaN NaN NaN
1 6 NaN NaN
2 NaN NaN NaN
3 NaN NaN NaN
4 NaN NaN NaN
```
In many cases (as in this one), it may be remedied by using the _fill_value_ parameter of DataFrame.combine. However, it might be a problem when there is no acceptable neutral element for the given combining function.
``` python
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22
numpy: 1.9.2
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 3.1.0
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.6.7
lxml: 3.4.2
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.6
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
```
| {
"+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/10734/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10734/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10735 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10735/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10735/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10735/events | https://github.com/pandas-dev/pandas/issues/10735 | 98,751,783 | MDU6SXNzdWU5ODc1MTc4Mw== | 10,735 | API: deprecate combineAdd and combineMult methods? | {
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-03T14:04:59Z | 2015-08-16T08:28:53Z | 2015-08-16T08:28:53Z | MEMBER | null | On a DataFrame, we have the [`combineAdd`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.combineAdd.html) and [`combineMult`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.combineMult.html) methods:
- they are a redundant, as they are defined as `self.add(other, fill_value=0.)` and `self.mul(other, fill_value=1.)` (that is the actual implementation), which is also just cleaner to use IMHO.
- they have awkward (and non-pep8) names
- I assume they are not used a lot (I found 3 relevant references on StackOverflow for combineAdd ([SO1](http://stackoverflow.com/questions/28421137/subtract-two-dataframes-with-non-overlapping-indexes/28421255#28421255), [SO2](http://stackoverflow.com/questions/27744908/computing-sum-of-pandas-dataframes/27746836#27746836) and [SO2](http://stackoverflow.com/questions/20927701/pandas-numpy-how-to-turn-column-data-into-sparse-matrix/20929504#20929504), which is more than I expected), and none for combineMult
Therefore, I was thinking we could maybe deprecate these (as kind of clean-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/10735/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10735/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10736 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10736/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10736/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10736/events | https://github.com/pandas-dev/pandas/issues/10736 | 98,806,711 | MDU6SXNzdWU5ODgwNjcxMQ== | 10,736 | BUG?: .sample() sometimes returning a view not a copy. | {
"avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4",
"events_url": "https://api.github.com/users/nickeubank/events{/privacy}",
"followers_url": "https://api.github.com/users/nickeubank/followers",
"following_url": "https://api.github.com/users/nickeubank/following{/other_user}",
"gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nickeubank",
"id": 9683693,
"login": "nickeubank",
"node_id": "MDQ6VXNlcjk2ODM2OTM=",
"organizations_url": "https://api.github.com/users/nickeubank/orgs",
"received_events_url": "https://api.github.com/users/nickeubank/received_events",
"repos_url": "https://api.github.com/users/nickeubank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nickeubank"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 10 | 2015-08-03T18:06:24Z | 2015-08-19T20:52:33Z | 2015-08-19T20:52:33Z | CONTRIBUTOR | null | I've realized the `.sample()` function is sometimes returning a view rather than a copy. This will cause the "setting on a view/copy" error:
```
df = pd.DataFrame({'col1':[5,6,7], 'col2':['a','b','c']})
a_sample = df.sample(1)
a_sample['col1'] = 'z'
```
I believe the behavior is the result of it using the `.take()` function, which is what the `.sample()` command uses to pull the sample the passed frame.
I'd like to suggest either:
- replace `.take()` with `.iloc()`
- change `.take()` to `.take().copy()` if that's faster (@shoyer suggested `.take()` would be a faster -- is `.take().copy()`?)
Thoughts?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10736/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10736/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10737 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10737/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10737/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10737/events | https://github.com/pandas-dev/pandas/issues/10737 | 98,815,894 | MDU6SXNzdWU5ODgxNTg5NA== | 10,737 | pandas.date_range documentation does not have link to acceptable 'freq' values | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"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": "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": "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": 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 | 2015-08-03T18:55:39Z | 2015-08-04T12:20:59Z | 2015-08-03T18:58:49Z | CONTRIBUTOR | null | The [API documentation for pandas.date_range](http://pandas.pydata.org/pandas-docs/version/0.15.2/generated/pandas.date_range.html) does not provide a link or explanation of the acceptable values for the 'freq' parameter, e.g. 'D' for calendar day frequency.
There is a highly-upvoted Stack Overflow question entitled ["pandas resample documentation"](http://stackoverflow.com/questions/17001389/pandas-resample-documentation) which asks a related question about pandas.Series.resample.
The documentation for pandas.date_range should include a link to the ["Offset Aliases" section](http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases) of the timeseries documentation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10737/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10737/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10738 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10738/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10738/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10738/events | https://github.com/pandas-dev/pandas/pull/10738 | 98,820,224 | MDExOlB1bGxSZXF1ZXN0NDE1MDAxNTY= | 10,738 | amend sample to return copy and align weight axis | {
"avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4",
"events_url": "https://api.github.com/users/nickeubank/events{/privacy}",
"followers_url": "https://api.github.com/users/nickeubank/followers",
"following_url": "https://api.github.com/users/nickeubank/following{/other_user}",
"gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nickeubank",
"id": 9683693,
"login": "nickeubank",
"node_id": "MDQ6VXNlcjk2ODM2OTM=",
"organizations_url": "https://api.github.com/users/nickeubank/orgs",
"received_events_url": "https://api.github.com/users/nickeubank/received_events",
"repos_url": "https://api.github.com/users/nickeubank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nickeubank"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 15 | 2015-08-03T19:21:25Z | 2015-08-19T20:52:38Z | 2015-08-19T20:52:33Z | CONTRIBUTOR | null | Two bug fixes:
- Makes sure to return copies, not views.
- makes sure if a separate series is passed as weights that the axis are aligned before arguments get converted into numpy arrays and handled positionally
closes #10736
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10738/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10738/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10738.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10738",
"merged_at": "2015-08-19T20:52:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10738.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10738"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10739 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10739/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10739/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10739/events | https://github.com/pandas-dev/pandas/pull/10739 | 98,820,689 | MDExOlB1bGxSZXF1ZXN0NDE1MDA0NzM= | 10,739 | BUG: Fix dtypes order when ordering is different from original file in pandas.io.stata.read_stata | {
"avatar_url": "https://avatars.githubusercontent.com/u/4203432?v=4",
"events_url": "https://api.github.com/users/jbuyl/events{/privacy}",
"followers_url": "https://api.github.com/users/jbuyl/followers",
"following_url": "https://api.github.com/users/jbuyl/following{/other_user}",
"gists_url": "https://api.github.com/users/jbuyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbuyl",
"id": 4203432,
"login": "jbuyl",
"node_id": "MDQ6VXNlcjQyMDM0MzI=",
"organizations_url": "https://api.github.com/users/jbuyl/orgs",
"received_events_url": "https://api.github.com/users/jbuyl/received_events",
"repos_url": "https://api.github.com/users/jbuyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbuyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbuyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbuyl"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 8 | 2015-08-03T19:25:04Z | 2015-08-06T12:17:42Z | 2015-08-06T12:17:29Z | CONTRIBUTOR | null | This fixes http://stackoverflow.com/questions/31783392/pandas-adding-columns-to-filter-will-mess-with-data-structure
The dtypes of the DataFrame returned by `read_stata` have the same order as the original stata file, even if `columns` are specified with a different order.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10739/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10739/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10739.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10739",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10739.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10739"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10740 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10740/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10740/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10740/events | https://github.com/pandas-dev/pandas/pull/10740 | 98,828,576 | MDExOlB1bGxSZXF1ZXN0NDE1MDQyMTU= | 10,740 | ENH: Fixed DF.apply for functions returning a dict, #8735 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1391644?v=4",
"events_url": "https://api.github.com/users/ringw/events{/privacy}",
"followers_url": "https://api.github.com/users/ringw/followers",
"following_url": "https://api.github.com/users/ringw/following{/other_user}",
"gists_url": "https://api.github.com/users/ringw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ringw",
"id": 1391644,
"login": "ringw",
"node_id": "MDQ6VXNlcjEzOTE2NDQ=",
"organizations_url": "https://api.github.com/users/ringw/orgs",
"received_events_url": "https://api.github.com/users/ringw/received_events",
"repos_url": "https://api.github.com/users/ringw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ringw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ringw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ringw"
} | [
{
"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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 12 | 2015-08-03T20:05:56Z | 2015-08-28T18:17:41Z | 2015-08-28T18:17:41Z | CONTRIBUTOR | null | closes #8735
Previously, when the function argument to DataFrame.apply returned a dict, the reduction code would mistake its "values" property for the values of a Pandas Series, and return a Series of "values" instance methods. The new check ensures that the "values" property is an np.ndarray.
Previous behavior:
```
In [1]: A = DataFrame([['foo', 'bar'], ['spam', 'eggs']])
In [2]: A.apply(lambda c: c.to_dict(), reduce=True)
Out[2]:
0 <built-in method values of dict object at 0x7f...
1 <built-in method values of dict object at 0x7f...
dtype: object
```
New behavior:
```
In [1]: A = DataFrame([['foo', 'bar'], ['spam', 'eggs']])
In [2]: A.apply(lambda c: c.to_dict(), reduce=True)
Out[2]:
0 {0: u'foo', 1: u'spam'}
1 {0: u'bar', 1: u'eggs'}
dtype: object
```
If reduce=False, the result is a DataFrame (this did not change):
```
In [3]: A.apply(lambda c: c.to_dict(), reduce=False)
Out[3]:
0 1
0 foo bar
1 spam eggs
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10740/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10740/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10740.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10740",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10740.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10740"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10741 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10741/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10741/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10741/events | https://github.com/pandas-dev/pandas/issues/10741 | 98,834,450 | MDU6SXNzdWU5ODgzNDQ1MA== | 10,741 | BUG: Joining single-index DataFrame to multiindex DF incorrect for how=left and how=right | {
"avatar_url": "https://avatars.githubusercontent.com/u/887096?v=4",
"events_url": "https://api.github.com/users/warmlogic/events{/privacy}",
"followers_url": "https://api.github.com/users/warmlogic/followers",
"following_url": "https://api.github.com/users/warmlogic/following{/other_user}",
"gists_url": "https://api.github.com/users/warmlogic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/warmlogic",
"id": 887096,
"login": "warmlogic",
"node_id": "MDQ6VXNlcjg4NzA5Ng==",
"organizations_url": "https://api.github.com/users/warmlogic/orgs",
"received_events_url": "https://api.github.com/users/warmlogic/received_events",
"repos_url": "https://api.github.com/users/warmlogic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/warmlogic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/warmlogic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/warmlogic"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-03T20:39:39Z | 2015-08-18T10:51:57Z | 2015-08-18T10:51:57Z | NONE | null | When joining DataFrames where the calling frame is a multiindex DF and the input frame is a single-index DF, `how='left'` and `how='right'` produce results that should be swapped (i.e., `'left'` returns what `'right'` should return, and vice versa). To give a single example using `how='left'`:
```
df1 = pd.DataFrame([['a', 'x', 0.471780], ['a','y', 0.774908], ['a', 'z', 0.563634],
['b', 'x', -0.353756], ['b', 'y', 0.368062], ['b', 'z', -1.721840],
['c', 'x', 1], ['c', 'y', 2], ['c', 'z', 3],
],
columns=['first', 'second', 'value1']
).set_index(['first', 'second'])
df2 = pd.DataFrame([['a', 10], ['b', 20]],
columns=['first', 'value2']).set_index(['first'])
print(df1.join(df2, how='left'))
```
Expected (for `how='left'`):
```
value1 value2
first second
a x 0.471780 10
y 0.774908 10
z 0.563634 10
b x -0.353756 20
y 0.368062 20
z -1.721840 20
c x 1.000000 NaN
y 2.000000 NaN
z 3.000000 NaN
```
Actual (for `how='left'`):
```
value1 value2
first second
a x 0.471780 10
y 0.774908 10
z 0.563634 10
b x -0.353756 20
y 0.368062 20
z -1.721840 20
```
However, the correct behavior occurs if the single-index DF is the calling frame and the multiindex DF is the input frame (`df2.join(df1, how='left')`). Behavior for `how='inner'` and `how='outer'` is correct in both situations.
pandas version 0.16.2
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10741/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10741/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10742 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10742/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10742/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10742/events | https://github.com/pandas-dev/pandas/issues/10742 | 98,839,050 | MDU6SXNzdWU5ODgzOTA1MA== | 10,742 | ENH: Support for Postgres NaN data type | {
"avatar_url": "https://avatars.githubusercontent.com/u/1243750?v=4",
"events_url": "https://api.github.com/users/tlmaloney/events{/privacy}",
"followers_url": "https://api.github.com/users/tlmaloney/followers",
"following_url": "https://api.github.com/users/tlmaloney/following{/other_user}",
"gists_url": "https://api.github.com/users/tlmaloney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tlmaloney",
"id": 1243750,
"login": "tlmaloney",
"node_id": "MDQ6VXNlcjEyNDM3NTA=",
"organizations_url": "https://api.github.com/users/tlmaloney/orgs",
"received_events_url": "https://api.github.com/users/tlmaloney/received_events",
"repos_url": "https://api.github.com/users/tlmaloney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tlmaloney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tlmaloney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tlmaloney"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 278,
"created_at": "2013-01-06T03:02:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)",
"due_on": "2022-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/20",
"id": 239227,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels",
"node_id": "MDk6TWlsZXN0b25lMjM5MjI3",
"number": 20,
"open_issues": 108,
"state": "open",
"title": "Someday",
"updated_at": "2021-08-08T01:48:22Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20"
} | 3 | 2015-08-03T21:09:14Z | 2020-09-28T13:08:04Z | null | NONE | null | The below example code is a variant of [this comment](https://bitbucket.org/zzzeek/sqlalchemy/issues/977/float-values-infinity-infinity-and-nan#comment-18706187). The problem is that pandas can't infer the type when the columns are all null. I would like to be able to use Postgres' NaN value if possible, but seems that pandas passes `None` to SQLAlchemy instead of `float('NaN')`. I would rather not cast the column's dtype to numeric after-the-fact. From previous link I know it's possible to make Postgres NaN values from SQLAlchemy. Is it possible pandas could support this?
```
tmaloney@vm-data-1:/var/tmp$ sudo -u postgres psql -c "drop database test;"
DROP DATABASE
tmaloney@vm-data-1:/var/tmp$ cat test.sql
create database test owner tmaloney;
tmaloney@vm-data-1:/var/tmp$ sudo -u postgres psql < /var/tmp/test.sql
CREATE DATABASE
tmaloney@vm-data-1:/var/tmp$ cat test2.py
#!/usr/bin/env python
'''
Creates a test python db to play with
'''
import sqlalchemy as sa
import pandas as pd
from pandas.util.testing import assert_frame_equal
CON_URL = 'postgres://tmaloney:secret@localhost/test'
db = sa.create_engine(CON_URL)
meta = sa.MetaData()
test_table = sa.Table(
'test_float', meta,
# A table contains design id and blocks
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('float_val', sa.Float())
)
meta.drop_all(db)
meta.create_all(db)
data = [
{'float_val': float('nan')},
{'float_val': float('NaN')},
]
df = pd.DataFrame(data)
engine = sa.create_engine(CON_URL)
df.to_sql('test_float', engine, if_exists='append', index=False)
returned_df = pd.read_sql_table('test_float', engine)
assert_frame_equal(df, returned_df[['float_val']])
returned_df = pd.read_sql('select * from test_float', engine)
assert_frame_equal(df, returned_df[['float_val']])
tmaloney@vm-data-1:/var/tmp$ python test2.py
Traceback (most recent call last):
File "test2.py", line 37, in <module>
assert_frame_equal(df, returned_df[['float_val']])
File "/usr/local/lib/python2.7/dist-packages/pandas/util/testing.py", line 746, in assert_frame_equal
check_names=check_names)
File "/usr/local/lib/python2.7/dist-packages/pandas/util/testing.py", line 675, in assert_series_equal
assert_attr_equal('dtype', left, right)
File "/usr/local/lib/python2.7/dist-packages/pandas/util/testing.py", line 552, in assert_attr_equal
assert_equal(left_attr,right_attr,"attr is not equal [{0}]" .format(attr))
File "/usr/local/lib/python2.7/dist-packages/pandas/util/testing.py", line 533, in assert_equal
assert a == b, "%s: %r != %r" % (msg.format(a,b), a, b)
AssertionError: attr is not equal [dtype]: dtype('float64') != dtype('O')
```
The first assertion works, the second one does not.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10742/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10742/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10743 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10743/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10743/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10743/events | https://github.com/pandas-dev/pandas/pull/10743 | 98,882,383 | MDExOlB1bGxSZXF1ZXN0NDE1MzE3ODA= | 10,743 | TST: test_packers.TestMsgpack checks for minimum structure and extra … | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-04T03:38:57Z | 2015-08-04T11:47:20Z | 2015-08-04T11:47:19Z | CONTRIBUTOR | null | …keys
closes #10732
I wasn't able to reproduce the odd behavior. Let's see if this passes on Travis.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10743/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10743/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10743.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10743",
"merged_at": "2015-08-04T11:47:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10743.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10743"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10744 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10744/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10744/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10744/events | https://github.com/pandas-dev/pandas/pull/10744 | 98,886,619 | MDExOlB1bGxSZXF1ZXN0NDE1MzM2MTk= | 10,744 | Allow DateOffset addition with Series | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 16 | 2015-08-04T04:31:26Z | 2015-08-19T00:50:58Z | 2015-08-13T13:07:42Z | CONTRIBUTOR | null | Addresses #10699 - allowing relative offsets like `DateOffset(years=1)` to to be added to a `Series` containing datetimes for element-wise addition.
Previously only non-relative offsets that could be mapped to a time_delta (`Tick`, `Day`, etc) worked.
Some performance numbers are below - `Tick` based offsets should be unchanged, a subset of offsets (`DateOffset`, `YearEnd/Begin`, `MonthEnd/Begin`, `QuarterEnd/Begin`, `Week`, `BusinessDay`) will be sped up significantly; and other offsets will still fallback to a slow path, but now will raise a performance warning.
### Master
```
In [1]: idx = pd.date_range(start='20140101', freq='T', periods=100000)
In [2]: %timeit idx + pd.offsets.Day()
100 loops, best of 3: 5.72 ms per loop
In [3]: %timeit idx + pd.Timedelta(1, 'D')
100 loops, best of 3: 5.67 ms per loop
In [4]: %timeit idx + pd.offsets.DateOffset(years=1, months=2, days=1)
1 loops, best of 3: 1.79 s per loop
In [5]: %timeit idx + pd.offsets.WeekOfMonth(week=2, weekday=4)
1 loops, best of 3: 22.8 s per loop
```
### PR
```
In [3]: %timeit idx + pd.offsets.Day()
100 loops, best of 3: 5.8 ms per loop
In [4]: %timeit idx + pd.Timedelta(1, 'D')
100 loops, best of 3: 5.73 ms per loop
In [5]: %timeit idx + pd.offsets.DateOffset(years=1, months=2, days=1)
10 loops, best of 3: 86.9 ms per loop
In [6]: %timeit idx + pd.offsets.WeekOfMonth(week=2, weekday=4)
1 loops, best of 3: 23.4 s per loop
c:\users\chris\documents\python-dev\pandas\pandas\tseries\index.py:695: PerformanceWarning: Non-vectorized DateOffset being applied to Series or DatetimeIndex PerformanceWarning)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10744/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10744/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10744.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10744",
"merged_at": "2015-08-13T13:07:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10744.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10744"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10745 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10745/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10745/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10745/events | https://github.com/pandas-dev/pandas/issues/10745 | 98,949,361 | MDU6SXNzdWU5ODk0OTM2MQ== | 10,745 | incorrect quoting for windows building in conda? | {
"avatar_url": "https://avatars.githubusercontent.com/u/849427?v=4",
"events_url": "https://api.github.com/users/ruidc/events{/privacy}",
"followers_url": "https://api.github.com/users/ruidc/followers",
"following_url": "https://api.github.com/users/ruidc/following{/other_user}",
"gists_url": "https://api.github.com/users/ruidc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ruidc",
"id": 849427,
"login": "ruidc",
"node_id": "MDQ6VXNlcjg0OTQyNw==",
"organizations_url": "https://api.github.com/users/ruidc/orgs",
"received_events_url": "https://api.github.com/users/ruidc/received_events",
"repos_url": "https://api.github.com/users/ruidc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ruidc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruidc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ruidc"
} | [
{
"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 | []
| null | 12 | 2015-08-04T11:44:53Z | 2015-08-04T13:37:18Z | 2015-08-04T13:37:05Z | CONTRIBUTOR | null | trying to build master in clean windows x64 miniconda environment, gcc itself is in windows path:
```
writing build\temp.win-amd64-2.7\Release\pandas\index.def
C:\Program Files\mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64\bin\dllwrap.exe -DMS_WIN64 -mdll -static --entry _DllMain@12 --output-lib build\temp.win-amd64-2.7\Release\pandas\libindex.a --def build\temp.win-amd64-2.7\Release\pandas\index.def -s build\temp.win-amd64-2.7\Release\pandas\index.o build\temp.win-amd64-2.7\Release\pandas\src\datetime\np_datetime.o build\temp.win-amd64-2.7\Release\pandas\src\datetime\np_datetime_strings.o -LC:\Miniconda\envs\pandas_dev\libs -LC:\Miniconda\envs\pandas_dev\PCbuild\amd64 -lpython27 -lmsvcr90 -o c:\Dev\src\pandas\pandas\index.pyd
'gcc" "-Wl' is not recognized as an internal or external command,
operable program or batch file.
dllwrap: gcc exited with status 1
error: command 'C:\\Program Files\\mingw-builds\\x64-4.8.1-posix-seh-rev5\\mingw64\\bin\\dllwrap.exe' failed with exit status 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/10745/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10745/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10746 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10746/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10746/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10746/events | https://github.com/pandas-dev/pandas/issues/10746 | 99,006,277 | MDU6SXNzdWU5OTAwNjI3Nw== | 10,746 | astype attempts to convert datetime64[ms] as nanoseconds when missing value in data | {
"avatar_url": "https://avatars.githubusercontent.com/u/8983016?v=4",
"events_url": "https://api.github.com/users/dschallis/events{/privacy}",
"followers_url": "https://api.github.com/users/dschallis/followers",
"following_url": "https://api.github.com/users/dschallis/following{/other_user}",
"gists_url": "https://api.github.com/users/dschallis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dschallis",
"id": 8983016,
"login": "dschallis",
"node_id": "MDQ6VXNlcjg5ODMwMTY=",
"organizations_url": "https://api.github.com/users/dschallis/orgs",
"received_events_url": "https://api.github.com/users/dschallis/received_events",
"repos_url": "https://api.github.com/users/dschallis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dschallis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dschallis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dschallis"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 10 | 2015-08-04T16:21:41Z | 2015-08-15T23:47:57Z | 2015-08-15T23:47:50Z | NONE | null | When creating a DataFrame with a millisecond timestamp, created with `dtype='datetime64[ms]'`, this works as expected when there are no missing values in the data:
```
import pandas as pd
df = pd.DataFrame([1036713600000], dtype='float64')
print(df[0].astype('datetime64[ms]'))
```
Output:
```
0 2002-11-08
Name: 0, dtype: datetime64[ns]
```
Adding a missing value to the data causes the values to get parsed as nanoseconds rather than microseconds, which causes an exception:
```
df = pd.DataFrame([1036713600000, None], dtype='float64')
print(df[0].astype('datetime64[ms]'))
```
Output:
```
Traceback (most recent call last):
File "./f.py", line 6, in <module>
print(df[0].astype('datetime64[ms]'))
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/generic.py", line 2411, in astype
dtype=dtype, copy=copy, raise_on_error=raise_on_error, **kwargs)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 2504, in astype
return self.apply('astype', dtype=dtype, **kwargs)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 2459, in apply
applied = getattr(b, f)(**kwargs)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 373, in astype
values=values, **kwargs)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 407, in _astype
fastpath=True, dtype=dtype, klass=klass)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 2101, in make_block
placement=placement)
File "/Users/dsc/.virtualenvs/p3default/lib/python3.4/site-packages/pandas/core/internals.py", line 1795, in __init__
values = tslib.cast_to_nanoseconds(values)
File "pandas/tslib.pyx", line 2622, in pandas.tslib.cast_to_nanoseconds (pandas/tslib.c:43295)
File "pandas/tslib.pyx", line 1333, in pandas.tslib._check_dts_bounds (pandas/tslib.c:23332)
pandas.tslib.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 292278994-08-16 16:47:04
```
Expected output was something like:
```
0 2002-11-08
1 NaT
Name: 0, dtype: datetime64[ns]
```
This was using python 3.4.2, Pandas 0.16.2.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10746/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10746/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10747 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10747/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10747/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10747/events | https://github.com/pandas-dev/pandas/issues/10747 | 99,020,384 | MDU6SXNzdWU5OTAyMDM4NA== | 10,747 | JSON: handling missing values in date coercion | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-04T17:37:50Z | 2015-08-24T11:36:49Z | 2015-08-24T11:36:49Z | CONTRIBUTOR | null | xref https://github.com/pydata/pandas/issues/10746
```
In [1]: data = '''
...: [{"id": 1, "timestamp": 1036713600000},
...: {"id": 2}]
...: '''
```
after #10776 this is ok
```
In [2]: pd.read_json(StringIO(data), orient='records', dtype={'id': 'int32', 'timestamp': 'datetime64[ms]'})
Out[2]:
id timestamp
0 1 1.036714e+12
1 2 NaN
In [2]: pd.read_json(StringIO(data), orient='records', dtype={'id': 'int32', 'timestamp': 'datetime64[ms]'})
Out[10]:
id timestamp
0 1 2002-11-08
1 2 NaT
```
still open
```
In [7]: pd.read_json(StringIO(data), orient='records', date_unit='ms')
Out[7]:
id timestamp
0 1 1.036714e+12
1 2 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/10747/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10747/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10748 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10748/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10748/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10748/events | https://github.com/pandas-dev/pandas/issues/10748 | 99,022,723 | MDU6SXNzdWU5OTAyMjcyMw== | 10,748 | API/DOC: Deprecate and Advise against having `np.nan` in 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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "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"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 10 | 2015-08-04T17:50:43Z | 2015-09-01T19:18:15Z | 2015-09-01T19:18:15Z | CONTRIBUTOR | null | This came out of work on https://github.com/pydata/pandas/pull/10729
In the [documentation](http://pandas.pydata.org/pandas-docs/version/0.16.2/categorical.html#missing-data), we mention that
> There are two ways a np.nan can be represented in categorical data: either the value is not available (“missing value”) or np.nan is a valid category.
In the first case, `NaN` is not in `.categories`, and in the second case it is. I think we should only
recommend the first.
The option of `NaN`s in the categories makes the code in #10729 less pleasant that it would be otherwise. I don't think we should error if NaNs are included, just advise against it in the docs. Perhaps a deprecation, but I worry that I'm missing some obvious reason why NaNs were allowed in `.categories`.
@JanSchulz do you remember the initial reason for allowing either representation?
Some bad things that come out of `NaN` in `.categories`:
- Can't rely on a value of `nan` mapping to a code of `-1`:
``` python
In [2]: s = pd.Categorical(['a', 'b', 'a', np.nan], categories=['a', 'b', np.nan])
In [3]: s
Out[3]:
[a, b, a, NaN]
Categories (3, object): [a, b, NaN]
In [4]: s.categories
Out[4]: Index(['a', 'b', nan], dtype='object')
In [5]: s.codes
Out[5]: array([0, 1, 0, 2], dtype=int8)
```
- potentially have to upcast the index type or mix strings and floats (`nan`) in the `.categories` Index.
- extra code if you want to generically handle Categoricals that may or may not have `NaN` in categories.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10748/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10748/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10749 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10749/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10749/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10749/events | https://github.com/pandas-dev/pandas/pull/10749 | 99,034,464 | MDExOlB1bGxSZXF1ZXN0NDE2MDM0NTM= | 10,749 | DOC: fix some doc build errors/warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 0 | 2015-08-04T18:47:49Z | 2015-08-04T21:15:44Z | 2015-08-04T21:15:44Z | MEMBER | null | This should get the sphinx doc build again warning/error free (apart from the one handled in #10602)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10749/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10749/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10749.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10749",
"merged_at": "2015-08-04T21:15:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10749.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10749"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10750 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10750/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10750/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10750/events | https://github.com/pandas-dev/pandas/issues/10750 | 99,039,865 | MDU6SXNzdWU5OTAzOTg2NQ== | 10,750 | BUG: `read_sql_table` can't find views | {
"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": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 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 | 2015-08-04T19:07:30Z | 2015-08-12T09:31:26Z | 2015-08-12T09:31:26Z | CONTRIBUTOR | null | `pd.read_sql_table(tablename, engine)` won't be able to find `tablename` if it's actually a view.
This should be a one line change to https://github.com/pydata/pandas/blob/b281e6570bc3bb3773520eff0b6965d5691e3ba2/pandas/io/sql.py#L340
``` python
meta = MetaData(con, schema=schema)
try:
meta.reflect(only=[table_name])
except sqlalchemy.exc.InvalidRequestError:
raise ValueError("Table %s not found" % table_name)
```
just adding the keyword argument `views=True` from http://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html I don't think there will be any negative consequences to this, but I don't use sqlalchemy MetaData objects that often.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10750/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10750/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10751 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10751/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10751/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10751/events | https://github.com/pandas-dev/pandas/pull/10751 | 99,066,817 | MDExOlB1bGxSZXF1ZXN0NDE2MjAxNjM= | 10,751 | Fix docstring spelling | {
"avatar_url": "https://avatars.githubusercontent.com/u/5275077?v=4",
"events_url": "https://api.github.com/users/fpinter/events{/privacy}",
"followers_url": "https://api.github.com/users/fpinter/followers",
"following_url": "https://api.github.com/users/fpinter/following{/other_user}",
"gists_url": "https://api.github.com/users/fpinter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fpinter",
"id": 5275077,
"login": "fpinter",
"node_id": "MDQ6VXNlcjUyNzUwNzc=",
"organizations_url": "https://api.github.com/users/fpinter/orgs",
"received_events_url": "https://api.github.com/users/fpinter/received_events",
"repos_url": "https://api.github.com/users/fpinter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fpinter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fpinter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fpinter"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-04T21:32:38Z | 2015-08-05T06:45:09Z | 2015-08-05T06:44:58Z | CONTRIBUTOR | null | "analagous" -> "analogous"
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10751/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10751/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10751",
"merged_at": "2015-08-05T06:44:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10751"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10752 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10752/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10752/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10752/events | https://github.com/pandas-dev/pandas/pull/10752 | 99,071,998 | MDExOlB1bGxSZXF1ZXN0NDE2MjMxNzY= | 10,752 | Add kwargs for kde in scatter_matrix | {
"avatar_url": "https://avatars.githubusercontent.com/u/223276?v=4",
"events_url": "https://api.github.com/users/cottrell/events{/privacy}",
"followers_url": "https://api.github.com/users/cottrell/followers",
"following_url": "https://api.github.com/users/cottrell/following{/other_user}",
"gists_url": "https://api.github.com/users/cottrell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cottrell",
"id": 223276,
"login": "cottrell",
"node_id": "MDQ6VXNlcjIyMzI3Ng==",
"organizations_url": "https://api.github.com/users/cottrell/orgs",
"received_events_url": "https://api.github.com/users/cottrell/received_events",
"repos_url": "https://api.github.com/users/cottrell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cottrell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cottrell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cottrell"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| null | 4 | 2015-08-04T22:04:23Z | 2015-10-13T21:03:11Z | 2015-10-13T21:03:11Z | CONTRIBUTOR | null | Minor change to allow customizing the kde through the pandas api.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10752/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10752/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10752.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10752",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10752.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10752"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10753 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10753/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10753/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10753/events | https://github.com/pandas-dev/pandas/issues/10753 | 99,073,390 | MDU6SXNzdWU5OTA3MzM5MA== | 10,753 | pd.Series.count(pd.Index(range(5))) works in python 3 but not python 2. | {
"avatar_url": "https://avatars.githubusercontent.com/u/598099?v=4",
"events_url": "https://api.github.com/users/cowlicks/events{/privacy}",
"followers_url": "https://api.github.com/users/cowlicks/followers",
"following_url": "https://api.github.com/users/cowlicks/following{/other_user}",
"gists_url": "https://api.github.com/users/cowlicks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cowlicks",
"id": 598099,
"login": "cowlicks",
"node_id": "MDQ6VXNlcjU5ODA5OQ==",
"organizations_url": "https://api.github.com/users/cowlicks/orgs",
"received_events_url": "https://api.github.com/users/cowlicks/received_events",
"repos_url": "https://api.github.com/users/cowlicks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cowlicks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cowlicks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cowlicks"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 1 | 2015-08-04T22:14:19Z | 2015-08-04T22:21:39Z | 2015-08-04T22:19:51Z | NONE | null | ``` python
In [1]: import pandas as pd
In [2]: i = pd.Index(range(10))
In [3]: pd.Series.count(i)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-759ac5e97e30> in <module>()
----> 1 pd.Series.count(i)
TypeError: unbound method count() must be called with Series instance as first argument (got Int64Index instance instead)
In [4]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 4.0.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.utf8
pandas: 0.16.1
nose: 1.3.6
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 3.1.0
sphinx: 1.2.3
patsy: None
dateutil: 2.4.2
pytz: 2015.4
bottleneck: None
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 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/10753/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10753/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10754 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10754/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10754/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10754/events | https://github.com/pandas-dev/pandas/issues/10754 | 99,259,990 | MDU6SXNzdWU5OTI1OTk5MA== | 10,754 | Client Secrets file in the gbq.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/3279017?v=4",
"events_url": "https://api.github.com/users/snamburi3/events{/privacy}",
"followers_url": "https://api.github.com/users/snamburi3/followers",
"following_url": "https://api.github.com/users/snamburi3/following{/other_user}",
"gists_url": "https://api.github.com/users/snamburi3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/snamburi3",
"id": 3279017,
"login": "snamburi3",
"node_id": "MDQ6VXNlcjMyNzkwMTc=",
"organizations_url": "https://api.github.com/users/snamburi3/orgs",
"received_events_url": "https://api.github.com/users/snamburi3/received_events",
"repos_url": "https://api.github.com/users/snamburi3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/snamburi3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/snamburi3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/snamburi3"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
]
| closed | false | null | []
| null | 6 | 2015-08-05T17:43:32Z | 2016-09-10T13:42:34Z | 2016-09-10T13:42:34Z | NONE | null | https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L102
Why is this in the gbq.py? can we set this as an environmental Variable?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10754/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10754/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10755 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10755/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10755/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10755/events | https://github.com/pandas-dev/pandas/issues/10755 | 99,313,614 | MDU6SXNzdWU5OTMxMzYxNA== | 10,755 | to_csv writes wrong utf-16 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4191477?v=4",
"events_url": "https://api.github.com/users/jehuelsm/events{/privacy}",
"followers_url": "https://api.github.com/users/jehuelsm/followers",
"following_url": "https://api.github.com/users/jehuelsm/following{/other_user}",
"gists_url": "https://api.github.com/users/jehuelsm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jehuelsm",
"id": 4191477,
"login": "jehuelsm",
"node_id": "MDQ6VXNlcjQxOTE0Nzc=",
"organizations_url": "https://api.github.com/users/jehuelsm/orgs",
"received_events_url": "https://api.github.com/users/jehuelsm/received_events",
"repos_url": "https://api.github.com/users/jehuelsm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jehuelsm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jehuelsm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jehuelsm"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "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": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
]
| open | false | null | []
| null | 2 | 2015-08-05T22:31:10Z | 2020-04-14T05:11:24Z | null | NONE | null | Writing a DataFrame with utf-16 encoding adds garbage characters to the file:
``` python
import codecs
import pandas as pd
#This works
enc = 'utf-8'
print '\n\n',enc,'\n\n'
d = {'one' : pd.Series([1., 2., 3.], index=['a', 'b', 'c']),
'two' : pd.Series([1., 2., 3., 4.], index=['a', 'b', 'c', 'd'])}
df = pd.DataFrame(d)
print df,'\n\n'
df.to_csv('foo.csv', encoding = enc)
df = pd.read_csv('foo.csv', encoding = enc)
print df,'\n\n'
with codecs.open('foo.csv', encoding=enc, mode='r') as f:
for line in f:
print line
#this does not work
enc = 'utf-16'
print '\n\n',enc,'\n\n'
d = {'one' : pd.Series([1., 2., 3.], index=['a', 'b', 'c']),
'two' : pd.Series([1., 2., 3., 4.], index=['a', 'b', 'c', 'd'])}
df = pd.DataFrame(d)
print df,'\n\n'
df.to_csv('foo.csv', encoding = enc)
df = pd.read_csv('foo.csv', encoding = enc)
print df,'\n\n'
#prints
# Unnamed: 0 one two???????????
# 0 b 2 2.0???????????
# 1 d NaN 4.0?
with codecs.open('foo.csv', encoding=enc, mode='r') as f:
for line in f:
print line
#prints
#,one,two愀Ⰰ⸀ Ⰰ⸀ ഀ
#b,2.0,2.0挀Ⰰ㌀⸀ Ⰰ㌀⸀ ഀ
#d,,4.0
```
Versions:
```
pandas.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: de_DE
pandas: 0.16.1
nose: 1.3.4
Cython: 0.21.1
numpy: 1.8.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 2.3.1
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.3
pytz: 2014.10
bottleneck: 0.8.0
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: 2.1.3
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.4.1
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 0.9.8
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/10755/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10755/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10756 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10756/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10756/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10756/events | https://github.com/pandas-dev/pandas/issues/10756 | 99,393,659 | MDU6SXNzdWU5OTM5MzY1OQ== | 10,756 | Pandas groupby histogram doesn't do transparant bars (alpha kwarg) | {
"avatar_url": "https://avatars.githubusercontent.com/u/6146598?v=4",
"events_url": "https://api.github.com/users/egpbos/events{/privacy}",
"followers_url": "https://api.github.com/users/egpbos/followers",
"following_url": "https://api.github.com/users/egpbos/following{/other_user}",
"gists_url": "https://api.github.com/users/egpbos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/egpbos",
"id": 6146598,
"login": "egpbos",
"node_id": "MDQ6VXNlcjYxNDY1OTg=",
"organizations_url": "https://api.github.com/users/egpbos/orgs",
"received_events_url": "https://api.github.com/users/egpbos/received_events",
"repos_url": "https://api.github.com/users/egpbos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/egpbos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/egpbos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/egpbos"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| null | 16 | 2015-08-06T09:17:49Z | 2017-10-30T16:38:09Z | 2017-08-22T14:18:55Z | NONE | null | I would expect the following code to produce a plot with transparent bars, but it doesn't.
``` python
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
plt.style.use('ggplot')
N = 1000
df = pd.DataFrame({
'a': np.random.randint(0, 2, N),
'b': np.random.random(N)
})
#df.groupby('a').b.hist(alpha=0.5)
df.groupby('a').b.plot(kind="hist", alpha=0.5)
plt.legend()
plt.show()
```
Neither the commented out `hist` command, nor the `plot` command works.
Version information from `pd.show_versions()`:
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-46-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.7
Cython: 0.20.1post0
numpy: 1.9.2
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 3.0.0
sphinx: None
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.4
bottleneck: None
tables: 3.1.1
numexpr: 2.2.2
matplotlib: 1.4.3
openpyxl: 1.7.0
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: 4.2.1
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10756/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10756/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10757 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10757/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10757/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10757/events | https://github.com/pandas-dev/pandas/pull/10757 | 99,424,029 | MDExOlB1bGxSZXF1ZXN0NDE3ODE5ODU= | 10,757 | BUG: Fix dtypes order when ordering is different from original file in pandas.io.stata.read_stata | {
"avatar_url": "https://avatars.githubusercontent.com/u/4203432?v=4",
"events_url": "https://api.github.com/users/jbuyl/events{/privacy}",
"followers_url": "https://api.github.com/users/jbuyl/followers",
"following_url": "https://api.github.com/users/jbuyl/following{/other_user}",
"gists_url": "https://api.github.com/users/jbuyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbuyl",
"id": 4203432,
"login": "jbuyl",
"node_id": "MDQ6VXNlcjQyMDM0MzI=",
"organizations_url": "https://api.github.com/users/jbuyl/orgs",
"received_events_url": "https://api.github.com/users/jbuyl/received_events",
"repos_url": "https://api.github.com/users/jbuyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbuyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbuyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbuyl"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-06T12:27:07Z | 2015-08-06T15:17:07Z | 2015-08-06T15:16:59Z | CONTRIBUTOR | null | This fixes http://stackoverflow.com/questions/31783392/pandas-adding-columns-to-filter-will-mess-with-data-structure
The dtypes of the DataFrame returned by read_stata have the same order as the original stata file, even if columns are specified with a different order.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10757/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10757/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10757",
"merged_at": "2015-08-06T15:16:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10757"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10758 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10758/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10758/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10758/events | https://github.com/pandas-dev/pandas/issues/10758 | 99,424,240 | MDU6SXNzdWU5OTQyNDI0MA== | 10,758 | API/COMPAT: add kw args to Timestamp constructor | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 0 | 2015-08-06T12:28:09Z | 2016-05-20T14:16:17Z | 2016-05-20T14:16:17Z | CONTRIBUTOR | null | from [SO](http://stackoverflow.com/questions/21599633/how-to-create-a-pandas-timestamp-object)
`Timestamp(year, month, day, second, millisecond, microsecond, nanosecond)`
as optional keyword args might be nice for compat with `datetime.datetime`. We do something similar for `Timedelta` construction.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10758/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10758/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10759 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10759/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10759/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10759/events | https://github.com/pandas-dev/pandas/issues/10759 | 99,492,784 | MDU6SXNzdWU5OTQ5Mjc4NA== | 10,759 | Rolling qcut | {
"avatar_url": "https://avatars.githubusercontent.com/u/13682466?v=4",
"events_url": "https://api.github.com/users/Kapik1337/events{/privacy}",
"followers_url": "https://api.github.com/users/Kapik1337/followers",
"following_url": "https://api.github.com/users/Kapik1337/following{/other_user}",
"gists_url": "https://api.github.com/users/Kapik1337/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kapik1337",
"id": 13682466,
"login": "Kapik1337",
"node_id": "MDQ6VXNlcjEzNjgyNDY2",
"organizations_url": "https://api.github.com/users/Kapik1337/orgs",
"received_events_url": "https://api.github.com/users/Kapik1337/received_events",
"repos_url": "https://api.github.com/users/Kapik1337/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kapik1337/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kapik1337/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kapik1337"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
},
{
"color": "9aace2",
"default": false,
"description": "cut, qcut",
"id": 1639305834,
"name": "cut",
"node_id": "MDU6TGFiZWwxNjM5MzA1ODM0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 278,
"created_at": "2013-01-06T03:02:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)",
"due_on": "2022-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/20",
"id": 239227,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels",
"node_id": "MDk6TWlsZXN0b25lMjM5MjI3",
"number": 20,
"open_issues": 108,
"state": "open",
"title": "Someday",
"updated_at": "2021-08-08T01:48:22Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20"
} | 1 | 2015-08-06T18:03:52Z | 2020-04-05T01:52:31Z | null | NONE | null | I believe qcut would be much more useful if there was a convenient way to apply it to a rolling window instead of the whole Series object. Of course it's possible with rolling_apply, but that does window_size times more calculations that are necessary for the output. For something as trivial as checking how the current value compares to the ones around it, I'm forced to use this monstrosity:
pd.rolling_apply(arg,window,lambda x: pd.qcut(x,q,labels=False)[window/2],center=True)
instead of much more elegant pd.rolling_qcut(arg,window,q,center=True)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10759/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10759/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10760 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10760/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10760/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10760/events | https://github.com/pandas-dev/pandas/issues/10760 | 99,578,239 | MDU6SXNzdWU5OTU3ODIzOQ== | 10,760 | DataError when aggregating Decimal values using pivot_table | {
"avatar_url": "https://avatars.githubusercontent.com/u/921741?v=4",
"events_url": "https://api.github.com/users/she11c0de/events{/privacy}",
"followers_url": "https://api.github.com/users/she11c0de/followers",
"following_url": "https://api.github.com/users/she11c0de/following{/other_user}",
"gists_url": "https://api.github.com/users/she11c0de/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/she11c0de",
"id": 921741,
"login": "she11c0de",
"node_id": "MDQ6VXNlcjkyMTc0MQ==",
"organizations_url": "https://api.github.com/users/she11c0de/orgs",
"received_events_url": "https://api.github.com/users/she11c0de/received_events",
"repos_url": "https://api.github.com/users/she11c0de/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/she11c0de/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/she11c0de/subscriptions",
"type": "User",
"url": "https://api.github.com/users/she11c0de"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": 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 | 2015-08-07T04:46:12Z | 2015-08-10T11:05:43Z | 2015-08-10T11:05:43Z | NONE | null | ```
import pandas as pd
from decimal import Decimal
df = pd.DataFrame()
df['a'] = pd.Series(['a', 'b', 'a'])
df['b'] = pd.Series([Decimal(x) for x in [1, 2, 3]])
df.pivot_table(columns='a', values='b')
```
Results in:
```
DataError Traceback (most recent call last)
<ipython-input-8-158f4a12f2dd> in <module>()
5 df['a'] = pd.Series(['a', 'b', 'a'])
6 df['b'] = pd.Series([Decimal(x) for x in [1, 2, 3]])
----> 7 df.pivot_table(columns='a', values='b')
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/tools/pivot.pyc in pivot_table(data, values, index, columns, aggfunc, fill_value, margins, dropna)
109
110 grouped = data.groupby(keys)
--> 111 agged = grouped.agg(aggfunc)
112
113 table = agged
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/core/groupby.pyc in agg(self, func, *args, **kwargs)
683 @Appender(_agg_doc)
684 def agg(self, func, *args, **kwargs):
--> 685 return self.aggregate(func, *args, **kwargs)
686
687 def _iterate_slices(self):
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/core/groupby.pyc in aggregate(self, arg, *args, **kwargs)
2635 def aggregate(self, arg, *args, **kwargs):
2636 if isinstance(arg, compat.string_types):
-> 2637 return getattr(self, arg)(*args, **kwargs)
2638
2639 result = OrderedDict()
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/core/groupby.pyc in mean(self)
698 """
699 try:
--> 700 return self._cython_agg_general('mean')
701 except GroupByError:
702 raise
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/core/groupby.pyc in _cython_agg_general(self, how, numeric_only)
2558
2559 def _cython_agg_general(self, how, numeric_only=True):
-> 2560 new_items, new_blocks = self._cython_agg_blocks(how, numeric_only=numeric_only)
2561 return self._wrap_agged_blocks(new_items, new_blocks)
2562
/home/user/anaconda/envs/fdb/lib/python2.7/site-packages/pandas/core/groupby.pyc in _cython_agg_blocks(self, how, numeric_only)
2605
2606 if len(new_blocks) == 0:
-> 2607 raise DataError('No numeric types to aggregate')
2608
2609 return data.items, new_blocks
DataError: No numeric types to aggregate
```
But works fine for ints/floats:
```
df = pd.DataFrame()
df['a'] = pd.Series(['a', 'b', 'a'])
df['b'] = pd.Series([float(x) for x in [1, 2, 3]])
df.pivot_table(columns='a', values='b')
```
Out:
```
a
a 2
b 2
Name: b, dtype: int64
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10760/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10760/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10761 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10761/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10761/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10761/events | https://github.com/pandas-dev/pandas/issues/10761 | 99,618,677 | MDU6SXNzdWU5OTYxODY3Nw== | 10,761 | DataFrame.plot overrides previous plots if the frame's index is DatetimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/7330385?v=4",
"events_url": "https://api.github.com/users/esvhd/events{/privacy}",
"followers_url": "https://api.github.com/users/esvhd/followers",
"following_url": "https://api.github.com/users/esvhd/following{/other_user}",
"gists_url": "https://api.github.com/users/esvhd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/esvhd",
"id": 7330385,
"login": "esvhd",
"node_id": "MDQ6VXNlcjczMzAzODU=",
"organizations_url": "https://api.github.com/users/esvhd/orgs",
"received_events_url": "https://api.github.com/users/esvhd/received_events",
"repos_url": "https://api.github.com/users/esvhd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/esvhd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/esvhd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/esvhd"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| open | false | null | []
| null | 5 | 2015-08-07T09:58:14Z | 2021-04-18T23:10:48Z | null | NONE | null | Environment is Anaconda 2.3, using python 2.7.10. Pandas version 0.16.2.
Here's the code to reproduce this problem in IPython Notebook 3.2, only `df['col3']` is plotted.
When sharing an axis the last plot() seems to override whatever was plotted before. Only the last plotted item is shown in figure.
```
import pandas as pd
import bumpy as np
import matplotlib.pyplot as plt
%matplotlib inline
drange = pd.date_range(start='2015-07-01', end='2015-07-10', freq='D')
df = pd.DataFrame(data=np.random.random_sample((10, 3)), index=drange, columns=['col1', 'col2', 'col3'])
fig, ax = plt.subplots()
plt.hold(True) # when the index is just integer type, this will make it work.
df[['col1', 'col2']].plot(kind='bar', ax=ax, stacked=True)
df[['col3']].plot(ax=ax, color='r', marker='o', ls='-', alpha=.7) # This overrides the previous plot
# if you use this line below instead of the line above, both bars and lines will show up:
#ax.plot(df[['col3']], color='r', marker='o', ls='-', alpha=.7)
ax.grid(True)
ax.legend(loc='best')
```

| {
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10761/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10761/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10762 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10762/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10762/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10762/events | https://github.com/pandas-dev/pandas/issues/10762 | 99,639,535 | MDU6SXNzdWU5OTYzOTUzNQ== | 10,762 | reset_index loses type information on time indices with time zone information | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"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 | 2015-08-07T12:36:14Z | 2015-08-07T13:00:41Z | 2015-08-07T12:39:11Z | NONE | null | ```
import pandas as pd
ts1 = pd.Timestamp('2015-07-01 10:00:00')
ts2 = pd.Timestamp('2015-07-01 11:00:00')
df1 = pd.DataFrame([[0.1],[0.2]], index=[ts1, ts2], columns=['a'])
print(df1.index.dtype)
df1 = df1.reset_index(drop=False)
print(df1['index'].dtype)
df2 = pd.DataFrame([[0.1],[0.2]], index=[ts1, ts2], columns=['a'])
df2.index = df2.index.tz_localize('Europe/London')
print(df2.index.dtype)
df2 = df2.reset_index(drop=False)
print(df2['index'].dtype)
```
gives
datetime64[ns]
datetime64[ns]
datetime64[ns]
object
While one would expect that the last two lines are identical.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10762/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10762/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10763 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10763/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10763/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10763/events | https://github.com/pandas-dev/pandas/issues/10763 | 99,643,027 | MDU6SXNzdWU5OTY0MzAyNw== | 10,763 | pandas.Series does not allow adding timedeltas to series of timestamps with datetime information | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-07T12:59:54Z | 2015-09-05T16:17:23Z | 2015-09-05T16:17:23Z | NONE | null | xref #10477
It is possible with numpy, but not with pandas:
```
import numpy as np
import pandas as pd
ts1 = pd.Timestamp('2015-07-01 10:00:00').tz_localize('Europe/London')
ts2 = pd.Timestamp('2015-07-01 11:00:00').tz_localize('Europe/London')
dt = ts2 - ts1
x = np.array([ts1, ts2])
print(x)
dx = np.array([dt, dt])
print(x + dx)
s = pd.Series([ts1, ts2])
print(s)
ds = pd.Series([dt, dt])
print(s + ds)
```
`s + ds` throws an error `ufunc add cannot use operands with types dtype('O') and dtype('<m8[ns]')`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10763/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10763/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10764 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10764/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10764/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10764/events | https://github.com/pandas-dev/pandas/issues/10764 | 99,644,593 | MDU6SXNzdWU5OTY0NDU5Mw== | 10,764 | reindex() from string index to DatetimeIndex index returns nan values on Pandas 0.16.2 and 0.16.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7765646?v=4",
"events_url": "https://api.github.com/users/stigdescamps/events{/privacy}",
"followers_url": "https://api.github.com/users/stigdescamps/followers",
"following_url": "https://api.github.com/users/stigdescamps/following{/other_user}",
"gists_url": "https://api.github.com/users/stigdescamps/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stigdescamps",
"id": 7765646,
"login": "stigdescamps",
"node_id": "MDQ6VXNlcjc3NjU2NDY=",
"organizations_url": "https://api.github.com/users/stigdescamps/orgs",
"received_events_url": "https://api.github.com/users/stigdescamps/received_events",
"repos_url": "https://api.github.com/users/stigdescamps/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stigdescamps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stigdescamps/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stigdescamps"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| null | 9 | 2015-08-07T13:10:21Z | 2015-08-07T14:09:43Z | 2015-08-07T13:15:32Z | NONE | null | When upgrading to pandas 0.16.2, reindex() from string index to DatetimeIndex index returns nan values.
This test code:
```
indexInit = ["19990101","19990102","19990103"]
values = [1.0,2.5,2.1]
outSeries = Series(values,index=indexInit)
outSeries.reindex(index=DatetimeIndex(outSeries.index))
```
returns:
```
1999-01-01 nan
1999-01-02 nan
1999-01-03 nan
```
Same output on the latest Mac OS X version and also the latest linux version.
We had to downgrade the Pandas version for this to work.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10764/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10764/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10765 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10765/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10765/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10765/events | https://github.com/pandas-dev/pandas/issues/10765 | 99,677,298 | MDU6SXNzdWU5OTY3NzI5OA== | 10,765 | to_cassandra(table, session) | {
"avatar_url": "https://avatars.githubusercontent.com/u/337872?v=4",
"events_url": "https://api.github.com/users/rustyrazorblade/events{/privacy}",
"followers_url": "https://api.github.com/users/rustyrazorblade/followers",
"following_url": "https://api.github.com/users/rustyrazorblade/following{/other_user}",
"gists_url": "https://api.github.com/users/rustyrazorblade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rustyrazorblade",
"id": 337872,
"login": "rustyrazorblade",
"node_id": "MDQ6VXNlcjMzNzg3Mg==",
"organizations_url": "https://api.github.com/users/rustyrazorblade/orgs",
"received_events_url": "https://api.github.com/users/rustyrazorblade/received_events",
"repos_url": "https://api.github.com/users/rustyrazorblade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rustyrazorblade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rustyrazorblade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rustyrazorblade"
} | [
{
"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"
}
]
| 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 | 2015-08-07T15:56:20Z | 2016-11-11T11:46:51Z | 2016-11-11T11:46:43Z | NONE | null | Adding cassandra support should be very similar to `to_sql()` but is different enough where I think it needs it's own call, as it wouldn't use SQLAlchemy or behave even remotely close.
Python driver is here: https://github.com/datastax/python-driver
Willing to help on this if it'll get pulled in.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10765/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10765/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10766 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10766/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10766/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10766/events | https://github.com/pandas-dev/pandas/issues/10766 | 99,680,336 | MDU6SXNzdWU5OTY4MDMzNg== | 10,766 | Inconsistent results for np.isreal with strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/2250400?v=4",
"events_url": "https://api.github.com/users/depristo/events{/privacy}",
"followers_url": "https://api.github.com/users/depristo/followers",
"following_url": "https://api.github.com/users/depristo/following{/other_user}",
"gists_url": "https://api.github.com/users/depristo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/depristo",
"id": 2250400,
"login": "depristo",
"node_id": "MDQ6VXNlcjIyNTA0MDA=",
"organizations_url": "https://api.github.com/users/depristo/orgs",
"received_events_url": "https://api.github.com/users/depristo/received_events",
"repos_url": "https://api.github.com/users/depristo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/depristo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/depristo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/depristo"
} | []
| closed | false | null | []
| null | 3 | 2015-08-07T16:15:34Z | 2015-08-07T16:38:13Z | 2015-08-07T16:37:40Z | NONE | null | Hi Pandas.
Just uncovered a clear bug in the interaction between pandas series and numpy isreal(). The behavior is simple: isreal() produces incorrect results on panda's series that include string types. It's not 100% clear the underlying cause but it appears to be related to np.isreal operating over the pd.Series object because isreal returns the correct result when individual elements are accessed. See example reproducing the issue in pandas 0.16.1:
```
print(np.isreal(pd.Series(['1.0'])))
print(np.isreal(np.array(pd.Series(['1.0']))))
print(np.isreal(np.array(pd.Series(['1.0']))[0]))
print(np.isreal(np.array(pd.Series(['1.0'])[0])))
print(np.isreal(np.array(['1.0'])))
```
produces
```
[ True]
[ True]
False
False
False
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10766/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10766/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10767 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10767/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10767/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10767/events | https://github.com/pandas-dev/pandas/issues/10767 | 99,683,488 | MDU6SXNzdWU5OTY4MzQ4OA== | 10,767 | rolling_window(mean=True), why? | {
"avatar_url": "https://avatars.githubusercontent.com/u/495399?v=4",
"events_url": "https://api.github.com/users/lababidi/events{/privacy}",
"followers_url": "https://api.github.com/users/lababidi/followers",
"following_url": "https://api.github.com/users/lababidi/following{/other_user}",
"gists_url": "https://api.github.com/users/lababidi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lababidi",
"id": 495399,
"login": "lababidi",
"node_id": "MDQ6VXNlcjQ5NTM5OQ==",
"organizations_url": "https://api.github.com/users/lababidi/orgs",
"received_events_url": "https://api.github.com/users/lababidi/received_events",
"repos_url": "https://api.github.com/users/lababidi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lababidi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lababidi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lababidi"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 5 | 2015-08-07T16:31:58Z | 2015-08-07T21:18:15Z | 2015-08-07T19:18:08Z | NONE | null | I attempted to use `rolling_window()` and couldn't figure out why my simple test cases weren't working. I realized there's a default value of `mean=True` to average the result out. Is this really the most common use case people have? I would have assumed most use cases would be `mean=False`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10767/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10767/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10768 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10768/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10768/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10768/events | https://github.com/pandas-dev/pandas/issues/10768 | 99,716,197 | MDU6SXNzdWU5OTcxNjE5Nw== | 10,768 | pandas Truck Factor | {
"avatar_url": "https://avatars.githubusercontent.com/u/666210?v=4",
"events_url": "https://api.github.com/users/gavelino/events{/privacy}",
"followers_url": "https://api.github.com/users/gavelino/followers",
"following_url": "https://api.github.com/users/gavelino/following{/other_user}",
"gists_url": "https://api.github.com/users/gavelino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gavelino",
"id": 666210,
"login": "gavelino",
"node_id": "MDQ6VXNlcjY2NjIxMA==",
"organizations_url": "https://api.github.com/users/gavelino/orgs",
"received_events_url": "https://api.github.com/users/gavelino/received_events",
"repos_url": "https://api.github.com/users/gavelino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gavelino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gavelino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gavelino"
} | []
| closed | false | null | []
| null | 1 | 2015-08-07T19:43:43Z | 2015-08-08T01:33:11Z | 2015-08-08T01:33:11Z | NONE | null | As part of my PhD research on code authorship, we calculated the Truck Factor (TF) of some popular GitHub repositories.
As you probably know, the [Truck (or Bus) Factor](https://en.wikipedia.org/wiki/Bus_factor) designates the minimal number of developers that have to be hit by a truck (or quit) before a project is incapacitated. In our work, we consider that a system is in trouble if more than 50% of its files become orphan (i.e., without a main author).
More details on our work in this preprint: https://peerj.com/preprints/1233
We calculated the TF for **pandas** and obtained a value of **2**.
The developers responsible for this TF are:
Wes McKinney - author of 59% of the files
Jeff Reback - author of 19% of the files
To validate our results, we would like to ask **pandas** developers the following three brief questions:
(a) Do you agree that the listed developers are the main developers of **pandas**?
(b) Do you agree that **pandas** will be in trouble if the listed developers leave the project (e.g., if they win in the lottery, to be less morbid)?
(c) Does **pandas** have some characteristics that would attenuate the loss of the listed developers (e.g., detailed documentation)?
Thanks in advance for your collaboration,
Guilherme Avelino
PhD Student
Applied Software Engineering Group (ASERG)
UFMG, Brazil
http://aserg.labsoft.dcc.ufmg.br/
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10768/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10768/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10769 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10769/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10769/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10769/events | https://github.com/pandas-dev/pandas/issues/10769 | 99,805,194 | MDU6SXNzdWU5OTgwNTE5NA== | 10,769 | Performance: Implicit boxing to TimeStamp of datetime64[ns] inside DateTimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/910285?v=4",
"events_url": "https://api.github.com/users/drglitch/events{/privacy}",
"followers_url": "https://api.github.com/users/drglitch/followers",
"following_url": "https://api.github.com/users/drglitch/following{/other_user}",
"gists_url": "https://api.github.com/users/drglitch/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drglitch",
"id": 910285,
"login": "drglitch",
"node_id": "MDQ6VXNlcjkxMDI4NQ==",
"organizations_url": "https://api.github.com/users/drglitch/orgs",
"received_events_url": "https://api.github.com/users/drglitch/received_events",
"repos_url": "https://api.github.com/users/drglitch/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drglitch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drglitch/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drglitch"
} | [
{
"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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| null | 7 | 2015-08-08T14:14:29Z | 2015-08-10T11:01:04Z | 2015-08-08T16:11:19Z | NONE | null | Hello,
I've stumbled onto a behavior that causes performance problems on large datasets: When creating a multiindex with second level being a DateTime64 col, and then doing a `.loc[('val1', TimeStamp('val2'),)]` to get at particular value, pandas coerces (via _box_func, called from __iter__) all values in that particular column to TimeStamp dtype. This is done only on first access, but affect performance quite heavily since the op is O(n).
However, when chaining the same op (or calling it via multi-level `.xs`, this behavior is not exhibited. It is not a viable workaround however because doing so introduces an extra call to getitem per each level of multiindex.
Is there a workaround for this or what am i doing wrong?
In essence, given a df with unique multiindex, i want to get to a particular row given values for each level of the index.
Repro:
```
df = <dataframe with: [colA:string, colB:datetime64, colC:numeric with 1,000,000 rows>
gr = df.groupby(('colA', 'colB',))
ag = gr.aggregate({'colC':'sum'})
path = ('one', pd.TimeStamp('2015-01-01 01:02:03'),)
ag.loc[path] # << first call iterates over entire dataset doing the conversion, and is slow
ag.loc[path] # << second call is very quick
ag.xs(path, levels=('colA','colB',)) # << this takes a different code path but does an extra call to getitem, making it slower.
```
Other things:
- padding numpy.datetime64 into the path tuple instead of timestamp doesnt help
- specifiying axis for loc doesn't help
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10769/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10769/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10770 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10770/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10770/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10770/events | https://github.com/pandas-dev/pandas/issues/10770 | 99,829,223 | MDU6SXNzdWU5OTgyOTIyMw== | 10,770 | DOC: add days_in_month to time/date component accessors | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "2015-11-21T13:47:07Z",
"closed_issues": 216,
"created_at": "2015-09-10T14:30:44Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.17.0 of course!",
"due_on": "2015-11-21T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/37",
"id": 1299459,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/37/labels",
"node_id": "MDk6TWlsZXN0b25lMTI5OTQ1OQ==",
"number": 37,
"open_issues": 0,
"state": "closed",
"title": "0.17.1",
"updated_at": "2016-07-21T16:02:53Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/37"
} | 0 | 2015-08-08T19:20:35Z | 2015-10-30T22:08:05Z | 2015-10-30T22:08:05Z | CONTRIBUTOR | null | xref #9605
document http://pandas-docs.github.io/pandas-docs-travis/timeseries.html#time-date-components
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10770/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10770/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10771 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10771/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10771/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10771/events | https://github.com/pandas-dev/pandas/pull/10771 | 99,834,519 | MDExOlB1bGxSZXF1ZXN0NDE5NjA4MzU= | 10,771 | BUG: `read_sql_table` can't find views | {
"avatar_url": "https://avatars.githubusercontent.com/u/4025968?v=4",
"events_url": "https://api.github.com/users/IamGianluca/events{/privacy}",
"followers_url": "https://api.github.com/users/IamGianluca/followers",
"following_url": "https://api.github.com/users/IamGianluca/following{/other_user}",
"gists_url": "https://api.github.com/users/IamGianluca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IamGianluca",
"id": 4025968,
"login": "IamGianluca",
"node_id": "MDQ6VXNlcjQwMjU5Njg=",
"organizations_url": "https://api.github.com/users/IamGianluca/orgs",
"received_events_url": "https://api.github.com/users/IamGianluca/received_events",
"repos_url": "https://api.github.com/users/IamGianluca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IamGianluca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IamGianluca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IamGianluca"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 2 | 2015-08-08T21:31:09Z | 2015-08-12T09:30:03Z | 2015-08-12T06:46:14Z | CONTRIBUTOR | null | closes #10750
Add ability to 'read_sql_table' to read views and implement an unit test to check its behaviour
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10771/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10771/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10771.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10771",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10771.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10771"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10772 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10772/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10772/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10772/events | https://github.com/pandas-dev/pandas/issues/10772 | 99,838,956 | MDU6SXNzdWU5OTgzODk1Ng== | 10,772 | BUG: crosstab(dropna=False) does not work like value_counts(dropna=False) | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4",
"events_url": "https://api.github.com/users/rosnfeld/events{/privacy}",
"followers_url": "https://api.github.com/users/rosnfeld/followers",
"following_url": "https://api.github.com/users/rosnfeld/following{/other_user}",
"gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rosnfeld",
"id": 5356340,
"login": "rosnfeld",
"node_id": "MDQ6VXNlcjUzNTYzNDA=",
"organizations_url": "https://api.github.com/users/rosnfeld/orgs",
"received_events_url": "https://api.github.com/users/rosnfeld/received_events",
"repos_url": "https://api.github.com/users/rosnfeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rosnfeld"
} | [
{
"color": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
]
| 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"
} | 15 | 2015-08-08T22:20:16Z | 2021-04-18T23:12:17Z | null | CONTRIBUTOR | null | If one uses `series.value_counts(dropna=False)` it includes `NaN` values, but `crosstab(series1, series2, dropna=False)` does not include `NaN` values. I think of `cross_tab` kind of like 2-dimensional `value_counts()`, so this is surprising.
``` python
In [31]: x = pd.Series(['a', 'b', 'a', None, 'a'])
In [32]: y = pd.Series(['c', 'd', 'd', 'c', None])
In [33]: y.value_counts(dropna=False)
Out[33]:
d 2
c 2
NaN 1
dtype: int64
In [34]: pd.crosstab(x, y, dropna=False)
Out[34]:
c d
row_0
a 1 1
b 0 1
```
I believe what `crosstab(..., dropna=False)` really does is just include rows/columns that would otherwise have all zeros, but that doesn't seem the same as `dropna=False` to me. I would have expected to see a row and column entry for `NaN`, something like:
``` python
c d NaN
row_0
a 1 1 1
b 0 1 0
NaN 1 0 0
```
Thoughts on this?
This is on current master (almost 0.17).
| {
"+1": 6,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 6,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10772/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10772/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10773 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10773/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10773/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10773/events | https://github.com/pandas-dev/pandas/issues/10773 | 99,840,065 | MDU6SXNzdWU5OTg0MDA2NQ== | 10,773 | Timestamp handles a different date range than datetime.datetime and numpy.datetime64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | []
| closed | false | null | []
| null | 2 | 2015-08-08T22:48:28Z | 2015-08-08T23:08:02Z | 2015-08-08T22:55:00Z | CONTRIBUTOR | null | This may very well be known/intentional, and if so I think it's worth putting in doc somewhere.
```
>>> datetime(2300,1,1)
datetime.datetime(2300, 1, 1, 0, 0)
>>> numpy.datetime64('2300-01-01')
numpy.datetime64('2300-01-01')
>>> Timestamp('2300-01-01') # pandas.tslib.OutOfBoundsDatetime
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10773/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10773/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10774 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10774/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10774/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10774/events | https://github.com/pandas-dev/pandas/issues/10774 | 99,849,903 | MDU6SXNzdWU5OTg0OTkwMw== | 10,774 | API: DatetimeIndex / TimedeltaIndex 2d slicing should result in Index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "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": "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": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 6 | 2015-08-09T01:16:09Z | 2021-04-18T23:16:23Z | 2021-04-18T23:16:23Z | MEMBER | null | Following slices basically result in the same `Index`.
```
import pandas as pd
pd.Index([1, 2, 3])[:, None]
# Int64Index([[1], [2], [3]], dtype='int64')
pd.MultiIndex.from_tuples([('a', 1), ('b', 2)])[:, None]
# MultiIndex(levels=[[u'a', u'b'], [1, 2]],
# labels=[[[0], [1]], [[0], [1]]])
pd.period_range('2011-01-01', freq='M', periods=3)[:, None]
# PeriodIndex(['2011-01', '2011-02', '2011-03'], dtype='int64', freq='M')
```
But `DatetimeIndex` and `TimedeltaIndex` doesn't because of following line.
- https://github.com/pydata/pandas/blob/master/pandas/tseries/base.py#L119
```
pd.date_range('2011-01-01', freq='M', periods=3)[:, None]
# array([['2011-01-31T09:00:00.000000000+0900'],
# ['2011-02-28T09:00:00.000000000+0900'],
# ['2011-03-31T09:00:00.000000000+0900']], dtype='datetime64[ns]')
pd.timedelta_range('1 days', freq='D', periods=3)[:, None]
# array([[ 86400000000000],
# [172800000000000],
# [259200000000000]], dtype='timedelta64[ns]')
```
I understand these must be `Index` also, or any reason for this?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10774/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10774/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10775 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10775/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10775/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10775/events | https://github.com/pandas-dev/pandas/issues/10775 | 99,850,617 | MDU6SXNzdWU5OTg1MDYxNw== | 10,775 | Timedelta has unpexected properties when negative | {
"avatar_url": "https://avatars.githubusercontent.com/u/704919?v=4",
"events_url": "https://api.github.com/users/adamgreenhall/events{/privacy}",
"followers_url": "https://api.github.com/users/adamgreenhall/followers",
"following_url": "https://api.github.com/users/adamgreenhall/following{/other_user}",
"gists_url": "https://api.github.com/users/adamgreenhall/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adamgreenhall",
"id": 704919,
"login": "adamgreenhall",
"node_id": "MDQ6VXNlcjcwNDkxOQ==",
"organizations_url": "https://api.github.com/users/adamgreenhall/orgs",
"received_events_url": "https://api.github.com/users/adamgreenhall/received_events",
"repos_url": "https://api.github.com/users/adamgreenhall/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adamgreenhall/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adamgreenhall/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adamgreenhall"
} | [
{
"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": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| null | 1 | 2015-08-09T01:35:59Z | 2015-08-09T01:56:38Z | 2015-08-09T01:56:20Z | CONTRIBUTOR | null | Here's what's going on:
```
In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: '0.16.2+308.g529288e'
In [3]: dt = pd.Timedelta(seconds=-2)
In [4]: dt
Out[4]: Timedelta('-1 days +23:59:58')
In [5]: dt.seconds
Out[5]: 86398
```
I would expect `dt.seconds == -2`.
It seems like the fix may be something like:
```
In [6]: dt.days * 3600 * 24 + dt.seconds
Out[6]: -2
```
Is it that easy? `Timedelta` is based on UTC time, so days always have 24hrs, right?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10775/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10775/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10776 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10776/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10776/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10776/events | https://github.com/pandas-dev/pandas/pull/10776 | 99,871,274 | MDExOlB1bGxSZXF1ZXN0NDE5NjYzNDM= | 10,776 | BUG: GH10747 where cast_to_nanoseconds from NaT fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 2 | 2015-08-09T06:52:20Z | 2015-08-12T13:44:37Z | 2015-08-12T13:44:32Z | CONTRIBUTOR | null | related to first of #10747
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10776/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10776/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10776.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10776",
"merged_at": "2015-08-12T13:44:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10776.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10776"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10777 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10777/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10777/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10777/events | https://github.com/pandas-dev/pandas/issues/10777 | 99,871,469 | MDU6SXNzdWU5OTg3MTQ2OQ== | 10,777 | Precision of floats with to_csv - difference between Python 2 and Python 3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | []
| closed | false | null | []
| null | 3 | 2015-08-09T06:57:23Z | 2015-08-09T08:08:27Z | 2015-08-09T08:05:04Z | CONTRIBUTOR | null | Hello,
I noticed that size of a CSV file generated with Pandas and Python are differents depending of which version of Python was used.
I was expecting same behaviour for same code.
With Python 3
```
pc:~ scls$ cat big.py
import pandas as pd
import numpy as np
(rows, cols) = (400, 10)
a = np.random.random((rows, cols))
df = pd.DataFrame(a)
filename = "big_random.csv"
df.to_csv(filename, index=False)
pc:~ scls$ python --version
Python 3.4.3 :: Anaconda 2.3.0 (x86_64)
pc:~ scls$ python big.py
pc:~ scls$ head big_random.csv
0,1,2,3,4,5,6,7,8,9
0.7175194974125143,0.9868374217576047,0.032049602250014075,0.6289681136928122,0.8096042270600179,0.33685028982497345,0.15762455315620005,0.4691775579462879,0.4456870865050826,0.18795963399879667
0.6587841850716022,0.9138862585748279,0.725186213931711,0.8455808154946725,0.7513894749589103,0.1264561639354813,0.22313629403106283,0.7082854809639854,0.6372581410511284,0.39526526133363016
0.41655411171973145,0.82608272240786,0.39046502732419675,0.21280845299958473,0.7260928524192569,0.13413288736071716,0.6403422588148618,0.38493112678936114,0.1008469225955716,0.7569988810703301
0.4153526009936582,0.31647402611493414,0.9975731184442808,0.6426165566647016,0.09261643366931205,0.3227891182788275,0.8867457623057338,0.27223526407455145,0.3281299815210015,0.9740848774163636
0.18492378563510736,0.6467683901479606,0.040191223061303516,0.06418796210918698,0.6377758098323728,0.3015310590768058,0.35801398526272554,0.3847352145606483,0.5169639983061501,0.7688238573672432
0.12776779442246045,0.13988857304612567,0.5174730743084831,0.48860306709655155,0.6430744296754209,0.7043353997674583,0.9036918523659346,0.8363827082165963,0.10904005101984726,0.3467075055731551
0.8735436905183718,0.3094682378308442,0.3425056806446519,0.6327109907812603,0.027768508379761192,0.7572863534573687,0.013631783039836698,0.9498400284024592,0.7489006948603708,0.26146706653431384
0.00706906732485435,0.398808829510499,0.1603837067149072,0.1162434740119399,0.6308407696050173,0.38437501090290294,0.7084745025285255,0.6766732951295603,0.09640698119674629,0.16475759581133098
0.37288409337600503,0.8170980071434518,0.10346296752178363,0.22734655867481057,0.977310707692392,0.2058569589426188,0.810879704065204,0.4644448946189589,0.7872748134058031,0.21634203693609444
```
Let's do the same with Python 2
```
pc:~ scls$ source activate py2
discarding //anaconda/bin from PATH
prepending //anaconda/envs/py2/bin to PATH
(py2)pc:~ scls$ python --version
Python 2.7.10 :: Anaconda 2.3.0 (x86_64)
(py2)pc:~ scls$ python big.py
(py2)pc:~ scls$ head big_random.csv
0,1,2,3,4,5,6,7,8,9
0.5579481683,0.684701543521,0.754306080917,0.618156128389,0.172254680145,0.0174204117472,0.42003733688,0.544810598703,0.501523693218,0.254650528482
0.245211610381,0.242803787702,0.74730831067,0.902427362626,0.79284128878,0.759901967668,0.138869495692,0.409657542539,0.800543764611,0.126875692556
0.157008551856,0.196911813758,0.427114483552,0.513200703916,0.629485103457,0.158393748929,0.725090100741,0.997671387723,0.168756770968,0.307894016467
0.277986851471,0.841819960853,0.948682092484,0.0698344807858,0.843959698756,0.124105138469,0.685600301284,0.638439389501,0.153843520073,0.00693283214343
0.825322391369,0.246830314636,0.76342798427,0.588335209531,0.0639153711562,0.277168287326,0.660799511539,0.246912047114,0.525794863223,0.606527113773
0.422893634037,0.416014910374,0.0282877421175,0.479474754244,0.562079226872,0.554424129574,0.850810096081,0.980219346119,0.376727776223,0.0202092423104
0.107718832593,0.82063197471,0.293988837033,0.0741333403483,0.223505401274,0.506775135928,0.411408416805,0.828313119764,0.670612028027,0.67312260052
0.822882425742,0.0355538636782,0.0453556725915,0.483123830922,0.726536606867,0.265317264415,0.190839972237,0.63416336544,0.776559958794,0.198684003523
0.0159240676555,0.082225869763,0.9188622672,0.628898793501,0.598847602455,0.479313877636,0.830676086143,0.930886044804,0.979980325282,0.42786165221
```
Compare number of digits of
- `0.7175194974125143`
- `0.5579481683`
Same code leads to 6 digits difference.
Kind regards
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10777/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10777/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10778 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10778/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10778/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10778/events | https://github.com/pandas-dev/pandas/issues/10778 | 99,907,374 | MDU6SXNzdWU5OTkwNzM3NA== | 10,778 | df.to_json segfaults with categorical column types | {
"avatar_url": "https://avatars.githubusercontent.com/u/2096628?v=4",
"events_url": "https://api.github.com/users/blink1073/events{/privacy}",
"followers_url": "https://api.github.com/users/blink1073/followers",
"following_url": "https://api.github.com/users/blink1073/following{/other_user}",
"gists_url": "https://api.github.com/users/blink1073/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/blink1073",
"id": 2096628,
"login": "blink1073",
"node_id": "MDQ6VXNlcjIwOTY2Mjg=",
"organizations_url": "https://api.github.com/users/blink1073/orgs",
"received_events_url": "https://api.github.com/users/blink1073/received_events",
"repos_url": "https://api.github.com/users/blink1073/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/blink1073/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blink1073/subscriptions",
"type": "User",
"url": "https://api.github.com/users/blink1073"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 5 | 2015-08-09T15:55:45Z | 2019-02-18T19:15:45Z | 2016-04-26T18:54:47Z | NONE | null | This code from the Categorical tutorial:
``` python
df = pd.DataFrame({"A":["a","b","c","a"]})
df["B"] = df["A"].astype('category')
```
Will segfault when `df.to_json` is called. Tested on:
``` bash
Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar 6 2015, 12:07:41)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
$ conda list | grep pandas
pandas 0.16.2 np19py34_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/10778/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10778/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10779 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10779/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10779/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10779/events | https://github.com/pandas-dev/pandas/issues/10779 | 99,917,716 | MDU6SXNzdWU5OTkxNzcxNg== | 10,779 | Series.iloc[ negative number ] can access memory it doesn't own or cause Segmentation Fault | {
"avatar_url": "https://avatars.githubusercontent.com/u/5010099?v=4",
"events_url": "https://api.github.com/users/sergeny/events{/privacy}",
"followers_url": "https://api.github.com/users/sergeny/followers",
"following_url": "https://api.github.com/users/sergeny/following{/other_user}",
"gists_url": "https://api.github.com/users/sergeny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sergeny",
"id": 5010099,
"login": "sergeny",
"node_id": "MDQ6VXNlcjUwMTAwOTk=",
"organizations_url": "https://api.github.com/users/sergeny/orgs",
"received_events_url": "https://api.github.com/users/sergeny/received_events",
"repos_url": "https://api.github.com/users/sergeny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sergeny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sergeny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sergeny"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-09T18:18:52Z | 2015-08-14T18:41:14Z | 2015-08-14T18:41:14Z | NONE | null | In other words, there is no bounds checking for Series.iloc[] with a negative argument. It just accesses whatever is in the memory there. Also a security breach.
It does appear to check on write, just not on read.
Python 2.7.10 |Anaconda 2.1.0 (64-bit)| (default, May 28 2015, 17:02:03)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
> > > import pandas as pd
> > > pd>>> pd.**version**
> > > '0.16.2'
> > > s = pd.Series([1,2,3])
> > > s
> > > 0 1
> > > 1 2
> > > 2 3
> > > dtype: int64
> > > s.iloc[-2]
> > > 2
> > > s.iloc[-4]
> > > 33
> > > s.iloc[-12345]
> > > 0
> > > s.iloc[-123123123123123]
> > > Segmentation fault (core dumped)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10779/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10779/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10780 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10780/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10780/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10780/events | https://github.com/pandas-dev/pandas/issues/10780 | 99,983,042 | MDU6SXNzdWU5OTk4MzA0Mg== | 10,780 | grouped.filter with dropna option | {
"avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4",
"events_url": "https://api.github.com/users/leo4183/events{/privacy}",
"followers_url": "https://api.github.com/users/leo4183/followers",
"following_url": "https://api.github.com/users/leo4183/following{/other_user}",
"gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leo4183",
"id": 10853125,
"login": "leo4183",
"node_id": "MDQ6VXNlcjEwODUzMTI1",
"organizations_url": "https://api.github.com/users/leo4183/orgs",
"received_events_url": "https://api.github.com/users/leo4183/received_events",
"repos_url": "https://api.github.com/users/leo4183/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo4183/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leo4183"
} | [
{
"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": "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 | 2015-08-10T06:15:26Z | 2016-12-20T20:44:26Z | 2016-12-20T20:44:26Z | NONE | null | in Pandas 0.16.2:
```
grouped = a.groupby(idx)
grouped.filter(lambda x: x.mean()>0.0, dropna=False)
```
in case there was no group whose `x.mean()` was larger than zero, an `AttributeError: 'list' object has no attribute 'astype'` would be raised (rather than returning an all `NaN` dataframe/serie in previous versions).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10780/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10780/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10781 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10781/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10781/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10781/events | https://github.com/pandas-dev/pandas/issues/10781 | 100,005,765 | MDU6SXNzdWUxMDAwMDU3NjU= | 10,781 | ix/loc using indices rather than labels when passed a list for integer MultiIndex DataFrame? | {
"avatar_url": "https://avatars.githubusercontent.com/u/5364988?v=4",
"events_url": "https://api.github.com/users/ppeder08/events{/privacy}",
"followers_url": "https://api.github.com/users/ppeder08/followers",
"following_url": "https://api.github.com/users/ppeder08/following{/other_user}",
"gists_url": "https://api.github.com/users/ppeder08/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ppeder08",
"id": 5364988,
"login": "ppeder08",
"node_id": "MDQ6VXNlcjUzNjQ5ODg=",
"organizations_url": "https://api.github.com/users/ppeder08/orgs",
"received_events_url": "https://api.github.com/users/ppeder08/received_events",
"repos_url": "https://api.github.com/users/ppeder08/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ppeder08/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ppeder08/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ppeder08"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| null | 1 | 2015-08-10T08:22:02Z | 2015-08-10T10:50:35Z | 2015-08-10T10:50:23Z | NONE | null | For an integer MultiIndex DataFrame, the ix and loc properties should use labels rather than indices, right? However, this seems not to be the case if ix/loc is passed a list containing multiple labels refering to a single level. That is, the following example
``` python
import numpy as np
import pandas as pd
index = pd.MultiIndex.from_product((np.arange(3), np.arange(3)), names=('level0', 'level1'))
columns = pd.Index(('column',))
data = pd.DataFrame(np.arange(9), index=index, columns=columns)
print('{}\n\n{}'.format(
data.ix[0],
data.ix[[0]]))
```
outputs
```
column
level1
0 0
1 1
2 2
column
level0 level1
0 0 0
```
whereas I would expect both `data.ix[0]` and `data.ix[[0]]` to output the first three rows. If I change the levels of the MultiIndex from integers to floats, the desired behaviour is obtained. That is, the modified example
``` python
import numpy as np
import pandas as pd
index = pd.MultiIndex.from_product((np.arange(3.), np.arange(3.)), names=('level0', 'level1'))
columns = pd.Index(('column',))
data = pd.DataFrame(np.arange(9), index=index, columns=columns)
print('{}\n\n{}'.format(
data.ix[0.],
data.ix[[0.]]))
```
outputs
```
column
level1
0 0
1 1
2 2
column
level0 level1
0 0 0
1 1
2 2
```
Did I miss some subtlety or is this indeed a bug?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10781/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10781/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10782 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10782/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10782/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10782/events | https://github.com/pandas-dev/pandas/issues/10782 | 100,046,798 | MDU6SXNzdWUxMDAwNDY3OTg= | 10,782 | Improve Installation documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/4750881?v=4",
"events_url": "https://api.github.com/users/ganego/events{/privacy}",
"followers_url": "https://api.github.com/users/ganego/followers",
"following_url": "https://api.github.com/users/ganego/following{/other_user}",
"gists_url": "https://api.github.com/users/ganego/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ganego",
"id": 4750881,
"login": "ganego",
"node_id": "MDQ6VXNlcjQ3NTA4ODE=",
"organizations_url": "https://api.github.com/users/ganego/orgs",
"received_events_url": "https://api.github.com/users/ganego/received_events",
"repos_url": "https://api.github.com/users/ganego/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ganego/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ganego/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ganego"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 8 | 2015-08-10T11:56:34Z | 2015-08-11T10:35:48Z | 2015-08-11T10:35:45Z | CONTRIBUTOR | null | On this website http://pandas.pydata.org/pandas-docs/stable/install.html there are the console commands to install pandas on for example debian.
They are listed as _sudo apt-get install python-pandas_.
It would be a good idea to mention, that this will install pandas for python2 and you need to specificly write _python3-pandas_ to get the version for python3.
This might probably be completely obvious to everyone installing stuff like this every day, but for a beginner like me it was not clear at all and I struggled for quite some time to get pandas for py3.
Thank you.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10782/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10782/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10783 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10783/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10783/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10783/events | https://github.com/pandas-dev/pandas/issues/10783 | 100,051,715 | MDU6SXNzdWUxMDAwNTE3MTU= | 10,783 | Undesired behaviour using to_csv with QUOTE_NONE | {
"avatar_url": "https://avatars.githubusercontent.com/u/5354387?v=4",
"events_url": "https://api.github.com/users/pronojitsaha/events{/privacy}",
"followers_url": "https://api.github.com/users/pronojitsaha/followers",
"following_url": "https://api.github.com/users/pronojitsaha/following{/other_user}",
"gists_url": "https://api.github.com/users/pronojitsaha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pronojitsaha",
"id": 5354387,
"login": "pronojitsaha",
"node_id": "MDQ6VXNlcjUzNTQzODc=",
"organizations_url": "https://api.github.com/users/pronojitsaha/orgs",
"received_events_url": "https://api.github.com/users/pronojitsaha/received_events",
"repos_url": "https://api.github.com/users/pronojitsaha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pronojitsaha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pronojitsaha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pronojitsaha"
} | [
{
"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"
} | 4 | 2015-08-10T12:28:48Z | 2015-08-13T15:50:22Z | 2015-08-11T08:15:04Z | NONE | null | Hi,
My data frame contains unicode strings. Now when I use 'to_csv' without any quoting parameter, I get a csv file where certain fields (2 out of 11 to be exact) are in double quotes. For example:
`28,"May 8, 2013 10:22 AM","76th St, Yates Blvd",41.75717,-87.56633,3,-,1,4,-`
Now when I use csv.QUOTE_NONE i get the following error:
`Error: need to escape, but no escapechar set`
So i do the following (quoting=csv.QUOTE_NONE, escapechar='"'), and I get this:
`28,May 8", 2013 10:22 AM,76th St", Yates Blvd,41.75717,-87.56633,3,-,1,4,-`
So I get a new quote (") in those 2 fields. How to get around this problem? Thanks.
Sample code is below:
```
id = [u'1']
date = [u'Jan 12, 2013 08:30 AM']
location = [u'Ashland Avenue, Polk Street']
vehicles = [u'4']
drunken_persons = [u'-']
fatalities = [u'3']
persons = [u'4']
pedestrians = [u'-']
data = pd.DataFrame({'#':id, 'Date':date, 'Vehicles':vehicles, 'Drunken Persons':drunken_persons, 'Fatalities':fatalities, 'Persons':persons, 'Pedestrians':pedestrians, 'Location':location})
data[['#','Date','Location','Vehicles','Drunken Persons','Fatalities','Persons', 'Pedestrians']].astype(str).to_csv('Test.csv', sep=',', index = False, quoting=csv.QUOTE_NONE, escapechar='"')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10783/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10783/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10784 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10784/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10784/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10784/events | https://github.com/pandas-dev/pandas/pull/10784 | 100,055,583 | MDExOlB1bGxSZXF1ZXN0NDIwMTYzNDQ= | 10,784 | Update install.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/4750881?v=4",
"events_url": "https://api.github.com/users/ganego/events{/privacy}",
"followers_url": "https://api.github.com/users/ganego/followers",
"following_url": "https://api.github.com/users/ganego/following{/other_user}",
"gists_url": "https://api.github.com/users/ganego/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ganego",
"id": 4750881,
"login": "ganego",
"node_id": "MDQ6VXNlcjQ3NTA4ODE=",
"organizations_url": "https://api.github.com/users/ganego/orgs",
"received_events_url": "https://api.github.com/users/ganego/received_events",
"repos_url": "https://api.github.com/users/ganego/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ganego/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ganego/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ganego"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-10T12:51:02Z | 2015-08-11T10:35:34Z | 2015-08-11T10:35:34Z | CONTRIBUTOR | null | closes #10782
- Added hint regarding pip install on low memory machines.
- Added hint to python 3 version of pandas from distributon repos.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10784/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10784/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10784.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10784",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10784.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10784"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10785 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10785/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10785/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10785/events | https://github.com/pandas-dev/pandas/issues/10785 | 100,056,471 | MDU6SXNzdWUxMDAwNTY0NzE= | 10,785 | DataFrame.sum() inconsistent behavior treating full row/col of NANs | {
"avatar_url": "https://avatars.githubusercontent.com/u/13731237?v=4",
"events_url": "https://api.github.com/users/siyantan/events{/privacy}",
"followers_url": "https://api.github.com/users/siyantan/followers",
"following_url": "https://api.github.com/users/siyantan/following{/other_user}",
"gists_url": "https://api.github.com/users/siyantan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/siyantan",
"id": 13731237,
"login": "siyantan",
"node_id": "MDQ6VXNlcjEzNzMxMjM3",
"organizations_url": "https://api.github.com/users/siyantan/orgs",
"received_events_url": "https://api.github.com/users/siyantan/received_events",
"repos_url": "https://api.github.com/users/siyantan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/siyantan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/siyantan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/siyantan"
} | [
{
"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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 1 | 2015-08-10T12:55:04Z | 2015-08-10T12:57:27Z | 2015-08-10T12:56:54Z | NONE | null | Seeing an odd issue. When doing a sum and the full column or row is NAN, I expect NAN as the result. Recently my system has been giving a sum of zero if the full row is NAN, unless skipna=FALSE is specified (but of course that screws up rows with only one NAN, for example).
I would have thought skipna=TRUE, which is default, should give NAN if the full row is NAN per the docs.
This seems to be dependant on some combination of package versions but I cannot figure out why. I reinstalled completely to a fresh Anaconda 2.3.0 amd64 and the behaviour is the same.
See screenshot. For In[6] I expect index [0] to be NAN, not zero.

My package list, for reference:
_license 1.1 py27_0
alabaster 0.7.3 py27_0
anaconda 2.3.0 np19py27_0
argcomplete 0.8.9 py27_0
astropy 1.0.3 np19py27_0
babel 1.3 py27_0
backports.ssl-match-hostname 3.4.0.2 <pip>
bcolz 0.9.0 np19py27_0
bdateutil 0.1 <pip>
beautiful-soup 4.3.2 py27_1
beautifulsoup4 4.3.2 <pip>
binstar 0.11.0 py27_0
bitarray 0.8.1 py27_1
blaze 0.8.0 <pip>
blaze-core 0.8.0 np19py27_0
blpapi 3.5.3 <pip>
blz 0.6.2 np19py27_1
bokeh 0.9.0 np19py27_0
boto 2.38.0 py27_0
bottleneck 1.0.0 np19py27_0
cdecimal 2.3 py27_1
certifi 14.05.14 py27_0
cffi 1.1.0 py27_0
clyent 0.3.4 py27_0
colorama 0.3.3 py27_0
conda 3.15.1 py27_0
conda-build 1.14.1 py27_0
conda-env 2.3.0 py27_0
configobj 5.0.6 py27_0
cryptography 0.9.1 py27_0
cvxopt 1.1.7 <pip>
cython 0.22.1 py27_0
cytoolz 0.7.3 py27_0
datashape 0.4.5 np19py27_0
dateutil 2.4.1 py27_0
decorator 3.4.2 py27_0
docutils 0.12 py27_1
dynd-python 0.6.5 np19py27_0
enum34 1.0.4 py27_0
fastcache 1.0.2 py27_0
flask 0.10.1 py27_1
funcsigs 0.4 py27_0
gevent 1.0.1 py27_0
gevent-websocket 0.9.3 py27_0
greenlet 0.4.7 py27_0
grin 1.2.1 py27_2
h5py 2.5.0 np19py27_1
hdf5 1.8.15.1 2
holidays 0.3.1 <pip>
idna 2.0 py27_0
ipaddress 1.0.7 py27_0
ipython 3.2.0 py27_0
ipython-notebook 3.2.0 py27_0
ipython-qtconsole 3.2.0 py27_0
itsdangerous 0.24 py27_0
jdcal 1.0 py27_0
jedi 0.8.1 py27_0
jinja2 2.7.3 py27_2
jsonschema 2.4.0 py27_0
launcher 1.0.0 1
llvmlite 0.5.0 py27_0
lxml 3.4.4 py27_0
lz4 0.7.0 <pip>
markupsafe 0.23 py27_0
matplotlib 1.4.3 np19py27_1
menuinst 1.0.4 py27_0
mistune 0.5.1 py27_1
mock 1.0.1 py27_0
multipledispatch 0.4.7 py27_0
networkx 1.9.1 py27_0
nltk 3.0.3 np19py27_0
node-webkit 0.10.1 0
nose 1.3.7 py27_0
numba 0.19.1 np19py27_0
numexpr 2.4.3 np19py27_0
numpy 1.9.2 py27_0
odo 0.3.2 np19py27_0
openpyxl 1.8.5 py27_0
pandas 0.14.1 np19py27_0
patsy 0.3.0 np19py27_0
pep8 1.6.2 py27_0
pillow 2.8.2 py27_0
pip 7.1.0 py27_0
ply 3.6 py27_0
psutil 2.2.1 py27_0
py 1.4.27 py27_0
pyasn1 0.1.7 py27_0
pycosat 0.6.1 py27_0
pycparser 2.14 py27_0
pycrypto 2.6.1 py27_3
pyflakes 0.9.2 py27_0
pygments 2.0.2 py27_0
pymongo 2.8 py27_0
pyodbc 3.0.7 py27_0
pyopenssl 0.15.1 py27_1
pyparsing 2.0.3 py27_0
pyqt 4.10.4 py27_1
pyreadline 2.0 py27_0
pytables 3.2.0 np19py27_0
pytest 2.7.1 py27_0
python 2.7.10 0
python-dateutil 2.4.2 py27_0
pytz 2015.4 py27_0
pywin32 219 py27_0
pyyaml 3.11 py27_1
pyzmq 14.7.0 py27_0
requests 2.7.0 py27_0
rope 0.9.4 py27_1
runipy 0.1.3 py27_0
scikit-image 0.11.3 np19py27_0
scikit-learn 0.16.1 np19py27_0
scipy 0.16.0 np19py27_0
setuptools 18.0.1 py27_0
six 1.9.0 py27_0
snowballstemmer 1.2.0 py27_0
sockjs-tornado 1.0.1 py27_0
sphinx 1.3.1 py27_0
sphinx-rtd-theme 0.1.7 <pip>
sphinx_rtd_theme 0.1.7 py27_0
spyder 2.3.5.2 py27_0
spyder-app 2.3.5.2 py27_0
sqlalchemy 1.0.5 py27_0
ssl_match_hostname 3.4.0.2 py27_0
statsmodels 0.6.1 np19py27_0
sympy 0.7.6 py27_0
tables 3.2.0 <pip>
toolz 0.7.2 py27_0
tornado 4.2 py27_0
ujson 1.33 py27_0
unicodecsv 0.9.4 py27_0
werkzeug 0.10.4 py27_0
xlrd 0.9.3 py27_0
xlsxwriter 0.7.3 py27_0
xlwings 0.3.5 py27_0
xlwt 1.0.0 py27_0
zlib 1.2.8 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/10785/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10785/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10786 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10786/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10786/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10786/events | https://github.com/pandas-dev/pandas/issues/10786 | 100,077,919 | MDU6SXNzdWUxMDAwNzc5MTk= | 10,786 | Int64Index does not support modulo operator under pandas 0.15 | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": 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 | 2015-08-10T14:19:14Z | 2015-08-10T14:30:57Z | 2015-08-10T14:30:33Z | CONTRIBUTOR | null | In pandas 0.15, a DataFrame's index no longer supports the modulo operator. I believe the following code used to work under pandas 0.14, but under pandas 0.15, a TypeError indicating "unsupported operand types" is raised:
```
In [1]: import pandas
In [2]: print pandas.version.version
0.15.2
In [3]: df = pandas.DataFrame({ 'i': xrange(10) })
In [4]: df.index
Out[4]: Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64')
In [5]: r = df.index % 2
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-405b698d3a56> in <module>()
----> 1 r = df.index % 2
TypeError: unsupported operand type(s) for %: 'Int64Index' and 'int'
In [6]: r = df.index.to_series() % 2
In [7]:
```
Line 6 shows that a workaround exists, using the to_series() function.
This issue is very similar to [Issue #8608](https://github.com/pydata/pandas/issues/8608), which dealt with other arithemtic operations on an index. Pandas commit [2fcbc7f](https://github.com/pydata/pandas/pull/8634/commits) fixed that issue by adding addition, subtraction, multiplication, division, and unary operators, but not the modulo operator.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10786/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10786/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10787 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10787/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10787/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10787/events | https://github.com/pandas-dev/pandas/issues/10787 | 100,097,484 | MDU6SXNzdWUxMDAwOTc0ODQ= | 10,787 | Pandas runs so slow when get option data | {
"avatar_url": "https://avatars.githubusercontent.com/u/13733596?v=4",
"events_url": "https://api.github.com/users/zhimakaimenxa/events{/privacy}",
"followers_url": "https://api.github.com/users/zhimakaimenxa/followers",
"following_url": "https://api.github.com/users/zhimakaimenxa/following{/other_user}",
"gists_url": "https://api.github.com/users/zhimakaimenxa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zhimakaimenxa",
"id": 13733596,
"login": "zhimakaimenxa",
"node_id": "MDQ6VXNlcjEzNzMzNTk2",
"organizations_url": "https://api.github.com/users/zhimakaimenxa/orgs",
"received_events_url": "https://api.github.com/users/zhimakaimenxa/received_events",
"repos_url": "https://api.github.com/users/zhimakaimenxa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zhimakaimenxa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhimakaimenxa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zhimakaimenxa"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 2 | 2015-08-10T15:42:30Z | 2015-08-11T11:39:16Z | 2015-08-11T10:36:50Z | NONE | null | I'm using windows server 2003, and python2.7 with pandas 0.16.2. It takes my computer 4-5 minutes to execute the following program:
---
from pandas.io.data import Options
aapl = Options('uso', 'yahoo')
data = aapl.get_all_data()
print data.iloc[0:5, 0:5]
---
Is it ok or not?
If anyone wants to know more details, please let me know.
Thanks
L
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10787/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10787/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10788 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10788/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10788/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10788/events | https://github.com/pandas-dev/pandas/issues/10788 | 100,107,817 | MDU6SXNzdWUxMDAxMDc4MTc= | 10,788 | TST/API: Simplify testing functions API | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-08-10T16:25:49Z | 2020-05-22T03:09:52Z | null | MEMBER | null | Derived from #10507. Consider better API for testing functions.
### 1. How to specify comparison tolerance
Current assert functions have `check_less_precise` and `check_exact` flags to specify how to compare values:
- `check_exact=True`: Use `assert_equal`, comparison using `==`.
- `check_exact=False` and `check_less_precise=False`: Use `assert_almost_equal`, comparing 5 digits after decimal points (default)
- `check_exact=False` and `check_less_precise=True`: Use `assert_almost_equal`, comparing 3 digits after decimal points
There can be single kw to specify above behaviors?
### 2. Make integrated assert function
I think it's nice to have test functions which supports all `pandas` objects for users who is starting contribution / using pandas as their dependencies. Changing `assertEquals` and `assertAlmostEquals` to internally use current `assert_index/series/frame_equal` is one idea.
### 3. Remove `assert_almost_equal`
Remove `assert_almost_equal` and use class-based validation method. Also add input type validation to `numpy_assert_array_equal`.
xref #9895.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10788/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10788/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10789 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10789/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10789/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10789/events | https://github.com/pandas-dev/pandas/issues/10789 | 100,112,679 | MDU6SXNzdWUxMDAxMTI2Nzk= | 10,789 | ENH: Allow exponential weighing functions to specify alpha, in addition to span / com / halflife | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2015-08-10T16:43:54Z | 2016-03-06T14:57:59Z | 2016-03-06T14:57:59Z | CONTRIBUTOR | null | Currently the exponential functions take one of three arguments to specify the length of backhistory. Each of these numerically converts to alpha. Outlined here: http://pandas.pydata.org/pandas-docs/stable/computation.html#exponentially-weighted-moment-functions
Is there a reason we don't allow users to just pass in `alpha`? This is how I think about weighing some of the time.
I'm happy to do a PR in time; this issue is to solicit feedback.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10789/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10789/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10790 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10790/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10790/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10790/events | https://github.com/pandas-dev/pandas/issues/10790 | 100,188,782 | MDU6SXNzdWUxMDAxODg3ODI= | 10,790 | Clarification: Index.to_native_types() always converts to strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/920492?v=4",
"events_url": "https://api.github.com/users/jiffyclub/events{/privacy}",
"followers_url": "https://api.github.com/users/jiffyclub/followers",
"following_url": "https://api.github.com/users/jiffyclub/following{/other_user}",
"gists_url": "https://api.github.com/users/jiffyclub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jiffyclub",
"id": 920492,
"login": "jiffyclub",
"node_id": "MDQ6VXNlcjkyMDQ5Mg==",
"organizations_url": "https://api.github.com/users/jiffyclub/orgs",
"received_events_url": "https://api.github.com/users/jiffyclub/received_events",
"repos_url": "https://api.github.com/users/jiffyclub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jiffyclub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jiffyclub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jiffyclub"
} | [
{
"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 | []
| null | 6 | 2015-08-10T23:09:16Z | 2015-08-11T15:53:42Z | 2015-08-11T10:36:31Z | NONE | null | This may have been intended, but this change (https://github.com/pydata/pandas/commit/3d54482bbd8086c27a01d489a0ae751e0b9c3731) released in 0.16.2 broke some of my code because `Index.to_native_types()` started converting all index types to strings, even integers. By reading the source I found I can prevent that by passing `quoting=True` to `to_native_types`, but since there's no documentation for `to_native_types` I wanted to get a little clarification: What is the expected behavior of `to_native_types` and what does the `quoting` keyword mean? 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/10790/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10790/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10791 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10791/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10791/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10791/events | https://github.com/pandas-dev/pandas/pull/10791 | 100,190,894 | MDExOlB1bGxSZXF1ZXN0NDIwNzgwMDA= | 10,791 | BUG: Index.take may add unnecessary freq attribute | {
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 4 | 2015-08-10T23:30:11Z | 2015-08-12T13:51:53Z | 2015-08-12T13:51:50Z | MEMBER | null | `Index.freq` should raise `AttributeError` in non-datetime-like index. But `Index.take` adds `freq=None` and broke the behavior.
```
import pandas as pd
idx = pd.Index([1, 2, 3])
idx.freq
# AttributeError: 'Int64Index' object has no attribute 'freq'
idx.take([True, False, True]).freq
# 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/10791/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10791/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10791.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10791",
"merged_at": "2015-08-12T13:51:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10791.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10791"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10792 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10792/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10792/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10792/events | https://github.com/pandas-dev/pandas/issues/10792 | 100,192,486 | MDU6SXNzdWUxMDAxOTI0ODY= | 10,792 | API: nlargest/nsmallest, take_last -> keep | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 2 | 2015-08-10T23:45:43Z | 2015-08-29T00:03:43Z | 2015-08-29T00:03:43Z | CONTRIBUTOR | null | `nlargest/nsmallest` on frame should have `take_last` -> `keep`, in-line with #10236
[here](https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#3187)
no deprecation is necessary as this is new in 0.17.0
cc @sinhrks
cc @cpcloud
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10792/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10792/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10793 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10793/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10793/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10793/events | https://github.com/pandas-dev/pandas/issues/10793 | 100,222,348 | MDU6SXNzdWUxMDAyMjIzNDg= | 10,793 | BUG: read_csv on windows loads "zero width no-break-space" unicode character | {
"avatar_url": "https://avatars.githubusercontent.com/u/1865885?v=4",
"events_url": "https://api.github.com/users/hlin117/events{/privacy}",
"followers_url": "https://api.github.com/users/hlin117/followers",
"following_url": "https://api.github.com/users/hlin117/following{/other_user}",
"gists_url": "https://api.github.com/users/hlin117/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hlin117",
"id": 1865885,
"login": "hlin117",
"node_id": "MDQ6VXNlcjE4NjU4ODU=",
"organizations_url": "https://api.github.com/users/hlin117/orgs",
"received_events_url": "https://api.github.com/users/hlin117/received_events",
"repos_url": "https://api.github.com/users/hlin117/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hlin117/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hlin117/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hlin117"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
}
]
| closed | false | null | []
| null | 6 | 2015-08-11T04:22:08Z | 2015-08-11T10:36:09Z | 2015-08-11T10:36:09Z | NONE | null | I'm working on a windows computer, with python pandas 0.16.2 installed. This is what happens when I tried loading in my csv file.

According to <a href="http://www.utf8-chartable.de/unicode-utf8-table.pl?start=65024&utf8=string-literal">this page</a>, the unicode character that pandas is loading in (`\xef\xbb\xbf`) is the "zero width no-break-space" character. The first entry of the csv doesn't need to be "mouse" for this bug to occur.
Can someone try to replicate this bug on another windows computer?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10793/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10793/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10794 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10794/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10794/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10794/events | https://github.com/pandas-dev/pandas/pull/10794 | 100,266,125 | MDExOlB1bGxSZXF1ZXN0NDIxMDc3MTg= | 10,794 | DOC: add guideline to use versionadded directive to contributing docs (GH10215) | {
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-08-11T09:13:41Z | 2015-08-12T11:37:32Z | 2015-08-12T11:37:32Z | MEMBER | null | Closes #10215
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10794/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10794/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10794",
"merged_at": "2015-08-12T11:37:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10794"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10795 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10795/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10795/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10795/events | https://github.com/pandas-dev/pandas/pull/10795 | 100,267,462 | MDExOlB1bGxSZXF1ZXN0NDIxMDg0MTg= | 10,795 | TST: Suppress warnings of drop_duplicates tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 6 | 2015-08-11T09:21:38Z | 2015-08-12T13:51:24Z | 2015-08-12T09:55:47Z | MEMBER | null | Follow-up of #10236. Suppress unnecessary warnings during the test.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10795/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10795/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10795.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10795",
"merged_at": "2015-08-12T09:55:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/10795.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10795"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10796 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10796/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10796/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10796/events | https://github.com/pandas-dev/pandas/issues/10796 | 100,357,890 | MDU6SXNzdWUxMDAzNTc4OTA= | 10,796 | Incorrect groupby displayed in IPython Notebook with 64-bit floats and multi-index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1253373?v=4",
"events_url": "https://api.github.com/users/brianckeegan/events{/privacy}",
"followers_url": "https://api.github.com/users/brianckeegan/followers",
"following_url": "https://api.github.com/users/brianckeegan/following{/other_user}",
"gists_url": "https://api.github.com/users/brianckeegan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brianckeegan",
"id": 1253373,
"login": "brianckeegan",
"node_id": "MDQ6VXNlcjEyNTMzNzM=",
"organizations_url": "https://api.github.com/users/brianckeegan/orgs",
"received_events_url": "https://api.github.com/users/brianckeegan/received_events",
"repos_url": "https://api.github.com/users/brianckeegan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brianckeegan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brianckeegan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brianckeegan"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
]
| 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 | 2015-08-11T16:55:37Z | 2016-04-04T21:33:52Z | null | NONE | null | I ran into this bug when attempting some groupby-aggregates on data that had 64-bit floats.
```
_ids = np.array(range(201500000100,201500000110)*3).astype(float)
_df = pd.DataFrame({'id':_ids,
'value_1':np.random.randint(0,10,30),
'value_2':list('ABC')*10})
```
A simple groupby-aggregation produces the correct results, namely returning a DataFrame with an index of 10 rows.
```
_gb1 = _df.groupby('id').agg({'value_1':np.sum})
```
| value_1 | id |
| --- | --- |
| 2.015000e+11 | 14 |
| 2.015000e+11 | 4 |
| 2.015000e+11 | 8 |
| 2.015000e+11 | 25 |
| 2.015000e+11 | 12 |
| 2.015000e+11 | 16 |
| 2.015000e+11 | 15 |
| 2.015000e+11 | 21 |
| 2.015000e+11 | 8 |
| 2.015000e+11 | 7 |
However, grouping by the second value to return a multi-index returns an unexpected DataFrame.
```
_df.groupby(['id','value_2']).agg({'value_1':np.sum})
```
| id | value_2 | value_1 |
| --- | --- | --- |
| 2.015000e+11 | A | 2 |
| | B | 5 |
| | C | 3 |
| | A | 3 |
| | B | 0 |
| | C | 0 |
| | A | 4 |
| | B | 1 |
| | C | 3 |
| | A | 8 |
| | B | 7 |
| | C | 0 |
| | A | 3 |
| | B | 0 |
| | C | 2 |
| | A | 0 |
| | B | 4 |
| | C | 5 |
| | A | 4 |
| | B | 9 |
| | C | 0 |
| | A | 6 |
| | B | 6 |
| | C | 6 |
| | A | 8 |
| | B | 3 |
| | C | 4 |
| | A | 5 |
| | B | 7 |
| | C | 3 |
Casting the `id` variable to unicode appears to correct the problem and return an aggregated DF with the correct dimensions and multi-indexing.
```
_df['id_str'] = _df['id'].astype(unicode).str.slice(0,-2)
_df.groupby(['id_str','value_2']).agg({'value_1':np.sum})
```
---
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.9.2
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
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.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
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/10796/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10796/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10797 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10797/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10797/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10797/events | https://github.com/pandas-dev/pandas/issues/10797 | 100,379,543 | MDU6SXNzdWUxMDAzNzk1NDM= | 10,797 | Accept index in addition to list for set_index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1712022?v=4",
"events_url": "https://api.github.com/users/michaelbilow/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelbilow/followers",
"following_url": "https://api.github.com/users/michaelbilow/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelbilow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelbilow",
"id": 1712022,
"login": "michaelbilow",
"node_id": "MDQ6VXNlcjE3MTIwMjI=",
"organizations_url": "https://api.github.com/users/michaelbilow/orgs",
"received_events_url": "https://api.github.com/users/michaelbilow/received_events",
"repos_url": "https://api.github.com/users/michaelbilow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelbilow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelbilow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelbilow"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| 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 | 2015-08-11T18:46:23Z | 2021-04-18T23:20:29Z | null | NONE | null | Running this code generates an error, since columns are now considered an Index and not a list. I'm not sure if the error that gets raised (set_index ends up asking for an index that is the entire length of the data frame) is actually by design. In this case, it was a bit unintuitive to figure out how to catch, since Index objects and python lists often work so similarly.
```
import string
import pandas as pd
data1 = 'x'*5 + 'y'*5
data2 = string.lowercase[:5]*2
data3 = range(10)
data_dict = {'Cat': list(data1), 'SubCat': list(data2), 'Vals':data3}
df = pd.DataFrame(data_dict)
ordered_df = df[['Cat', 'SubCat', 'Vals']]
correct_df = ordered_df.reset_index([x for x in ordered_df.columns[:2]])
error_df = ordered_df.set_index(ordered_df.columns[:2])
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10797/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10797/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10798 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10798/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10798/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10798/events | https://github.com/pandas-dev/pandas/issues/10798 | 100,395,485 | MDU6SXNzdWUxMDAzOTU0ODU= | 10,798 | ENH: Support datetime.date in Period Index | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"color": "bfd4f2",
"default": false,
"description": "stdlib datetime.date support",
"id": 3059772828,
"name": "datetime.date",
"node_id": "MDU6TGFiZWwzMDU5NzcyODI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/datetime.date"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-08-11T19:56:02Z | 2021-06-05T18:59:49Z | null | CONTRIBUTOR | null | `PeriodIndex`s should resolve when `datetime.date` is passed into `in`, but doesn't. Example below.
Tracing this through, it looks like `parse_time_string` is expected to return a tuple in `get_loc` (which is called by `__contains__`): https://github.com/pydata/pandas/blob/master/pandas/tseries/period.py#L610
But if passed something that isn't a string, just returns it back as a single item: https://github.com/pydata/pandas/blob/master/pandas/tseries/tools.py#L447
...so in this instance the lookup raises an exception and mistakenly propagates up that the value can't be found.
What's the best way forward here? Should the return type always be the same? Or do we add a check in `get_loc` to stop it calling `parse_time_string`? Or broaden the `except` here to be any exception: https://github.com/pydata/pandas/blob/master/pandas/tseries/period.py#L612
My inclination is the first, but whether that will have some blast radius / what the standards are? The third seems like a reasonable cut through too.
``` python
In [9]:
period_index
Out[9]:
PeriodIndex(['2015-01-01', '2015-01-02', '2015-01-05', '2015-01-06',
'2015-01-07', '2015-01-08', '2015-01-09', '2015-01-12',
'2015-01-13', '2015-01-14', '2015-01-15', '2015-01-16',
'2015-01-19', '2015-01-20', '2015-01-21', '2015-01-22',
'2015-01-23', '2015-01-26', '2015-01-27', '2015-01-28',
'2015-01-29', '2015-01-30'],
dtype='int64', freq='B')
In [10]:
'2015-01-06' in period_index
Out[10]:
True
In [15]:
dt = datetime.datetime(2015,1,6)
dt
Out[15]:
datetime.datetime(2015, 1, 6, 0, 0)
In [16]:
dt in period_index
Out[16]:
False
In [17]:
d = datetime.date(2015,1,6)
d
Out[17]:
datetime.date(2015, 1, 6)
In [18]:
d in period_index
Out[18]:
False
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10798/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10798/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10799 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10799/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10799/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10799/events | https://github.com/pandas-dev/pandas/pull/10799 | 100,398,171 | MDExOlB1bGxSZXF1ZXN0NDIxNzIxNjg= | 10,799 | Allows set_index() to take an Index as an argument (#10797) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1712022?v=4",
"events_url": "https://api.github.com/users/michaelbilow/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelbilow/followers",
"following_url": "https://api.github.com/users/michaelbilow/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelbilow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelbilow",
"id": 1712022,
"login": "michaelbilow",
"node_id": "MDQ6VXNlcjE3MTIwMjI=",
"organizations_url": "https://api.github.com/users/michaelbilow/orgs",
"received_events_url": "https://api.github.com/users/michaelbilow/received_events",
"repos_url": "https://api.github.com/users/michaelbilow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelbilow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelbilow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelbilow"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| null | 3 | 2015-08-11T20:12:01Z | 2015-11-10T01:27:28Z | 2015-11-10T01:27:28Z | NONE | null | Simple change, closes #10797
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10799/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10799/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10799.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10799",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10799.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10799"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10800 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10800/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10800/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10800/events | https://github.com/pandas-dev/pandas/pull/10800 | 100,398,640 | MDExOlB1bGxSZXF1ZXN0NDIxNzI0NTY= | 10,800 | BUG: pd.Series.interpolate(method='spline') Errort Msg, #10633 | {
"avatar_url": "https://avatars.githubusercontent.com/u/983944?v=4",
"events_url": "https://api.github.com/users/springcoil/events{/privacy}",
"followers_url": "https://api.github.com/users/springcoil/followers",
"following_url": "https://api.github.com/users/springcoil/following{/other_user}",
"gists_url": "https://api.github.com/users/springcoil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/springcoil",
"id": 983944,
"login": "springcoil",
"node_id": "MDQ6VXNlcjk4Mzk0NA==",
"organizations_url": "https://api.github.com/users/springcoil/orgs",
"received_events_url": "https://api.github.com/users/springcoil/received_events",
"repos_url": "https://api.github.com/users/springcoil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/springcoil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/springcoil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/springcoil"
} | [
{
"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": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 18 | 2015-08-11T20:14:58Z | 2015-08-21T20:20:10Z | 2015-08-21T19:56:29Z | CONTRIBUTOR | null | Closes #10633
This a first attempt at the error messages mentioned. Not ready to merge yet but I wanted to start the conversation...
I think I might have the error message wrong - anyone got 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/10800/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10800/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10800.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10800",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10800.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10800"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10801 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10801/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10801/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10801/events | https://github.com/pandas-dev/pandas/pull/10801 | 100,428,782 | MDExOlB1bGxSZXF1ZXN0NDIxODc2MjY= | 10,801 | PeriodIndex test keys that aren't strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 17 | 2015-08-11T22:50:49Z | 2015-11-22T09:02:08Z | 2015-08-26T01:23:14Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/10798
Not sure if the testing is done in a good way - I just copy & pasted code to test `PeriodIndex` & `DatetimeIndex` (it wouldn't work for `LikeDatetimeIndex` because of `TimeDeltaIndex`) - very open to feedback on better ways to do this.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10801/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10801/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/10801.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/10801",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/10801.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10801"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10802 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10802/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10802/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10802/events | https://github.com/pandas-dev/pandas/issues/10802 | 100,438,790 | MDU6SXNzdWUxMDA0Mzg3OTA= | 10,802 | Should empty strings be null for notnull() and isnull()? | {
"avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4",
"events_url": "https://api.github.com/users/nickeubank/events{/privacy}",
"followers_url": "https://api.github.com/users/nickeubank/followers",
"following_url": "https://api.github.com/users/nickeubank/following{/other_user}",
"gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nickeubank",
"id": 9683693,
"login": "nickeubank",
"node_id": "MDQ6VXNlcjk2ODM2OTM=",
"organizations_url": "https://api.github.com/users/nickeubank/orgs",
"received_events_url": "https://api.github.com/users/nickeubank/received_events",
"repos_url": "https://api.github.com/users/nickeubank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nickeubank"
} | [
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| null | 6 | 2015-08-12T00:10:03Z | 2020-05-03T20:09:24Z | 2020-05-03T20:09:24Z | CONTRIBUTOR | null | Is there a reason that `notnull()` and `isnull()` consider an empty string to not be a missing value?
```
pd.isnull('')
False
```
Seems like in string data, people usually think of the empty string as "missing".
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10802/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10802/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.