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/9202 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9202/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9202/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9202/events | https://github.com/pandas-dev/pandas/issues/9202 | 53,543,111 | MDU6SXNzdWU1MzU0MzExMQ== | 9,202 | Pandas Dataframe apply() method row object vanishes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1499555?v=4",
"events_url": "https://api.github.com/users/colinfang/events{/privacy}",
"followers_url": "https://api.github.com/users/colinfang/followers",
"following_url": "https://api.github.com/users/colinfang/following{/other_user}",
"gists_url": "https://api.github.com/users/colinfang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinfang",
"id": 1499555,
"login": "colinfang",
"node_id": "MDQ6VXNlcjE0OTk1NTU=",
"organizations_url": "https://api.github.com/users/colinfang/orgs",
"received_events_url": "https://api.github.com/users/colinfang/received_events",
"repos_url": "https://api.github.com/users/colinfang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinfang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinfang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinfang"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 4 | 2015-01-06T17:59:51Z | 2015-01-07T10:49:12Z | 2015-01-07T10:49:12Z | NONE | null | See the following code. Does it mean I have to go via route `.iterrows`?
``` python
df = pd.DataFrame({'x': range(5)})
df['y'] = df['x'].astype(str)
b = df.apply(lambda row: [row], axis=1)
0 [[nan, nan]]
1 [[nan, nan]]
2 [[nan, nan]]
3 [[nan, nan]]
4 [[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/9202/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9202/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9203 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9203/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9203/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9203/events | https://github.com/pandas-dev/pandas/pull/9203 | 53,555,192 | MDExOlB1bGxSZXF1ZXN0MjY5MTMwOTE= | 9,203 | DOC: Edited doc string of pandas/core/frame.duplicated(). Redefined take... | {
"avatar_url": "https://avatars.githubusercontent.com/u/2637612?v=4",
"events_url": "https://api.github.com/users/robertdavidwest/events{/privacy}",
"followers_url": "https://api.github.com/users/robertdavidwest/followers",
"following_url": "https://api.github.com/users/robertdavidwest/following{/other_user}",
"gists_url": "https://api.github.com/users/robertdavidwest/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/robertdavidwest",
"id": 2637612,
"login": "robertdavidwest",
"node_id": "MDQ6VXNlcjI2Mzc2MTI=",
"organizations_url": "https://api.github.com/users/robertdavidwest/orgs",
"received_events_url": "https://api.github.com/users/robertdavidwest/received_events",
"repos_url": "https://api.github.com/users/robertdavidwest/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/robertdavidwest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/robertdavidwest/subscriptions",
"type": "User",
"url": "https://api.github.com/users/robertdavidwest"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 2 | 2015-01-06T19:52:04Z | 2015-01-07T16:25:03Z | 2015-01-07T16:25:03Z | CONTRIBUTOR | null | ..._last variable in doc string. Original definition only made sense for drop_duplicates().
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9203/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9203/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9203.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9203",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9203.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9203"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9204 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9204/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9204/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9204/events | https://github.com/pandas-dev/pandas/issues/9204 | 53,568,148 | MDU6SXNzdWU1MzU2ODE0OA== | 9,204 | BUG: wide_to_long modifies stubnames | {
"avatar_url": "https://avatars.githubusercontent.com/u/3222444?v=4",
"events_url": "https://api.github.com/users/jtorcasso/events{/privacy}",
"followers_url": "https://api.github.com/users/jtorcasso/followers",
"following_url": "https://api.github.com/users/jtorcasso/following{/other_user}",
"gists_url": "https://api.github.com/users/jtorcasso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtorcasso",
"id": 3222444,
"login": "jtorcasso",
"node_id": "MDQ6VXNlcjMyMjI0NDQ=",
"organizations_url": "https://api.github.com/users/jtorcasso/orgs",
"received_events_url": "https://api.github.com/users/jtorcasso/received_events",
"repos_url": "https://api.github.com/users/jtorcasso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtorcasso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtorcasso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtorcasso"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-06T21:51:56Z | 2015-01-18T20:59:16Z | 2015-01-18T20:59:16Z | CONTRIBUTOR | null | This is not a serious issue, but the list of stubnames passed into `wide_to_long` is modified by the function call.
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-43-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.1
nose: 1.3.1
Cython: None
numpy: 1.9.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 1.2.1
sphinx: 1.2.2
patsy: 0.2.1
dateutil: 2.3
pytz: 2014.10
bottleneck: None
tables: None
numexpr: 2.2.2
matplotlib: 1.3.1
openpyxl: 1.7.0
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.3.3
bs4: 4.2.1
html5lib: 0.999
httplib2: 0.8
apiclient: None
rpy2: 2.5.2
sqlalchemy: None
pymysql: None
psycopg2: None
``` python
>>> import pandas as pd
>>> df = pd.DataFrame([[0,1,2,3,8],[4,5,6,7,9]])
>>> df.columns = ['id', 'inc1', 'inc2', 'edu1', 'edu2']
>>> df
id inc1 inc2 edu1 edu2
0 0 1 2 3 8
1 4 5 6 7 9
>>> stubs = ['inc', 'edu']
>>> df_long = pd.wide_to_long(df, stubs, i='id', j='age')
>>> df_long
inc edu
id age
0 1 1 3
4 1 5 7
0 2 2 8
4 2 6 9
>>> stubs
['edu']
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9204/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9204/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9205 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9205/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9205/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9205/events | https://github.com/pandas-dev/pandas/issues/9205 | 53,574,184 | MDU6SXNzdWU1MzU3NDE4NA== | 9,205 | pandas error kills IPython kernel | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 20 | 2015-01-06T22:52:45Z | 2015-02-05T11:35:06Z | 2015-02-05T11:35:06Z | CONTRIBUTOR | null | Doing this simple thing can kill an IPython 2 notebook kernel (version:GH master):
``` python
url = 'http://nssdc.gsfc.nasa.gov/planetary/factsheet/index.html'
pd.read_table(url)
```
Note that I know this will fail, I just don't expect it to kill a notebook kernel?
Version:
pandas: 128ce857f1cd
IPython: 13facaf0206240a7301e045666143d68305d0119
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9205/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9205/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9206 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9206/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9206/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9206/events | https://github.com/pandas-dev/pandas/pull/9206 | 53,649,428 | MDExOlB1bGxSZXF1ZXN0MjY5Njc1OTM= | 9,206 | 9203 SQUASHED - DOCS: doc string edited pandas/core/frame.duplicated() | {
"avatar_url": "https://avatars.githubusercontent.com/u/2637612?v=4",
"events_url": "https://api.github.com/users/robertdavidwest/events{/privacy}",
"followers_url": "https://api.github.com/users/robertdavidwest/followers",
"following_url": "https://api.github.com/users/robertdavidwest/following{/other_user}",
"gists_url": "https://api.github.com/users/robertdavidwest/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/robertdavidwest",
"id": 2637612,
"login": "robertdavidwest",
"node_id": "MDQ6VXNlcjI2Mzc2MTI=",
"organizations_url": "https://api.github.com/users/robertdavidwest/orgs",
"received_events_url": "https://api.github.com/users/robertdavidwest/received_events",
"repos_url": "https://api.github.com/users/robertdavidwest/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/robertdavidwest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/robertdavidwest/subscriptions",
"type": "User",
"url": "https://api.github.com/users/robertdavidwest"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-07T16:16:56Z | 2015-01-07T16:33:34Z | 2015-01-07T16:25:16Z | CONTRIBUTOR | null | Redefined `take_last` variable in doc string. Original definition only
made sense for drop_duplicates()
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9206/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9206/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9206.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9206",
"merged_at": "2015-01-07T16:25:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9206.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9206"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9207 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9207/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9207/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9207/events | https://github.com/pandas-dev/pandas/issues/9207 | 53,651,896 | MDU6SXNzdWU1MzY1MTg5Ng== | 9,207 | Shift Inplace in DF | {
"avatar_url": "https://avatars.githubusercontent.com/u/637415?v=4",
"events_url": "https://api.github.com/users/sirinath/events{/privacy}",
"followers_url": "https://api.github.com/users/sirinath/followers",
"following_url": "https://api.github.com/users/sirinath/following{/other_user}",
"gists_url": "https://api.github.com/users/sirinath/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sirinath",
"id": 637415,
"login": "sirinath",
"node_id": "MDQ6VXNlcjYzNzQxNQ==",
"organizations_url": "https://api.github.com/users/sirinath/orgs",
"received_events_url": "https://api.github.com/users/sirinath/received_events",
"repos_url": "https://api.github.com/users/sirinath/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sirinath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sirinath/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sirinath"
} | [
{
"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 | []
| null | 6 | 2015-01-07T16:36:26Z | 2018-02-22T19:58:37Z | 2015-01-09T02:39:02Z | NONE | null | Is it possible to add in place shifting
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9207/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9207/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9208 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9208/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9208/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9208/events | https://github.com/pandas-dev/pandas/issues/9208 | 53,684,841 | MDU6SXNzdWU1MzY4NDg0MQ== | 9,208 | read_excel drops columns when reading a one row file with a MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/6059365?v=4",
"events_url": "https://api.github.com/users/maxgrenderjones/events{/privacy}",
"followers_url": "https://api.github.com/users/maxgrenderjones/followers",
"following_url": "https://api.github.com/users/maxgrenderjones/following{/other_user}",
"gists_url": "https://api.github.com/users/maxgrenderjones/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maxgrenderjones",
"id": 6059365,
"login": "maxgrenderjones",
"node_id": "MDQ6VXNlcjYwNTkzNjU=",
"organizations_url": "https://api.github.com/users/maxgrenderjones/orgs",
"received_events_url": "https://api.github.com/users/maxgrenderjones/received_events",
"repos_url": "https://api.github.com/users/maxgrenderjones/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maxgrenderjones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maxgrenderjones/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maxgrenderjones"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| {
"closed_at": "2019-01-26T00:51:26Z",
"closed_issues": 2048,
"created_at": "2018-03-29T12:00:12Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2019-01-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/55",
"id": 3228419,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels",
"node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==",
"number": 55,
"open_issues": 0,
"state": "closed",
"title": "0.24.0",
"updated_at": "2019-01-29T07:42:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55"
} | 2 | 2015-01-07T21:32:12Z | 2018-11-14T19:14:49Z | 2018-11-13T17:32:52Z | CONTRIBUTOR | null | I'm seeing the weirdest error.
When I read an .xlsx excel file with only one row (example below)...

... and try to set the `index_col`, then pandas incorrectly reads the columns:
I.e. for a file with only one row, column headers A, B, C, D, E, F
``` python
pandas.read_excel(filename, 'Sheet1', index_col=['A', 'B', 'C'])
```
Yields

(I get an index with columns A, B, C, and a dataframe with columns B, D, F - what happened to E?)
Note that if I don't use `index_col`, I get a dataframe with columns A-F as expected. Likewise, if I add a row of actual data, the dataframe loads as expected.
Relevant versions:
`pandas version 0.15.1 running on 2.7.7 |Anaconda 2.0.1 (64-bit)| (default, Jun 11 2014, 10:40:02) [MSC v.1500 64 bit (AMD64)]`
`xlrd.__VERSION__`=0.9.3
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9208/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9208/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9209 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9209/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9209/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9209/events | https://github.com/pandas-dev/pandas/pull/9209 | 53,696,918 | MDExOlB1bGxSZXF1ZXN0MjY5OTcwMjE= | 9,209 | added mising numeric_only option for DataFrame.std/var/sem | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 10 | 2015-01-07T23:36:46Z | 2015-04-29T15:31:04Z | 2015-03-12T12:08:53Z | CONTRIBUTOR | null | closes https://github.com/pydata/pandas/issues/9201, the `numeric_only` option is missing for `DataFrame.std()` (and also `DataFrame.var()` and `DataFrame.sem()`), this is a fix for it
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9209/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9209/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9209.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9209",
"merged_at": "2015-03-12T12:08:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9209.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9209"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9210 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9210/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9210/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9210/events | https://github.com/pandas-dev/pandas/pull/9210 | 53,704,864 | MDExOlB1bGxSZXF1ZXN0MjcwMDE5NTk= | 9,210 | BUG: bug in left join on multi-index with sort=True or nulls | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4",
"events_url": "https://api.github.com/users/behzadnouri/events{/privacy}",
"followers_url": "https://api.github.com/users/behzadnouri/followers",
"following_url": "https://api.github.com/users/behzadnouri/following{/other_user}",
"gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/behzadnouri",
"id": 1288998,
"login": "behzadnouri",
"node_id": "MDQ6VXNlcjEyODg5OTg=",
"organizations_url": "https://api.github.com/users/behzadnouri/orgs",
"received_events_url": "https://api.github.com/users/behzadnouri/received_events",
"repos_url": "https://api.github.com/users/behzadnouri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/behzadnouri"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-08T01:36:53Z | 2015-01-10T20:17:03Z | 2015-01-10T18:07:10Z | CONTRIBUTOR | null | on master:
```
In [8]: left
Out[8]:
1st 2nd 3rd
0 c c 13
1 b b 79
2 a a 27
3 b b 27
4 c a 86
In [9]: right
Out[9]:
4th
1st 2nd
c a -86
b b -79
c c -13
b b -27
a a -27
```
`sort=True` is ignored, and the result is not sorted by the join key:
```
In [10]: left.join(right, on=['1st', '2nd'], how='left', sort=True)
Out[10]:
1st 2nd 3rd 4th
0 c c 13 -13
1 b b 79 -79
1 b b 79 -27
2 a a 27 -27
3 b b 27 -79
3 b b 27 -27
4 c a 86 -86
```
in addition:
```
In [44]: left
Out[44]:
1st 2nd 3rd
0 NaN a 14
1 a NaN 10
2 a b 19
3 NaN NaN 62
4 a c 90
In [45]: right
Out[45]:
4th
1st 2nd
NaN a -14
a c -90
NaN -10
b -19
NaN NaN -62
```
this works:
```
In [46]: merge(left, right.reset_index(), on=['1st', '2nd'], how='left')
Out[46]:
1st 2nd 3rd 4th
0 NaN a 14 -14
1 a NaN 10 -10
2 a b 19 -19
3 NaN NaN 62 -62
4 a c 90 -90
```
but this does not:
```
In [47]: left.join(right, on=['1st', '2nd'], how='left')
Out[47]:
1st 2nd 3rd 4th
0 NaN a 14 NaN
1 a NaN 10 NaN
2 a b 19 -19
3 NaN NaN 62 NaN
4 a c 90 -90
```
also, [`get_group_index`](https://github.com/pydata/pandas/blob/b62754d4de0b60fdbfd67e0d0216ad7cd51d3c5f/pandas/core/groupby.py#L3493) called in [these lines](https://github.com/pydata/pandas/blob/b62754d4de0b60fdbfd67e0d0216ad7cd51d3c5f/pandas/tools/merge.py#L536) is subject to overflow, and should be avoided.
`r 'join|merge'` benchmarks:
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
join_dataframe_index_multi | 35.4387 | 36.5883 | 0.9686 |
join_dataframe_index_single_key_bigger_sort | 24.7660 | 24.8604 | 0.9962 |
strings_join_split | 57.6473 | 57.6183 | 1.0005 |
join_dataframe_index_single_key_small | 16.6840 | 16.6461 | 1.0023 |
merge_2intkey_sort | 61.2427 | 60.5460 | 1.0115 |
join_non_unique_equal | 0.9513 | 0.9391 | 1.0130 |
left_outer_join_index | 2887.7623 | 2839.2557 | 1.0171 |
i8merge | 1534.6023 | 1506.8540 | 1.0184 |
join_dataframe_index_single_key_bigger | 25.3410 | 24.8287 | 1.0206 |
merge_2intkey_nosort | 21.6643 | 21.2137 | 1.0212 |
join_dataframe_integer_key | 3.0307 | 2.9414 | 1.0304 |
join_dataframe_integer_2key | 7.7363 | 7.4220 | 1.0423 |
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
Ratio < 1.0 means the target commit is faster then the baseline.
Seed used: 1234
Target [f02ef89] : bug in left join on multi-index with sort=True or nulls
Base [b62754d] : Merge pull request #9206 from robertdavidwest/9203_resubmitted_in_single_commit
9203 SQUASHED - DOCS: doc string edited pandas/core/frame.duplicated()
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9210/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9210/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9210.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9210",
"merged_at": "2015-01-10T18:07:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9210.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9210"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9211 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9211/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9211/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9211/events | https://github.com/pandas-dev/pandas/issues/9211 | 53,720,092 | MDU6SXNzdWU1MzcyMDA5Mg== | 9,211 | drop_duplicates() on a float64 type column containing NaN values will cause CPU 100% occupied forever | {
"avatar_url": "https://avatars.githubusercontent.com/u/9410182?v=4",
"events_url": "https://api.github.com/users/scratdata/events{/privacy}",
"followers_url": "https://api.github.com/users/scratdata/followers",
"following_url": "https://api.github.com/users/scratdata/following{/other_user}",
"gists_url": "https://api.github.com/users/scratdata/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scratdata",
"id": 9410182,
"login": "scratdata",
"node_id": "MDQ6VXNlcjk0MTAxODI=",
"organizations_url": "https://api.github.com/users/scratdata/orgs",
"received_events_url": "https://api.github.com/users/scratdata/received_events",
"repos_url": "https://api.github.com/users/scratdata/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scratdata/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scratdata/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scratdata"
} | [
{
"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": "fc6feb",
"default": false,
"description": "duplicated, drop_duplicates",
"id": 1633019538,
"name": "duplicated",
"node_id": "MDU6TGFiZWwxNjMzMDE5NTM4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/duplicated"
}
]
| open | false | null | []
| null | 5 | 2015-01-08T06:43:25Z | 2020-05-13T02:10:10Z | null | NONE | null | I'm using 0.15.0 version, and I find when I apply drop_duplicates() on "PostCode" column, it will occupy all the CPU forever, and I have to kill the process to stop it.
dataset = pd.read_csv(dataset_path, encoding = 'GB2312')
dataset['PostCode'].drop_duplicates()
"PostCode" column contains a list of integers but with some "NULL" string, I'm not sure if it's related to column dtype, which for "PostCode" is float64...but the interesting thing is there is another column "AreaCode" which is similar with "PostCode", containing a list of integers and some "NULL", and it works well with drop_duplicates()
Here is my test file download link:
https://drive.google.com/file/d/0B501Knu4O8vZT1RyampvU2RNTms/view?usp=sharing
Which contains more than 300k rows data
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9211/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9211/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9212 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9212/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9212/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9212/events | https://github.com/pandas-dev/pandas/issues/9212 | 53,730,230 | MDU6SXNzdWU1MzczMDIzMA== | 9,212 | sort_index behavior differs for the same DataFrame? | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 28 | 2015-01-08T09:28:20Z | 2016-07-20T20:22:00Z | 2016-06-12T16:50:05Z | NONE | null | I feel like I've encountered a bug. In the following scenario, the first `sort_index` call behaves as expected, but the second does not. Does someone know what the difference is here?
```
In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: '0.15.2'
In [3]: tuples = [(' foo', 'bar'), ('foo', 'bar'), (' foo ()', 'bar')]
In [4]: cols = pd.MultiIndex.from_tuples(tuples)
In [5]: df = pd.DataFrame(index=cols, data={'baz': [0, 1, 2]})
In [6]: df
Out[6]:
baz
foo bar 0
foo bar 1
foo () bar 2
In [7]: df.sort_index()
Out[7]:
baz
foo bar 0
foo () bar 2
foo bar 1
In [8]: tuples = [(' foo', 'bar'), ('foo', 'bar')]
In [9]: cols = pd.MultiIndex.from_tuples(tuples)
In [10]: df = pd.DataFrame(index=cols, data={'baz': [0, 1]})
In [11]: df
Out[11]:
baz
foo bar 0
foo bar 1
In [12]: df.ix[(' foo ()', 'bar'), 'baz'] = 2
In [13]: df
Out[13]:
baz
foo bar 0
foo bar 1
foo () bar 2
In [14]: df.sort_index()
Out[14]:
baz
foo bar 0
foo bar 1
foo () bar 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/9212/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9212/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9213 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9213/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9213/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9213/events | https://github.com/pandas-dev/pandas/issues/9213 | 53,744,252 | MDU6SXNzdWU1Mzc0NDI1Mg== | 9,213 | Indexing semantics vary according to runtime values | {
"avatar_url": "https://avatars.githubusercontent.com/u/52205?v=4",
"events_url": "https://api.github.com/users/dandavison/events{/privacy}",
"followers_url": "https://api.github.com/users/dandavison/followers",
"following_url": "https://api.github.com/users/dandavison/following{/other_user}",
"gists_url": "https://api.github.com/users/dandavison/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dandavison",
"id": 52205,
"login": "dandavison",
"node_id": "MDQ6VXNlcjUyMjA1",
"organizations_url": "https://api.github.com/users/dandavison/orgs",
"received_events_url": "https://api.github.com/users/dandavison/received_events",
"repos_url": "https://api.github.com/users/dandavison/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dandavison/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dandavison/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dandavison"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| open | false | null | []
| null | 10 | 2015-01-08T12:14:10Z | 2021-04-12T04:49:54Z | null | CONTRIBUTOR | null | Depending on the runtime value used in `[` indexing on a series, the semantics may be array-indexing, or slicing based on a MultiIndex. This is extremely error-prone behavior in a very basic operation.
Is the answer that production code should always use `.loc`/`.ix` instead of `[`? If so, I don't think the [docs](http://pandas.pydata.org/pandas-docs/stable/advanced.html#basic-indexing-on-axis-with-multiindex) make that clear.
``` python
>>> s = pandas.Series({(1, 1): 11, (1, 2): 12, (2, 1): 21, (2, 2): 22})
>>> s
1 1 11
2 12
2 1 21
2 22
dtype: int64
#0 isn't recognized as something to do with the index
# so treat it as an array index
>>> s[0]
11
# But this could be asking for a slice,
# so return a slice rather than an array-indexed element.
>>> s[1]
1 11
2 12
dtype: int64
>>> pandas.__version__
'0.15.2'
```
See also #3390
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9213/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9213/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9214 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9214/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9214/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9214/events | https://github.com/pandas-dev/pandas/issues/9214 | 53,813,014 | MDU6SXNzdWU1MzgxMzAxNA== | 9,214 | BUG/ENH: groupby head returns empty result for negative n | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": 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"
} | 9 | 2015-01-08T23:02:53Z | 2019-12-11T16:20:58Z | 2019-12-11T16:20:57Z | CONTRIBUTOR | null | More drive-by reports. I'll try to close some of these issues sometime...
``` python
In [8]: s = pd.Series(np.random.randn(10))
In [9]: s.groupby(s > 0).apply(lambda x: x.head(-1)) # works nicely
Out[9]:
False 0 -0.277400
1 -0.875231
3 -0.315087
4 -0.966649
6 -0.474389
7 -0.121225
True 2 0.237861
5 1.311601
dtype: float64
In [10]: s.groupby(s > 0).head(-1) # doesn't.
Out[10]: Series([], dtype: float64)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9214/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9214/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9215 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9215/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9215/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9215/events | https://github.com/pandas-dev/pandas/pull/9215 | 53,819,553 | MDExOlB1bGxSZXF1ZXN0MjcwNzE3OTY= | 9,215 | BUG FIX: wide_to_long modifies stubnames | {
"avatar_url": "https://avatars.githubusercontent.com/u/3222444?v=4",
"events_url": "https://api.github.com/users/jtorcasso/events{/privacy}",
"followers_url": "https://api.github.com/users/jtorcasso/followers",
"following_url": "https://api.github.com/users/jtorcasso/following{/other_user}",
"gists_url": "https://api.github.com/users/jtorcasso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtorcasso",
"id": 3222444,
"login": "jtorcasso",
"node_id": "MDQ6VXNlcjMyMjI0NDQ=",
"organizations_url": "https://api.github.com/users/jtorcasso/orgs",
"received_events_url": "https://api.github.com/users/jtorcasso/received_events",
"repos_url": "https://api.github.com/users/jtorcasso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtorcasso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtorcasso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtorcasso"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 6 | 2015-01-09T00:25:22Z | 2015-01-18T20:59:05Z | 2015-01-18T20:59:05Z | CONTRIBUTOR | null | Simple fix that prevents modification of the list `stubnames`, which is an argument to `wide_to_long`.
Closes #9204
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9215/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9215/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9215.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9215",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9215.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9215"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9216 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9216/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9216/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9216/events | https://github.com/pandas-dev/pandas/issues/9216 | 53,822,681 | MDU6SXNzdWU1MzgyMjY4MQ== | 9,216 | No way to construct mixed dtype DataFrame without total copy, proposed solution | {
"avatar_url": "https://avatars.githubusercontent.com/u/10457096?v=4",
"events_url": "https://api.github.com/users/quicknir/events{/privacy}",
"followers_url": "https://api.github.com/users/quicknir/followers",
"following_url": "https://api.github.com/users/quicknir/following{/other_user}",
"gists_url": "https://api.github.com/users/quicknir/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/quicknir",
"id": 10457096,
"login": "quicknir",
"node_id": "MDQ6VXNlcjEwNDU3MDk2",
"organizations_url": "https://api.github.com/users/quicknir/orgs",
"received_events_url": "https://api.github.com/users/quicknir/received_events",
"repos_url": "https://api.github.com/users/quicknir/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/quicknir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quicknir/subscriptions",
"type": "User",
"url": "https://api.github.com/users/quicknir"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
]
| open | false | null | []
| {
"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"
} | 59 | 2015-01-09T01:12:00Z | 2021-05-18T22:11:05Z | null | NONE | null | After hours of tearing my hair, I've come to the conclusion that it is impossible to create a mixed dtype DataFrame without copying all of its data in. That is, no matter what you do, if you want to create a mixed dtype DataFrame, you will inevitably create a temporary version of the data (e.g. using np.empty), and the various DataFrame will constructors will always make copies of this temporary. This issue has already been brought up, a year ago: https://github.com/pydata/pandas/issues/5902.
This is especially terrible for interoperability with other programming languages. If you plan to populate the data in the DataFrame from e.g. a call to C, the easiest way to do it by far is to create the DataFrame in python, get pointers to the underlying data, which are np.arrays, and pass these np.arrays along so that they can be populated. In this situation, you simply don't care what data the DataFrame starts off with, the goal is just to allocate the memory so you know what you're copying to.
This is also just generally frustrating because it implies that in principle (depending potentially on the specific situation, and the implementation specifics, etc) it is hard to guarantee that you will not end up using twice the memory you really should.
This has an extremely simple solution that is already grounded in the quantitative python stack: have a method analagous to numpy's empty. This allocates the space, but does not actually waste any time writing or copying anything. Since empty is already taken, I would propose calling the method from_empty. It would accept an index (mandatory, most common use case would be to pass np.arange(N)), columns (mandatory, typically a list of strings), types (list of acceptable types for columns, same length as columns). The list of types should include support for all numpy numeric types (ints, floats), as well as special Pandas columns such as DatetimeIndex and Categorical.
As an added bonus, since the implementation is in a completely separate method, it will not interfere with the existing API at all.
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9216/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9216/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9217 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9217/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9217/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9217/events | https://github.com/pandas-dev/pandas/issues/9217 | 53,908,910 | MDU6SXNzdWU1MzkwODkxMA== | 9,217 | BUG/API: interpolate with limit=0 should mean no interpolation | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 5 | 2015-01-09T20:05:25Z | 2017-02-14T13:34:23Z | 2017-02-14T13:34:23Z | MEMBER | null | Current behavior:
```
In [28]: s = pd.Series([1, 2, np.nan, np.nan, 5])
In [29]: s
Out[29]:
0 1
1 2
2 NaN
3 NaN
4 5
dtype: float64
In [30]: s.interpolate(limit=0)
Out[30]:
0 1
1 2
2 3
3 4
4 5
dtype: float64
```
But in fact, `limit=0` in contrast to `limit=None` should mean no interpolation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9217/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9217/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9218 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9218/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9218/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9218/events | https://github.com/pandas-dev/pandas/issues/9218 | 53,912,396 | MDU6SXNzdWU1MzkxMjM5Ng== | 9,218 | DOC/API: limit argument to interpolate is somewhat non-intuitive | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "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-01-09T20:40:56Z | 2018-08-31T18:37:25Z | 2015-09-01T12:04:25Z | MEMBER | null | The current documentation for the limit parameter looks like this:
```
limit : int, default None.
Maximum number of consecutive NaNs to fill.
```
Several features were not immediately obvious to me and could probably be resolved by slightly better docstring or API design:
1. What happens where the max number of consecutive NaNs is reached? pandas simply stops replacing values, e.g., if there is a gap of 3 values and limit=2, pandas replaces the first 2 values. The alternative would be to entirely ignore gaps of more than 2 values. I'm not saying this would be a better alternative, but we should clarify this.
2. The limit refers to forward filling only, even though interpolation is not inherently directional. It would be nice if there was some way to trigger a limit for back filling at the same time, e.g., with `forward_limit` and `backward_limit` arguments:
```
>>> pd.Series([1, np.nan, np.nan, np.nan, 5]).interpolate(forward_limit=1, backward_limit=1)
0 1
1 2
2 NaN
3 4
4 5
dtype: float64
```
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/9218/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9218/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9219 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9219/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9219/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9219/events | https://github.com/pandas-dev/pandas/issues/9219 | 53,923,916 | MDU6SXNzdWU1MzkyMzkxNg== | 9,219 | DataFrame.to_hdf fails in Python 3.4 | {
"avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4",
"events_url": "https://api.github.com/users/mrocklin/events{/privacy}",
"followers_url": "https://api.github.com/users/mrocklin/followers",
"following_url": "https://api.github.com/users/mrocklin/following{/other_user}",
"gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrocklin",
"id": 306380,
"login": "mrocklin",
"node_id": "MDQ6VXNlcjMwNjM4MA==",
"organizations_url": "https://api.github.com/users/mrocklin/orgs",
"received_events_url": "https://api.github.com/users/mrocklin/received_events",
"repos_url": "https://api.github.com/users/mrocklin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrocklin"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
]
| closed | false | null | []
| null | 7 | 2015-01-09T22:35:44Z | 2017-03-28T12:48:04Z | 2015-01-09T23:16:46Z | CONTRIBUTOR | null | This may be more of a PyTables issue but it affects Pandas users too
``` Python
>>> import pandas as pd
>>> df = pd.DataFrame({'a': [1, 2, 3]})
>>> df.to_hdf('myfile.hdf5', '/data', append=True)
File "/home/mrocklin/Software/anaconda/envs/py34/lib/python3.4/site-packages/tables/attributeset.py", line 381, in _g__setattr
elif name == "FILTERS" and self._v__format_version >= (2, 0):
TypeError: unorderable types: NoneType() >= tuple()
```
It appears that `self._v__format_version is None`. Not sure why.
``` Python
>>> import sys
>>> sys.version
'3.4.2 |Anaconda 2.1.0 (64-bit)| (default, Oct 21 2014, 17:16:37) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'
>>> pd.__version__
'0.14.1'
>>> import tables
>>> tables.__version__
'3.1.1'
```
This works fine with `append=False`
``` Python
>>> df.to_hdf('myfile.hdf5', '/data', append=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/9219/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9219/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9220 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9220/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9220/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9220/events | https://github.com/pandas-dev/pandas/issues/9220 | 53,928,097 | MDU6SXNzdWU1MzkyODA5Nw== | 9,220 | np.float16 support | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "fbca04",
"default": false,
"description": "High level tracker for similar issues",
"id": 183784729,
"name": "Master Tracker",
"node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker"
}
]
| 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"
} | 9 | 2015-01-09T23:21:58Z | 2020-11-20T04:44:02Z | null | MEMBER | null | open issues & xref
* (fillna) #19205
* #10382
* #15517
* #2511
* #16686
think this should be a bug. When calling the fill_na method in a pandas Series of type np.float16 it raises a ValueError, because of invalid dtype. May be there is a reason for that I can't guess, but I think it's a bug because it does not detect np.float16 as a subclass of np.floating. I'm using Python 3.4, didn't test if it also fails in Python 2. It fails for both methods, 'pad' and 'bfill'.
For np.float32 and np.float64 it works correctly. This code reproduces the error with np.float16:
```
import numpy as np
import pandas as pd
s = pd.Series(np.random.randn(100), dtype=np.float16)
rets = s.fillna(method='bfill')
```
and this is the ValueError it generates:
---
```
ValueError Traceback (most recent call last)
<ipython-input-133-5610749057ca> in <module>()
3
4 s = pd.Series(np.random.randn(100), dtype=np.float16)
----> 5 rets = s.fillna(method='bfill')
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/generic.py in fillna(self, value, method, axis, inplace, limit, downcast)
2227 inplace=inplace,
2228 coerce=True,
-> 2229 downcast=downcast)
2230 else:
2231 if method is not None:
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/internals.py in interpolate(self, **kwargs)
2223
2224 def interpolate(self, **kwargs):
-> 2225 return self.apply('interpolate', **kwargs)
2226
2227 def shift(self, **kwargs):
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, **kwargs)
2190 copy=align_copy)
2191
-> 2192 applied = getattr(b, f)(**kwargs)
2193
2194 if isinstance(applied, list):
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/internals.py in interpolate(self, method, axis, index, values, inplace, limit, fill_value, coerce, downcast, **kwargs)
648 fill_value=fill_value,
649 coerce=coerce,
--> 650 downcast=downcast)
651 # try an interp method
652 try:
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/internals.py in _interpolate_with_fill(self, method, axis, inplace, limit, fill_value, coerce, downcast)
693 limit=limit,
694 fill_value=fill_value,
--> 695 dtype=self.dtype)
696 values = self._try_coerce_result(values)
697
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/common.py in interpolate_2d(values, method, axis, limit, fill_value, dtype)
1576 values = transf(pad_2d(transf(values), limit=limit, mask=mask, dtype=dtype))
1577 else:
-> 1578 values = transf(backfill_2d(transf(values), limit=limit, mask=mask, dtype=dtype))
1579
1580 # reshape back
/opt/anaconda3/lib/python3.4/site-packages/pandas/core/common.py in backfill_2d(values, limit, mask, dtype)
1378
1379 if _method is None:
-> 1380 raise ValueError('Invalid dtype for backfill_2d [%s]' % dtype.name)
1381
1382 if mask is None:
ValueError: Invalid dtype for backfill_2d [float16]
```
And my guess is that the problem is this part of the code, I can debug it once you confirm this is a bug:
https://github.com/pydata/pandas/blob/master/pandas/core/common.py#L2459
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9220/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9220/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9221 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9221/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9221/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9221/events | https://github.com/pandas-dev/pandas/issues/9221 | 53,959,022 | MDU6SXNzdWU1Mzk1OTAyMg== | 9,221 | DataFrame.groupby.fillna for axis=1, no filling happens | {
"avatar_url": "https://avatars.githubusercontent.com/u/10476118?v=4",
"events_url": "https://api.github.com/users/prebenbang/events{/privacy}",
"followers_url": "https://api.github.com/users/prebenbang/followers",
"following_url": "https://api.github.com/users/prebenbang/following{/other_user}",
"gists_url": "https://api.github.com/users/prebenbang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prebenbang",
"id": 10476118,
"login": "prebenbang",
"node_id": "MDQ6VXNlcjEwNDc2MTE4",
"organizations_url": "https://api.github.com/users/prebenbang/orgs",
"received_events_url": "https://api.github.com/users/prebenbang/received_events",
"repos_url": "https://api.github.com/users/prebenbang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prebenbang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prebenbang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prebenbang"
} | [
{
"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": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 9 | 2015-01-10T14:04:00Z | 2015-01-10T17:23:12Z | 2015-01-10T17:23:12Z | NONE | null | groupby.fillna not working along column axis.
The bug exists for 15.1 and 15.2
Works for 13.1
```
import pandas as pd
import numpy as np
print pd.__version__
test = pd.DataFrame(index=pd.MultiIndex.from_product([['value1','value2'],pd.date_range('2014-01-01','2014-01-06')]),
columns=pd.Index(['1','2'], name='id'))
test['1'] = [np.nan, 1, np.nan, np.nan, 11, np.nan, np.nan, 2, np.nan, np.nan, 22, np.nan]
test['2'] = [np.nan, 3, np.nan, np.nan, 33, np.nan, np.nan, 4, np.nan, np.nan, 44, np.nan]
testT = test.T
print '*' * 30
print test
print '*' * 30
print test.groupby(level=0, axis=0).fillna(method='ffill')
print '*' * 30
print testT
print '*' * 30
print testT.groupby(level=0, axis=1).fillna(method='ffill')
print '*' * 30
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9221/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9221/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9222 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9222/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9222/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9222/events | https://github.com/pandas-dev/pandas/pull/9222 | 53,961,832 | MDExOlB1bGxSZXF1ZXN0MjcxNTA0ODU= | 9,222 | BUG: Bug in using grouper functions that need passed thru arguments (GH9221) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 0 | 2015-01-10T15:48:22Z | 2015-01-10T17:23:12Z | 2015-01-10T17:23:12Z | CONTRIBUTOR | null | closes #9221
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9222/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9222/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9222.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9222",
"merged_at": "2015-01-10T17:23:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9222.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9222"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9223 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9223/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9223/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9223/events | https://github.com/pandas-dev/pandas/issues/9223 | 53,962,093 | MDU6SXNzdWU1Mzk2MjA5Mw== | 9,223 | ENH: add a "name" field to DataFrame, consistent with Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/743508?v=4",
"events_url": "https://api.github.com/users/mangecoeur/events{/privacy}",
"followers_url": "https://api.github.com/users/mangecoeur/followers",
"following_url": "https://api.github.com/users/mangecoeur/following{/other_user}",
"gists_url": "https://api.github.com/users/mangecoeur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mangecoeur",
"id": 743508,
"login": "mangecoeur",
"node_id": "MDQ6VXNlcjc0MzUwOA==",
"organizations_url": "https://api.github.com/users/mangecoeur/orgs",
"received_events_url": "https://api.github.com/users/mangecoeur/received_events",
"repos_url": "https://api.github.com/users/mangecoeur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mangecoeur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mangecoeur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mangecoeur"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| null | 1 | 2015-01-10T15:57:11Z | 2015-01-10T16:02:54Z | 2015-01-10T16:02:46Z | CONTRIBUTOR | null | It would be logical to add a `name` field to DataFrame, similar to Series. Then when you construct a Panel it can try to use the `name`, in the same way as when you construct a DataFrame from Series.
It would also be useful when loading/saving DataFrames to files and DBs, for example at the moment to save to HDF you always have to add a key and for SQL a table name, it would be logical to attach these to the DataFrame itself as its name parameter.
| {
"+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/9223/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9223/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9224 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9224/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9224/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9224/events | https://github.com/pandas-dev/pandas/issues/9224 | 53,984,291 | MDU6SXNzdWU1Mzk4NDI5MQ== | 9,224 | Syntax error thrown by python at pandas/scripts/windows_builder/check_and_build.py +52 | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | []
| closed | false | null | []
| null | 2 | 2015-01-11T07:02:39Z | 2015-01-11T17:35:59Z | 2015-01-11T14:09:17Z | CONTRIBUTOR | null | Syntax error on line 52 of pandas/scripts/windows_builder/check_and_build.py?
$ python scripts/windows_builder/check_and_build.py
File "scripts/windows_builder/check_and_build.py", line 52
password=############
^
SyntaxError: invalid syntax
Fix: password='############' ?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9224/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9224/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9225 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9225/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9225/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9225/events | https://github.com/pandas-dev/pandas/pull/9225 | 53,987,031 | MDExOlB1bGxSZXF1ZXN0MjcxNjA3Nzc= | 9,225 | Fix randomly failing test in test_frame.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 9 | 2015-01-11T09:44:43Z | 2015-01-15T03:25:21Z | 2015-01-15T03:25:17Z | CONTRIBUTOR | null | @jreback I noticed a randomly failing test while doing a full suite run a week or two ago. The test is using random integers as part of a `MultiIndex`, which randomly leads to a non-unique index. Attempting to re-index the `DataFrame` therefore randomly fails. The solution is to just sample without replacement.
The following code gives a failure rate of ~1.5%, which is in line with birthday problem estimates (`d=1000` and four iterations each of `n=3` and `n=2`):
```
import subprocess
total = 0
n = 10
for i in range(n):
result = subprocess.call('nosetests pandas/tests/test_frame.py:TestDataFrame.test_reindex_level', shell=True)
if result:
print i
total += 1
print 'Total error rate of {0:.6f}'.format(total/float(n))
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9225/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9225/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9225.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9225",
"merged_at": "2015-01-15T03:25:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9225.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9225"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9226 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9226/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9226/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9226/events | https://github.com/pandas-dev/pandas/pull/9226 | 54,018,044 | MDExOlB1bGxSZXF1ZXN0MjcxNzM4MjY= | 9,226 | ENH: add to_offset method to Timedelta #9064 | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 22 | 2015-01-12T03:39:28Z | 2015-01-19T02:18:33Z | 2015-01-18T20:53:40Z | CONTRIBUTOR | null | Closes #9064
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9226/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9226/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9226.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9226",
"merged_at": "2015-01-18T20:53:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9226.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9226"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9227 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9227/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9227/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9227/events | https://github.com/pandas-dev/pandas/pull/9227 | 54,018,055 | MDExOlB1bGxSZXF1ZXN0MjcxNzM4MzU= | 9,227 | TST: Clean test_format.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/1914111?v=4",
"events_url": "https://api.github.com/users/alanhdu/events{/privacy}",
"followers_url": "https://api.github.com/users/alanhdu/followers",
"following_url": "https://api.github.com/users/alanhdu/following{/other_user}",
"gists_url": "https://api.github.com/users/alanhdu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alanhdu",
"id": 1914111,
"login": "alanhdu",
"node_id": "MDQ6VXNlcjE5MTQxMTE=",
"organizations_url": "https://api.github.com/users/alanhdu/orgs",
"received_events_url": "https://api.github.com/users/alanhdu/received_events",
"repos_url": "https://api.github.com/users/alanhdu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alanhdu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alanhdu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alanhdu"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 10 | 2015-01-12T03:39:43Z | 2015-03-05T23:35:52Z | 2015-03-05T23:35:47Z | CONTRIBUTOR | null | Mostly just stylistic changes. The only substantive one is the test now on line 56 (`has_horizontally_truncated_repr`). I can't figure what the test was supposed to be doing. Suggestions?
Original Test:
``` python
def has_horizontally_truncated_repr(df):
try: # Check header row
fst_line = np.array(repr(df).splitlines()[0].split())
cand_col = np.where(fst_line=='...')[0][0]
except:
return False
# Make sure each row has this ... in the same place
r = repr(df)
for ix,l in enumerate(r.splitlines()):
if not r.split()[cand_col] == '...':
return False
return True
```
New Test:
``` python
def has_horizontally_truncated_repr(df):
try: # Check header row
fst_line = np.array(repr(df).splitlines()[0].split())
cand_col = np.where(fst_line=='...')[0][0]
except:
return False
# Make sure each row has this ... in the same place
return repr(df).split()[cand_col] == "..."
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9227/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9227/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9227.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9227",
"merged_at": "2015-03-05T23:35:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9227.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9227"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9228 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9228/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9228/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9228/events | https://github.com/pandas-dev/pandas/issues/9228 | 54,052,501 | MDU6SXNzdWU1NDA1MjUwMQ== | 9,228 | TestDataFrameFormatting error when stty columns = 0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/67612?v=4",
"events_url": "https://api.github.com/users/matthew-brett/events{/privacy}",
"followers_url": "https://api.github.com/users/matthew-brett/followers",
"following_url": "https://api.github.com/users/matthew-brett/following{/other_user}",
"gists_url": "https://api.github.com/users/matthew-brett/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthew-brett",
"id": 67612,
"login": "matthew-brett",
"node_id": "MDQ6VXNlcjY3NjEy",
"organizations_url": "https://api.github.com/users/matthew-brett/orgs",
"received_events_url": "https://api.github.com/users/matthew-brett/received_events",
"repos_url": "https://api.github.com/users/matthew-brett/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthew-brett/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthew-brett/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthew-brett"
} | [
{
"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": "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": "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": 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-01-12T13:21:08Z | 2019-10-07T01:09:15Z | 2019-10-07T01:09:14Z | CONTRIBUTOR | null | When stty columns = 0, I guess this test error.
```
======================================================================
FAIL: test_auto_detect (pandas.tests.test_format.TestDataFrameFormatting)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tests/test_format.py", line 315, in test_auto_detect
self.assertTrue(has_expanded_repr(df))
AssertionError: False is not true
```
To reproduce:
```
stty columns 0
nosetests pandas.tests.test_format
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9228/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9228/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9229 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9229/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9229/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9229/events | https://github.com/pandas-dev/pandas/issues/9229 | 54,057,312 | MDU6SXNzdWU1NDA1NzMxMg== | 9,229 | API/ENH: Add mutate like method to DataFrames | {
"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"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 23 | 2015-01-12T14:10:28Z | 2015-03-01T14:51:09Z | 2015-03-01T14:51:09Z | CONTRIBUTOR | null | In my [notebook](http://nbviewer.ipython.org/6e052140eaa5fdb6e8c0) comparing dplyr and pandas, I gained a new level of appreciation for the ability to chain strings of operations together. In my own code, the biggest impediment to this is adding additional columns that are calculations on existing columns. For example
``` R
# R / dplyr
mutate(flights,
gain = arr_delay - dep_delay,
speed = distance / air_time * 60)
# ... calculation involving these
```
vs.
``` python
flights['gain'] = flights.arr_delay - flights.dep_delay
flights['speed'] = flights.distance / flights.air_time * 60
# ... calculation involving these later
```
just doesn't flow as nicely, especially if this `mutate` is in the middle of a chain.
I'd propose a new method (perhaps stealing `mutate`) that's similar to dplyr's.
The function signature could be kwarg only, where the keywords are the new column names. e.g.
``` python
flights.mutate(gain=flights.arr_delay - flights.dep_delay
```
This would return a DataFrame with the new column `gain` in addition to the original columns.
Worked out example
``` python
import pandas as pd
import seaborn as sns
iris = sns.load_dataset('iris')
(iris.query('sepal_length > 4.5')
.mutate(ratio=iris.sepal_length / iris.sepal_width) # new part
.groupby(pd.cut(iris.ratio)).mean()
)
```
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/9229/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9229/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9230 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9230/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9230/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9230/events | https://github.com/pandas-dev/pandas/pull/9230 | 54,083,087 | MDExOlB1bGxSZXF1ZXN0MjcyMTE1NTA= | 9,230 | COMPAT: Need to read Bytes on Python | {
"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"
} | []
| closed | false | null | []
| null | 3 | 2015-01-12T17:38:48Z | 2015-01-12T22:30:38Z | 2015-01-12T22:30:32Z | CONTRIBUTOR | null | Reading from s3 on Python 3 returns a Bytes 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/9230/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9230/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9230.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9230",
"merged_at": "2015-01-12T22:30:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9230.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9230"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9231 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9231/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9231/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9231/events | https://github.com/pandas-dev/pandas/issues/9231 | 54,083,457 | MDU6SXNzdWU1NDA4MzQ1Nw== | 9,231 | read_stata failing with URL | {
"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": "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_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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 4 | 2015-01-12T17:41:41Z | 2015-01-16T12:48:10Z | 2015-01-16T12:48:10Z | CONTRIBUTOR | null | I'm not entirely sure the root cause yet. It's something to do with the default encoding I think. I'm pretty sure Stata uses `iso-8859-1` not `cp1252`. Changing this inside `pandas.io.maybe_read_encoded_stream` works, but changing the encoding in StataReader breaks something else that I don't have time to debug.
Can someone sanity check me. Does this work on Python 2?
```
dta = pd.read_stata("http://www.stata-press.com/data/r13/fullauto.dta")
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9231/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9231/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9232 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9232/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9232/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9232/events | https://github.com/pandas-dev/pandas/issues/9232 | 54,097,934 | MDU6SXNzdWU1NDA5NzkzNA== | 9,232 | BUG: DataFrame constructor incorrect with Series input depending on name | {
"avatar_url": "https://avatars.githubusercontent.com/u/10504477?v=4",
"events_url": "https://api.github.com/users/JohnNapier/events{/privacy}",
"followers_url": "https://api.github.com/users/JohnNapier/followers",
"following_url": "https://api.github.com/users/JohnNapier/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnNapier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JohnNapier",
"id": 10504477,
"login": "JohnNapier",
"node_id": "MDQ6VXNlcjEwNTA0NDc3",
"organizations_url": "https://api.github.com/users/JohnNapier/orgs",
"received_events_url": "https://api.github.com/users/JohnNapier/received_events",
"repos_url": "https://api.github.com/users/JohnNapier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JohnNapier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnNapier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JohnNapier"
} | [
{
"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"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
]
| closed | false | null | []
| {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 7 | 2015-01-12T19:47:39Z | 2019-12-24T14:24:25Z | 2019-12-24T14:24:25Z | NONE | null | DataFrame constructor example:
``` python
In [55]: x = pd.Series(range(5), name=1)
In [56]: y = pd.Series(range(5), name=0)
In [57]: pd.DataFrame(x, columns=[0])
Out[57]:
Empty DataFrame
Columns: [0]
Index: []
In [58]: pd.DataFrame(x, columns=[1])
Out[58]:
1
0 0
1 1
2 2
3 3
4 4
```
and for y, the name and columns don't have to match for it to construct.
```
In [59]: pd.DataFrame(y, columns=[0])
Out[59]:
0
0 0
1 1
2 2
3 3
4 4
In [60]: pd.DataFrame(y, columns=[1])
Out[60]:
1
0 0
1 1
2 2
3 3
4 4
```
---
Using Pandas 0.15.2-1. After renaming a column in a dataframe, a .join operation fails.
``` python
import numpy as np,pandas as pd
df1=pd.DataFrame(range(1,1001)).rename(columns={0:1})
a=np.log(df1[1])
df2=df1.join(pd.DataFrame(a,columns=[0]))
```
The second column contains all NaN, instead of the values from _a_. The same can be accomplished by other means, but I believe the above should work. For example, the following works:
``` python
df1=pd.DataFrame(range(1,1001))
a=np.log(df1[0])
df2=df1.join(pd.DataFrame(a,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/9232/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9232/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9233 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9233/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9233/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9233/events | https://github.com/pandas-dev/pandas/issues/9233 | 54,098,732 | MDU6SXNzdWU1NDA5ODczMg== | 9,233 | pip install pandas not working | {
"avatar_url": "https://avatars.githubusercontent.com/u/7470770?v=4",
"events_url": "https://api.github.com/users/PatrickEGorman/events{/privacy}",
"followers_url": "https://api.github.com/users/PatrickEGorman/followers",
"following_url": "https://api.github.com/users/PatrickEGorman/following{/other_user}",
"gists_url": "https://api.github.com/users/PatrickEGorman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PatrickEGorman",
"id": 7470770,
"login": "PatrickEGorman",
"node_id": "MDQ6VXNlcjc0NzA3NzA=",
"organizations_url": "https://api.github.com/users/PatrickEGorman/orgs",
"received_events_url": "https://api.github.com/users/PatrickEGorman/received_events",
"repos_url": "https://api.github.com/users/PatrickEGorman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PatrickEGorman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PatrickEGorman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PatrickEGorman"
} | [
{
"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 | 4 | 2015-01-12T19:54:46Z | 2015-01-13T11:07:51Z | 2015-01-13T11:07:45Z | NONE | null | I entered "pip install pandas" in my terminal window to install it into a local environment but the installation looped infinitely and threw up a bunch of errors. I'm not sure if it is something wrong with pip or my virtual environment but I wanted to see if anybody else was having trouble with 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/9233/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9233/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9234 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9234/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9234/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9234/events | https://github.com/pandas-dev/pandas/pull/9234 | 54,107,248 | MDExOlB1bGxSZXF1ZXN0MjcyMjY0MjI= | 9,234 | DOC: update docstring of DataFrame.append | {
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 4 | 2015-01-12T21:11:42Z | 2015-01-19T13:58:49Z | 2015-01-19T13:58:48Z | MEMBER | null | I always thought that `append` was for appending rows, not columns. So, unless I am completely missing something, the docstring was saying the wrong thing.
So I reworded it a bit, see below.
Apart from that, there were some other things that are not fully clear to me in the docstring:
- The docstring says that `other` should be a "list of Series/dict-like objects" (or a Dataframe):
- Does it need to be a list? It also works with just a Series. Or what are the differences between both?
- With a simple example, I don't see a difference, although in implementation, there is.
- The docstring says for the `ignore_index` kwarg: "Useful for gluing together record arrays"
- How does this look in practice? If I try to append a record array, I get "TypeError: cannot concatenate a non-NDFrame object" -> so I will remove 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/9234/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9234/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9234.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9234",
"merged_at": "2015-01-19T13:58:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9234.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9234"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9235 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9235/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9235/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9235/events | https://github.com/pandas-dev/pandas/issues/9235 | 54,111,451 | MDU6SXNzdWU1NDExMTQ1MQ== | 9,235 | Apply vs Transform on a group object | {
"avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4",
"events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}",
"followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers",
"following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}",
"gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amelio-vazquez-reina",
"id": 1993919,
"login": "amelio-vazquez-reina",
"node_id": "MDQ6VXNlcjE5OTM5MTk=",
"organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs",
"received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events",
"repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amelio-vazquez-reina"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 4 | 2015-01-12T21:47:19Z | 2015-01-13T11:08:58Z | 2015-01-13T11:08:47Z | CONTRIBUTOR | null | Hi,
I understand this ticket is a borderline usage question, but I think it may signal an example of inconsistency either in the documentation or on the way these methods work.
The original question on SO is [here](http://stackoverflow.com/questions/27517425/apply-vs-transform-on-a-group-object).
Consider the following dataframe:
```
A B C D
0 foo one 0.162003 0.087469
1 bar one -1.156319 -1.526272
2 foo two 0.833892 -1.666304
3 bar three -2.026673 -0.322057
4 foo two 0.411452 -0.954371
5 bar two 0.765878 -0.095968
6 foo one -0.654890 0.678091
7 foo three -1.789842 -1.130922
```
The following commands work:
```
> df.groupby('A').apply(lambda x: (x['C'] - x['D']))
> df.groupby('A').apply(lambda x: (x['C'] - x['D']).mean())
```
but none of the following work:
```
> df.groupby('A').transform(lambda x: (x['C'] - x['D']))
ValueError: could not broadcast input array from shape (5) into shape (5,3)
> df.groupby('A').transform(lambda x: (x['C'] - x['D']).mean())
TypeError: cannot concatenate a non-NDFrame object
```
**Why?** [The example on the documentation](http://pandas.pydata.org/pandas-docs/stable/groupby.html#transformation) seems to suggest that calling `transform` on a group allows one to do row-wise operation processing:
``` python
# Note that the following suggests row-wise operation (x.mean is the column mean)
zscore = lambda x: (x - x.mean()) / x.std()
transformed = ts.groupby(key).transform(zscore)
```
In other words, I thought that transform is essentially a specific type of apply (the one that does not aggregate). Where am I wrong?
For reference, below is the construction of the original dataframe above:
``` python
df = pd.DataFrame({'A' : ['foo', 'bar', 'foo', 'bar',
'foo', 'bar', 'foo', 'foo'],
'B' : ['one', 'one', 'two', 'three',
'two', 'two', 'one', 'three'],
'C' : randn(8), 'D' : randn(8)})
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9235/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9235/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9236 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9236/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9236/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9236/events | https://github.com/pandas-dev/pandas/issues/9236 | 54,139,116 | MDU6SXNzdWU1NDEzOTExNg== | 9,236 | DataFrame.groupby fails with MultiIndex containing pd.NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/3666725?v=4",
"events_url": "https://api.github.com/users/stevenmanton/events{/privacy}",
"followers_url": "https://api.github.com/users/stevenmanton/followers",
"following_url": "https://api.github.com/users/stevenmanton/following{/other_user}",
"gists_url": "https://api.github.com/users/stevenmanton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stevenmanton",
"id": 3666725,
"login": "stevenmanton",
"node_id": "MDQ6VXNlcjM2NjY3MjU=",
"organizations_url": "https://api.github.com/users/stevenmanton/orgs",
"received_events_url": "https://api.github.com/users/stevenmanton/received_events",
"repos_url": "https://api.github.com/users/stevenmanton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stevenmanton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stevenmanton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stevenmanton"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2015-01-13T01:26:40Z | 2019-02-19T13:32:42Z | 2019-02-19T13:32:42Z | NONE | null | It seems that the `groupby` operation fails when the row index is a MultiIndex containing NaT values. For example, the following code fails (v0.15.2) with `TypeError: 'numpy.ndarray' object is not callable`:
``` python
midx = pd.MultiIndex(levels=[[pd.NaT, pd.datetime(2012,1,2),
pd.datetime(2012,1,3)], ['a', 'b']],
labels=[[0, 1, 1, 2], [0, 0, 1, 0]], names=['date', None])
df = pd.Series(pd.np.random.rand(4), index=midx)
df.groupby(level=1)
```
However, it seems as though np.nan values are handled properly:
``` python
midx = pd.MultiIndex(levels=[[pd.np.nan, 10, 20], ['a', 'b']],
labels=[[0, 1, 1, 2], [0, 0, 1, 0]], names=['date', None])
df = pd.Series(pd.np.random.rand(4), index=midx)
df.groupby(level=1)
```
| {
"+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/9236/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9236/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9237 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9237/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9237/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9237/events | https://github.com/pandas-dev/pandas/pull/9237 | 54,141,701 | MDExOlB1bGxSZXF1ZXN0MjcyNDMwNTM= | 9,237 | BUG: fix DataFrame constructor w named Series | {
"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": "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": 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"
} | 28 | 2015-01-13T02:03:58Z | 2017-04-05T02:06:18Z | 2015-10-19T13:10:55Z | CONTRIBUTOR | null | closes #7893
Closes https://github.com/pydata/pandas/issues/9232
Problem was passing Series w/ a name to DataFrame w/ the `columns` kwarg.
Before:
``` python
In [55]: x = pd.Series(range(5), name=1)
In [56]: y = pd.Series(range(5), name=0)
In [57]: pd.DataFrame(x, columns=[0])
Out[57]:
Empty DataFrame
Columns: [0]
Index: []
In [58]: pd.DataFrame(x, columns=[1])
Out[58]:
1
0 0
1 1
2 2
3 3
4 4
In [59]: pd.DataFrame(y, columns=[0])
Out[59]:
0
0 0
1 1
2 2
3 3
4 4
In [60]: pd.DataFrame(y, columns=[1])
Out[60]:
1
0 0
1 1
2 2
3 3
4 4
```
after
``` python
In [1]: x = pd.Series(range(5), name=1)
In [2]: y = pd.Series(range(5), name=0)
In [4]: pd.DataFrame(x, columns=[0])
Out[4]:
0
0 0
1 1
2 2
3 3
4 4
In [5]: pd.DataFrame(y, columns=[1])
Out[5]:
1
0 0
1 1
2 2
3 3
4 4
```
There were two intertwined problems
1. we checked `if getattr(data, 'name', None):`, which returned False when data.name was `False`ish (like 0). I now compare it directly against None.
2. If `data` has a name and the columns kwarg is specified, the constructor returned an Empty DataFrame w/ the column specified in columns. Now, we do what's [documented](http://pandas.pydata.org/pandas-docs/version/0.15.2/dsintro.html#from-a-series):
> The result will be a DataFrame with the same index as the input Series, and with one column whose name is the original name of the Series (only if no other column name provided).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9237/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9237/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9237",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9237"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9238 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9238/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9238/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9238/events | https://github.com/pandas-dev/pandas/pull/9238 | 54,145,031 | MDExOlB1bGxSZXF1ZXN0MjcyNDQ4MTI= | 9,238 | DOC: Small syntax change to indexing.rst to address GH8686. | {
"avatar_url": "https://avatars.githubusercontent.com/u/4166648?v=4",
"events_url": "https://api.github.com/users/clham/events{/privacy}",
"followers_url": "https://api.github.com/users/clham/followers",
"following_url": "https://api.github.com/users/clham/following{/other_user}",
"gists_url": "https://api.github.com/users/clham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/clham",
"id": 4166648,
"login": "clham",
"node_id": "MDQ6VXNlcjQxNjY2NDg=",
"organizations_url": "https://api.github.com/users/clham/orgs",
"received_events_url": "https://api.github.com/users/clham/received_events",
"repos_url": "https://api.github.com/users/clham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/clham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/clham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/clham"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 1 | 2015-01-13T02:54:36Z | 2015-01-13T08:09:48Z | 2015-01-13T08:09:37Z | CONTRIBUTOR | null | Brings indexing.rst docs for .loc into line with .iloc. Closes https://github.com/pydata/pandas/issues/8686.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9238/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9238/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9238.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9238",
"merged_at": "2015-01-13T08:09:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9238.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9238"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9239 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9239/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9239/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9239/events | https://github.com/pandas-dev/pandas/pull/9239 | 54,193,793 | MDExOlB1bGxSZXF1ZXN0MjcyNzA5Mzk= | 9,239 | API: Add DataFrame.assign method | {
"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"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 61 | 2015-01-13T13:32:24Z | 2017-04-05T02:06:15Z | 2015-03-01T14:51:09Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/9229
signature: `DataFrame.transform(**kwargs)`
- the keyword is the name of the new column (existing columns are overwritten if there's a name conflict, as in dplyr)
- the value is either
- called on self if it's callable. The callable should be a function of 1 argument, the DataFrame being called on.
- inserted otherwise
``` python
In [7]: df.head()
Out[7]:
sepal_length sepal_width petal_length petal_width species
0 5.1 3.5 1.4 0.2 setosa
1 4.9 3.0 1.4 0.2 setosa
2 4.7 3.2 1.3 0.2 setosa
3 4.6 3.1 1.5 0.2 setosa
4 5.0 3.6 1.4 0.2 setosa
In [8]: (df.query('species == "virginica"')
.transform(sepal_ratio=lambda x: x.sepal_length / x.sepal_width)
.head())
Out[8]:
sepal_length sepal_width petal_length petal_width species \
100 6.3 3.3 6.0 2.5 virginica
101 5.8 2.7 5.1 1.9 virginica
102 7.1 3.0 5.9 2.1 virginica
103 6.3 2.9 5.6 1.8 virginica
104 6.5 3.0 5.8 2.2 virginica
sepal_ratio
100 1.909091
101 2.148148
102 2.366667
103 2.172414
104 2.166667
```
My question now is
- How strict should we be on the shape of the `transformed` DataFrame? Should we do any kind of checking on the index or columns?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9239/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9239/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9239.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9239",
"merged_at": "2015-03-01T14:51:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9239.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9239"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9240 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9240/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9240/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9240/events | https://github.com/pandas-dev/pandas/issues/9240 | 54,204,738 | MDU6SXNzdWU1NDIwNDczOA== | 9,240 | Dataframe.query regex support | {
"avatar_url": "https://avatars.githubusercontent.com/u/131160?v=4",
"events_url": "https://api.github.com/users/coco98/events{/privacy}",
"followers_url": "https://api.github.com/users/coco98/followers",
"following_url": "https://api.github.com/users/coco98/following{/other_user}",
"gists_url": "https://api.github.com/users/coco98/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/coco98",
"id": 131160,
"login": "coco98",
"node_id": "MDQ6VXNlcjEzMTE2MA==",
"organizations_url": "https://api.github.com/users/coco98/orgs",
"received_events_url": "https://api.github.com/users/coco98/received_events",
"repos_url": "https://api.github.com/users/coco98/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/coco98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/coco98/subscriptions",
"type": "User",
"url": "https://api.github.com/users/coco98"
} | [
{
"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-01-13T15:14:04Z | 2015-01-13T23:47:40Z | 2015-01-13T23:47:35Z | NONE | null | Hi,
I was wondering if I could make a regex query (re.search say) in the query expression.
Dataframe.filter supports it. Is there any particular reason that query 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/9240/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9240/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9241 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9241/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9241/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9241/events | https://github.com/pandas-dev/pandas/issues/9241 | 54,210,280 | MDU6SXNzdWU1NDIxMDI4MA== | 9,241 | First assignment with logical indexing is slow for Series (but OK for DataFrames) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1324881?v=4",
"events_url": "https://api.github.com/users/vfilimonov/events{/privacy}",
"followers_url": "https://api.github.com/users/vfilimonov/followers",
"following_url": "https://api.github.com/users/vfilimonov/following{/other_user}",
"gists_url": "https://api.github.com/users/vfilimonov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vfilimonov",
"id": 1324881,
"login": "vfilimonov",
"node_id": "MDQ6VXNlcjEzMjQ4ODE=",
"organizations_url": "https://api.github.com/users/vfilimonov/orgs",
"received_events_url": "https://api.github.com/users/vfilimonov/received_events",
"repos_url": "https://api.github.com/users/vfilimonov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vfilimonov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vfilimonov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vfilimonov"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
]
| closed | false | null | []
| null | 6 | 2015-01-13T15:57:17Z | 2015-01-14T14:25:34Z | 2015-01-14T14:15:55Z | CONTRIBUTOR | null | First assignment with logical indexing is 1000 slower than second, third, etc. for pandas.Series:
```
import pandas.io.data as web
f = web.DataReader("MSFT", 'yahoo')['Adj Close']
%time f[f==0] = np.NaN
%time f[f==0.1] = np.NaN
```
It gives
```
CPU times: user 1.52 s, sys: 1.65 ms, total: 1.52 s
Wall time: 1.52 s
CPU times: user 704 µs, sys: 22 µs, total: 726 µs
Wall time: 720 µs
```
But for DataFrames everything is OK:
```
import pandas.io.data as web
f = web.DataReader(["MSFT","GOOG"], 'yahoo')['Adj Close']
%time f[f==0] = np.NaN
%time f[f==0.1] = np.NaN
```
gives
```
CPU times: user 1.28 ms, sys: 1e+03 ns, total: 1.28 ms
Wall time: 1.28 ms
CPU times: user 1.23 ms, sys: 1 µs, total: 1.23 ms
Wall time: 1.24 ms
```
I used here data from Yahoo!Finance with datetimeindex since I was not able to reproduce this behavior in Series with integer index.
My versions:
pandas: 0.15.2
Cython: 0.21.2
numpy: 1.9.1
dateutil: 2.4.0
pytz: 2014.10
numexpr: 2.4
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9241/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9241/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9242 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9242/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9242/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9242/events | https://github.com/pandas-dev/pandas/issues/9242 | 54,225,644 | MDU6SXNzdWU1NDIyNTY0NA== | 9,242 | timezone aware columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/10457096?v=4",
"events_url": "https://api.github.com/users/quicknir/events{/privacy}",
"followers_url": "https://api.github.com/users/quicknir/followers",
"following_url": "https://api.github.com/users/quicknir/following{/other_user}",
"gists_url": "https://api.github.com/users/quicknir/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/quicknir",
"id": 10457096,
"login": "quicknir",
"node_id": "MDQ6VXNlcjEwNDU3MDk2",
"organizations_url": "https://api.github.com/users/quicknir/orgs",
"received_events_url": "https://api.github.com/users/quicknir/received_events",
"repos_url": "https://api.github.com/users/quicknir/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/quicknir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quicknir/subscriptions",
"type": "User",
"url": "https://api.github.com/users/quicknir"
} | [
{
"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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"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-01-13T17:59:38Z | 2015-02-27T10:56:10Z | 2015-01-13T23:40:09Z | NONE | null | At the moment, I don't see any way to have performant, timezone aware columns. This seems rather surprising, as generally when you have a column with timestamps, they will all likely be of the same timezone. Right now, as far as I can see you have two options:
1) Columns that are basically just numpy datetime64[ns] types. These seem to be timezone unaware.If you make such a column timezone aware (by e.g., dataframe.time_column.dt.tz_localize('UTC')) it becomes a column of dtype object.
2) A DatetimeIndex, which keeps track of timezone information at seemingly the column level (which is laudable). However, this only seems to really work used as an index. If I assign it to a column, it again gets converted to a dtype object, and things get slow.
Am I missing something? Is there a really good reason why a DatetimeIndex can't just be used, as is, in a column, without the dtype=object conversion?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9242/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9242/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9243 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9243/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9243/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9243/events | https://github.com/pandas-dev/pandas/issues/9243 | 54,234,553 | MDU6SXNzdWU1NDIzNDU1Mw== | 9,243 | Truncate on series causes core dump when TZ is specified on index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1308504?v=4",
"events_url": "https://api.github.com/users/echu79/events{/privacy}",
"followers_url": "https://api.github.com/users/echu79/followers",
"following_url": "https://api.github.com/users/echu79/following{/other_user}",
"gists_url": "https://api.github.com/users/echu79/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echu79",
"id": 1308504,
"login": "echu79",
"node_id": "MDQ6VXNlcjEzMDg1MDQ=",
"organizations_url": "https://api.github.com/users/echu79/orgs",
"received_events_url": "https://api.github.com/users/echu79/received_events",
"repos_url": "https://api.github.com/users/echu79/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echu79/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echu79/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echu79"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2019-01-26T00:51:26Z",
"closed_issues": 2048,
"created_at": "2018-03-29T12:00:12Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2019-01-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/55",
"id": 3228419,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels",
"node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==",
"number": 55,
"open_issues": 0,
"state": "closed",
"title": "0.24.0",
"updated_at": "2019-01-29T07:42:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55"
} | 6 | 2015-01-13T19:13:32Z | 2018-06-28T10:23:02Z | 2018-06-28T10:23:02Z | NONE | null | Hello
I am getting a core dump when truncating a series with a timezone specified on the index. Please see below:
This works fine:
```
import pandas
import datetime
import numpy as np
rng = pandas.date_range('1/2/2005', '11/1/2010', freq='D')
ts = pandas.Series(np.random.randn(len(rng)), index=rng)
ts.truncate(datetime.datetime(2009,1,1), datetime.datetime(2011,1,1)).resample('D', how='sum')
```
However this core dumps for me:
```
import pandas
import datetime
import numpy as np
rng = pandas.date_range('1/2/2005', '11/1/2010', freq='D', tz='US/Eastern')
ts = pandas.Series(np.random.randn(len(rng)), index=rng)
ts.truncate(datetime.datetime(2009,1,1), datetime.datetime(2011,1,1)).resample('D', how='sum')
```
The only difference is adding the TZ parameter to the date_range to set the index for a particular timezone.
This was working fine in .15, but seems to be broken in .15.2
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/9243/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9243/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9244 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9244/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9244/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9244/events | https://github.com/pandas-dev/pandas/issues/9244 | 54,255,547 | MDU6SXNzdWU1NDI1NTU0Nw== | 9,244 | Modulo (%) operator not supported anymore for Index since 0.15 | {
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2015-01-13T22:09:31Z | 2016-01-14T12:36:43Z | 2016-01-14T12:36:43Z | MEMBER | null | In 0.14:
```
In [1]: pd.__version__
Out[1]: '0.14.1'
In [2]: intidx = pd.Index(range(10))
In [3]: intidx % 2
Out[3]: Int64Index([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype='int64')
```
now:
```
In [1]: pd.__version__
Out[1]: '0.15.2'
In [2]: intidx = pd.Index(range(10))
In [3]: intidx % 2
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-de0ac1282c31> in <module>()
----> 1 intidx % 2
TypeError: unsupported operand type(s) for %: 'Int64Index' and 'int'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9244/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9244/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9245 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9245/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9245/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9245/events | https://github.com/pandas-dev/pandas/pull/9245 | 54,280,810 | MDExOlB1bGxSZXF1ZXN0MjczMjUwODc= | 9,245 | FIX: Fix encoding to allow StataReader to read urls | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "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_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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 6 | 2015-01-14T03:43:56Z | 2015-01-18T22:42:19Z | 2015-01-16T12:48:10Z | CONTRIBUTOR | null | Fix encoding so that StataReader can correctly read URLs
closes #9231
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9245/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9245/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9245.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9245",
"merged_at": "2015-01-16T12:48:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9245.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9245"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9246 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9246/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9246/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9246/events | https://github.com/pandas-dev/pandas/issues/9246 | 54,289,566 | MDU6SXNzdWU1NDI4OTU2Ng== | 9,246 | df.to_hdf() does not support BytesIO | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"color": "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": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
]
| closed | false | null | []
| null | 14 | 2015-01-14T06:37:43Z | 2021-05-18T13:00:45Z | 2015-01-14T14:06:17Z | CONTRIBUTOR | null | ```
In [1]: import io
In [2]: xx = io.BytesIO()
In [4]: from pandas import DataFrame
In [5]: from numpy.random import randn
In [6]: df = DataFrame(randn(1000000,2),columns=list('AB'))
----> 1 df.to_hdf(xx,'xx')
/root/pyenvs/aft_env/lib/python3.4/site-packages/pandas/core/generic.py in to_hdf(self, path_or_buf, key, **kwargs)
900
901 from pandas.io import pytables
--> 902 return pytables.to_hdf(path_or_buf, key, self, **kwargs)
903
904 def to_msgpack(self, path_or_buf=None, **kwargs):
/root/pyenvs/aft_env/lib/python3.4/site-packages/pandas/io/pytables.py in to_hdf(path_or_buf, key, value, mode, complevel, complib, append, **kwargs)
267 f(store)
268 else:
--> 269 f(path_or_buf)
270
271
/root/pyenvs/aft_env/lib/python3.4/site-packages/pandas/io/pytables.py in <lambda>(store)
260 f = lambda store: store.append(key, value, **kwargs)
261 else:
--> 262 f = lambda store: store.put(key, value, **kwargs)
263
264 if isinstance(path_or_buf, string_types):
AttributeError: '_io.BytesIO' object has no attribute 'put'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9246/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9246/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9247 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9247/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9247/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9247/events | https://github.com/pandas-dev/pandas/issues/9247 | 54,299,311 | MDU6SXNzdWU1NDI5OTMxMQ== | 9,247 | API: .dt.components attribute on timedelta series does not preserve the index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 1 | 2015-01-14T09:14:13Z | 2015-01-14T14:39:57Z | 2015-01-14T14:39:57Z | MEMBER | null | ```
In [70]: tds = pd.Series(pd.timedelta_range('1 days', periods=5, freq='2 h'), index=list('ABCDE'))
In [71]: tds
Out[71]:
A 1 days 00:00:00
B 1 days 02:00:00
C 1 days 04:00:00
D 1 days 06:00:00
E 1 days 08:00:00
dtype: timedelta64[ns]
In [72]: tds.dt.hours
Out[72]:
A 0
B 2
C 4
D 6
E 8
dtype: int64
In [73]: tds.dt.components.hours
Out[73]:
0 0
1 2
2 4
3 6
4 8
Name: hours, dtype: int64
```
So the direct attributes via `.dt` like `.dt.hours` above does preserve the index, but the `components` not.
@jreback I don't know if this was done on purpose or is an oversight, I can't remember, and I looked briefly to the long discussion in #8184, but didn't find something directly.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9247/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9247/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9248 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9248/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9248/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9248/events | https://github.com/pandas-dev/pandas/pull/9248 | 54,324,364 | MDExOlB1bGxSZXF1ZXN0MjczNTA5Mjc= | 9,248 | BUG: Bug in the returned Series.dt.components index was reset to the default index (GH9247) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 1 | 2015-01-14T13:55:39Z | 2015-01-14T14:39:57Z | 2015-01-14T14:39:57Z | CONTRIBUTOR | null | closes #9247
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9248/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9248/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9248.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9248",
"merged_at": "2015-01-14T14:39:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9248.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9248"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9249 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9249/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9249/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9249/events | https://github.com/pandas-dev/pandas/issues/9249 | 54,327,394 | MDU6SXNzdWU1NDMyNzM5NA== | 9,249 | *__tmp_to_csv_deprecated_options__ are left behind | {
"avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4",
"events_url": "https://api.github.com/users/yarikoptic/events{/privacy}",
"followers_url": "https://api.github.com/users/yarikoptic/followers",
"following_url": "https://api.github.com/users/yarikoptic/following{/other_user}",
"gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yarikoptic",
"id": 39889,
"login": "yarikoptic",
"node_id": "MDQ6VXNlcjM5ODg5",
"organizations_url": "https://api.github.com/users/yarikoptic/orgs",
"received_events_url": "https://api.github.com/users/yarikoptic/received_events",
"repos_url": "https://api.github.com/users/yarikoptic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yarikoptic"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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"
} | 6 | 2015-01-14T14:25:22Z | 2016-04-09T14:34:51Z | 2016-04-09T14:34:51Z | CONTRIBUTOR | null | which fills up the /tmp on a test box:
```
/tmp# ls -l *tmp_to_csv* | nl | tail
56 -rw------- 1 buildslave buildslave 1509 Jan 13 08:22 tmpuI3G3o__tmp_to_csv_deprecated_options__
57 -rw------- 1 buildslave buildslave 1514 Jan 13 06:04 tmpVmc8Qa__tmp_to_csv_deprecated_options__
58 -rw------- 1 buildslave buildslave 1513 Jan 6 00:19 tmpwHmsVO__tmp_to_csv_deprecated_options__
59 -rw------- 1 buildslave buildslave 1511 Jan 10 19:19 tmpwmWIUl__tmp_to_csv_deprecated_options__
60 -rw------- 1 buildslave buildslave 1513 Dec 28 19:57 tmpx480b9bk__tmp_to_csv_deprecated_options__
61 -rw------- 1 buildslave buildslave 1523 Jan 4 23:21 tmpYpSmZM__tmp_to_csv_deprecated_options__
62 -rw------- 1 buildslave buildslave 1520 Dec 28 21:47 tmpz55nmj_u__tmp_to_csv_deprecated_options__
63 -rw------- 1 buildslave buildslave 1526 Jan 10 12:56 tmpzczy25oz__tmp_to_csv_deprecated_options__
64 -rw------- 1 buildslave buildslave 1513 Dec 28 20:03 tmpZGClRm__tmp_to_csv_deprecated_options__
65 -rw------- 1 buildslave buildslave 1511 Jan 12 19:56 tmpzktpvkfo__tmp_to_csv_deprecated_options__
```
which seems to come from one of the test_frame tests which is not among failing tests (http://nipy.bic.berkeley.edu/builders/pandas-py2.x-sid-sparc/builds/1141/steps/shell_5/logs/stdio) so should be cleaned 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/9249/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9249/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9250 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9250/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9250/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9250/events | https://github.com/pandas-dev/pandas/issues/9250 | 54,338,376 | MDU6SXNzdWU1NDMzODM3Ng== | 9,250 | Setting with enlargement fails in presence of MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/630134?v=4",
"events_url": "https://api.github.com/users/FedericoV/events{/privacy}",
"followers_url": "https://api.github.com/users/FedericoV/followers",
"following_url": "https://api.github.com/users/FedericoV/following{/other_user}",
"gists_url": "https://api.github.com/users/FedericoV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FedericoV",
"id": 630134,
"login": "FedericoV",
"node_id": "MDQ6VXNlcjYzMDEzNA==",
"organizations_url": "https://api.github.com/users/FedericoV/orgs",
"received_events_url": "https://api.github.com/users/FedericoV/received_events",
"repos_url": "https://api.github.com/users/FedericoV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FedericoV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FedericoV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FedericoV"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 6 | 2015-01-14T15:56:18Z | 2015-01-16T12:51:42Z | 2015-01-16T12:51:42Z | NONE | null | ```
In [1]:
import pandas as pd
import numpy as np
print pd.__version__
a = np.linspace(0, 10, 11)
idx = [('test1', i) for i in range(5)]
idx.extend([('test2', i) for i in range(6)])
idx = pd.MultiIndex.from_tuples(idx)
0.15.2-80-ge69deae
In [2]:
a = pd.Series(a, idx)
a
Out[2]:
test1 0 0
1 1
2 2
3 3
4 4
test2 0 5
1 6
2 7
3 8
4 9
5 10
dtype: float64
In [3]:
a.loc[('test1', 2)] = 13
a
Out[3]:
test1 0 0
1 1
2 13
3 3
4 4
test2 0 5
1 6
2 7
3 8
4 9
5 10
dtype: float64
In [4]:
a.loc[('test', 17)] = 13
---------------------------------------------------------------------------
IndexingError Traceback (most recent call last)
<ipython-input-4-157acf13152f> in <module>()
----> 1 a.loc[('test', 17)] = 13
/home/federico/Python_Libraries/pandas/pandas/core/indexing.pyc in __setitem__(self, key, value)
114 if len(key) > self.ndim:
115 raise IndexingError('only tuples of length <= %d supported' %
--> 116 self.ndim)
117 indexer = self._convert_tuple(key, is_setter=True)
118 else:
IndexingError: only tuples of length <= 1 supported
In [5]:
a.ix[('test', 17)] = 13
---------------------------------------------------------------------------
IndexingError Traceback (most recent call last)
<ipython-input-5-89467846f8af> in <module>()
----> 1 a.ix[('test', 17)] = 13
/home/federico/Python_Libraries/pandas/pandas/core/indexing.pyc in __setitem__(self, key, value)
114 if len(key) > self.ndim:
115 raise IndexingError('only tuples of length <= %d supported' %
--> 116 self.ndim)
117 indexer = self._convert_tuple(key, is_setter=True)
118 else:
IndexingError: only tuples of length <= 1 supported
```
Somehow - the enlarging fails. Any clue how to get it to work? I have also noticed that the 'fast' indexing methods, iat and at fail with DataFrames that are multi indexed.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9250/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9250/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9251 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9251/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9251/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9251/events | https://github.com/pandas-dev/pandas/issues/9251 | 54,340,150 | MDU6SXNzdWU1NDM0MDE1MA== | 9,251 | Problem assigning values to a multi-indexed DataFrame column when repeated indices are passed to .loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/9717992?v=4",
"events_url": "https://api.github.com/users/eoincondron/events{/privacy}",
"followers_url": "https://api.github.com/users/eoincondron/followers",
"following_url": "https://api.github.com/users/eoincondron/following{/other_user}",
"gists_url": "https://api.github.com/users/eoincondron/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eoincondron",
"id": 9717992,
"login": "eoincondron",
"node_id": "MDQ6VXNlcjk3MTc5OTI=",
"organizations_url": "https://api.github.com/users/eoincondron/orgs",
"received_events_url": "https://api.github.com/users/eoincondron/received_events",
"repos_url": "https://api.github.com/users/eoincondron/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eoincondron/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eoincondron/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eoincondron"
} | [
{
"color": "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": "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"
} | 1 | 2015-01-14T16:09:50Z | 2021-04-12T04:54:39Z | null | NONE | null | Consider the following:
```
ix = pd.MultiIndex.from_product([range(3), list('abc')])
df = pd.DataFrame(0, index = ix, columns = ['A','B'])
df.loc[[1, 1, 2], 'A']
Out[1896]:
1 a 0
b 0
c 0
2 a 0
b 0
c 0
```
Note that I've passed the index 1 twice (pointless I know). Now if I try to use the same indexing to assign a values or values I get an error:
```
df.loc[[1, 1, 2], 'A'] = 4
NotImplementedError: Index._join_level on non-unique index is not implemented
```
This seems unexpected as there is no problem returning a view but the assignation doesn't work.
I understand it's unusual and bad usage to pass the same index more than once here but in my original use case the indices were generated by some code which didn't ensure to remove duplicates, leading to this esoteric error message.
Is it intended that Pandas will deal with duplicate index entries in this scenario or should the user be more careful?
| {
"+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/9251/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9251/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9252 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9252/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9252/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9252/events | https://github.com/pandas-dev/pandas/issues/9252 | 54,344,324 | MDU6SXNzdWU1NDM0NDMyNA== | 9,252 | BUG: SparsePanel cross sectional not working | {
"avatar_url": "https://avatars.githubusercontent.com/u/4383303?v=4",
"events_url": "https://api.github.com/users/wholmgren/events{/privacy}",
"followers_url": "https://api.github.com/users/wholmgren/followers",
"following_url": "https://api.github.com/users/wholmgren/following{/other_user}",
"gists_url": "https://api.github.com/users/wholmgren/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wholmgren",
"id": 4383303,
"login": "wholmgren",
"node_id": "MDQ6VXNlcjQzODMzMDM=",
"organizations_url": "https://api.github.com/users/wholmgren/orgs",
"received_events_url": "https://api.github.com/users/wholmgren/received_events",
"repos_url": "https://api.github.com/users/wholmgren/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wholmgren/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wholmgren/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wholmgren"
} | [
{
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": 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-01-14T16:40:27Z | 2015-09-20T21:16:30Z | 2015-09-20T21:16:30Z | CONTRIBUTOR | null | My understanding is that SparsePanel is supposed to have the same API as Panel, so I expected `sparse_pan[:,:,1]` to work:
``` python
In [11]: data = np.zeros((3,3,3))
In [12]: data[:] = np.nan
In [13]: data[1,1,1] = 1
In [14]: pan = pd.Panel(data)
In [15]: pan[:,:,1]
Out[15]:
0 1 2
0 NaN NaN NaN
1 NaN 1 NaN
2 NaN NaN NaN
In [16]: sparse_pan = pan.to_sparse()
In [17]: sparse_pan[:,:,1]
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-17-e57ddf7a7092> in <module>()
----> 1 sparse_pan[:,:,1]
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/panel.py in __getitem__(self, key)
256 if lib.isscalar(key):
257 return super(Panel, self).__getitem__(key)
--> 258 return self.ix[key]
259
260 def _getitem_multilevel(self, key):
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/indexing.py in __getitem__(self, key)
68 pass
69
---> 70 return self._getitem_tuple(key)
71 else:
72 return self._getitem_axis(key, axis=0)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/indexing.py in _getitem_tuple(self, tup)
697 def _getitem_tuple(self, tup):
698 try:
--> 699 return self._getitem_lowerdim(tup)
700 except IndexingError:
701 pass
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/indexing.py in _getitem_lowerdim(self, tup)
822 for i, key in enumerate(tup):
823 if _is_label_like(key) or isinstance(key, tuple):
--> 824 section = self._getitem_axis(key, axis=i)
825
826 # we have yielded a scalar ?
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis)
926 return self._get_loc(key, axis=axis)
927
--> 928 return self._get_label(key, axis=axis)
929
930 def _getitem_iterable(self, key, axis=0):
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/indexing.py in _get_label(self, label, axis)
86 raise IndexingError('no slices here, handle elsewhere')
87
---> 88 return self.obj._xs(label, axis=axis)
89
90 def _get_loc(self, key, axis=0):
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/panel.py in xs(self, key, axis, copy)
787 self._consolidate_inplace()
788 axis_number = self._get_axis_number(axis)
--> 789 new_data = self._data.xs(key, axis=axis_number, copy=False)
790 result = self._construct_return_type(new_data)
791 copy = new_data.is_mixed_type
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in __getattr__(self, name)
1938
1939 if name in self._internal_names_set:
-> 1940 return object.__getattribute__(self, name)
1941 elif name in self._metadata:
1942 return object.__getattribute__(self, name)
AttributeError: 'SparsePanel' object has no attribute '_data'
```
No surprise: same behavior with ix and iloc.
Accessing via `minor_xs` does work
```
In [23]: sparse_pan.minor_xs(1)
Out[23]:
0 1 2
0 NaN NaN NaN
1 NaN 1 NaN
2 NaN NaN NaN
```
``` python
In [3]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.1.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.17.1.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: 0.20.2
numpy: 1.9.1
scipy: 0.14.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/9252/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9252/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9253 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9253/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9253/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9253/events | https://github.com/pandas-dev/pandas/issues/9253 | 54,345,548 | MDU6SXNzdWU1NDM0NTU0OA== | 9,253 | Plotting NaT with matplotlib results in error | {
"avatar_url": "https://avatars.githubusercontent.com/u/4330135?v=4",
"events_url": "https://api.github.com/users/jvspl/events{/privacy}",
"followers_url": "https://api.github.com/users/jvspl/followers",
"following_url": "https://api.github.com/users/jvspl/following{/other_user}",
"gists_url": "https://api.github.com/users/jvspl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jvspl",
"id": 4330135,
"login": "jvspl",
"node_id": "MDQ6VXNlcjQzMzAxMzU=",
"organizations_url": "https://api.github.com/users/jvspl/orgs",
"received_events_url": "https://api.github.com/users/jvspl/received_events",
"repos_url": "https://api.github.com/users/jvspl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jvspl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jvspl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jvspl"
} | [
{
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
]
| closed | false | null | []
| null | 2 | 2015-01-14T16:49:12Z | 2021-04-12T04:58:34Z | 2021-04-12T04:58:34Z | NONE | null | Trying to plot the NaT (not a time) value of pandas gives an error, where plotting NaN does not.
Expected (and hereby requested) is that NaT is treated just like NaN - i.e., ignore it.
``` python
from pylab import *
import pandas as pd
plot(pd.NaT,5)
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-60addc339c2f> in <module>()
----> 1 plot(pd.NaT,5)
C:\Anaconda\lib\site-packages\matplotlib\pyplot.pyc in plot(*args, **kwargs)
3091 ax.hold(hold)
3092 try:
-> 3093 ret = ax.plot(*args, **kwargs)
3094 draw_if_interactive()
3095 finally:
C:\Anaconda\lib\site-packages\matplotlib\axes\_axes.pyc in plot(self, *args, **kwargs)
1372
1373 for line in self._get_lines(*args, **kwargs):
-> 1374 self.add_line(line)
1375 lines.append(line)
1376
C:\Anaconda\lib\site-packages\matplotlib\axes\_base.pyc in add_line(self, line)
1484 line.set_clip_path(self.patch)
1485
-> 1486 self._update_line_limits(line)
1487 if not line.get_label():
1488 line.set_label('_line%d' % len(self.lines))
C:\Anaconda\lib\site-packages\matplotlib\axes\_base.pyc in _update_line_limits(self, line)
1495 Figures out the data limit of the given line, updating self.dataLim.
1496 """
-> 1497 path = line.get_path()
1498 if path.vertices.size == 0:
1499 return
C:\Anaconda\lib\site-packages\matplotlib\lines.pyc in get_path(self)
863 """
864 if self._invalidy or self._invalidx:
--> 865 self.recache()
866 return self._path
867
C:\Anaconda\lib\site-packages\matplotlib\lines.pyc in recache(self, always)
564 x = ma.asarray(xconv, np.float_)
565 else:
--> 566 x = np.asarray(xconv, np.float_)
567 x = x.ravel()
568 else:
C:\Anaconda\lib\site-packages\numpy\core\numeric.pyc in asarray(a, dtype, order)
460
461 """
--> 462 return array(a, dtype, copy=False, order=order)
463
464 def asanyarray(a, dtype=None, order=None):
TypeError: float() argument must be a string or a number
```
Calling plot with a np.nan results in the point being silently ignored, which I believe should also happen for pd.NaT.
``` python
plot(np.nan,5)
```
This seems related to #8914, but this example gives an error, where the example of #8914 only results in wrong axes.
This issue was posted in the matplotlib issue tracker as matplotlib/matplotlib#4000, but they believe it can only be fixed in pandas.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9253/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9253/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9254 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9254/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9254/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9254/events | https://github.com/pandas-dev/pandas/issues/9254 | 54,364,621 | MDU6SXNzdWU1NDM2NDYyMQ== | 9,254 | Groupby added to original frame has different index based on how it is accessed | {
"avatar_url": "https://avatars.githubusercontent.com/u/4633429?v=4",
"events_url": "https://api.github.com/users/arijun/events{/privacy}",
"followers_url": "https://api.github.com/users/arijun/followers",
"following_url": "https://api.github.com/users/arijun/following{/other_user}",
"gists_url": "https://api.github.com/users/arijun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arijun",
"id": 4633429,
"login": "arijun",
"node_id": "MDQ6VXNlcjQ2MzM0Mjk=",
"organizations_url": "https://api.github.com/users/arijun/orgs",
"received_events_url": "https://api.github.com/users/arijun/received_events",
"repos_url": "https://api.github.com/users/arijun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arijun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arijun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arijun"
} | []
| closed | false | null | []
| null | 1 | 2015-01-14T19:25:36Z | 2015-01-14T20:00:36Z | 2015-01-14T20:00:36Z | NONE | null | So when I use `groupby` and then set it as a column in my original array, everything looks good if I use bracket indexing:
```
In [11]:otms['LastOrd'] = otms.EVENTTIME.where(otms.EVENT=='Submitted')
otms.LastOrd = otms.groupby(['OPTION','EXCHANGE','BUYSELL', 'TRIGGER',]).LastOrd.shift(1)
otms.LastOrd = otms.groupby(['OPTION','EXCHANGE','BUYSELL', 'TRIGGER',]).LastOrd.ffill()
In [12]: df['LastOrd'].head(7)
Out[12]: 0 NaT
1 09:44:17.918848
2 09:44:17.918848
3 09:44:17.918848
4 NaT
5 NaT
6 09:44:18.049305
Name: LastOrd, dtype: timedelta64[ns]
```
That is a `Int64Index`, like the parent DF. But when I try to use dot indexing, it gives me a `MultiIndex` series:
```
In [13]: df.LastOrd.head(7)
Out[13]: 0 1022 NaT
1024 10:05:08.418368
1026 10:05:08.418368
1 7406 NaT
7407 14:01:59.547820
7408 14:01:59.547820
2 1021 NaT
dtype: timedelta64[ns]
```
This is not expected behavior, correct?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9254/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9254/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9255 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9255/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9255/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9255/events | https://github.com/pandas-dev/pandas/pull/9255 | 54,398,578 | MDExOlB1bGxSZXF1ZXN0MjczOTc1NTM= | 9,255 | ENH: add Timestamp.to_datetime64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "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": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 7 | 2015-01-15T00:47:10Z | 2015-01-15T04:43:16Z | 2015-01-15T04:43:11Z | MEMBER | null | This PR adds a `Timestamp.to_datetime64()` method to complement the `Timedelta.to_timedelta64()` method I added in #8884. It is a continuation of the aborted #8916.
Arguably, there should also be the alias `Timestamp.values` to complement the series property but I haven't added that yet.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9255/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9255/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9255.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9255",
"merged_at": "2015-01-15T04:43:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9255.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9255"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9256 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9256/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9256/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9256/events | https://github.com/pandas-dev/pandas/pull/9256 | 54,400,633 | MDExOlB1bGxSZXF1ZXN0MjczOTg4ODc= | 9,256 | BUG: bug in multi-index where insert fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4",
"events_url": "https://api.github.com/users/behzadnouri/events{/privacy}",
"followers_url": "https://api.github.com/users/behzadnouri/followers",
"following_url": "https://api.github.com/users/behzadnouri/following{/other_user}",
"gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/behzadnouri",
"id": 1288998,
"login": "behzadnouri",
"node_id": "MDQ6VXNlcjEyODg5OTg=",
"organizations_url": "https://api.github.com/users/behzadnouri/orgs",
"received_events_url": "https://api.github.com/users/behzadnouri/received_events",
"repos_url": "https://api.github.com/users/behzadnouri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/behzadnouri"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-15T01:16:58Z | 2015-01-17T11:33:53Z | 2015-01-16T12:51:42Z | CONTRIBUTOR | null | closes https://github.com/pydata/pandas/issues/9250
on master:
```
>>> df
3rd
1st 2nd
a b 0
b d 1
>>> df.loc[('b', 'x'), '3rd'] = 2 # this works!
>>> df
3rd
1st 2nd
a b 0
b d 1
x 2
>>> df.loc[('b', 'a'), '3rd'] = -1 # fails! sets everything to -1
>>> df
3rd
1st 2nd
a b -1
b d -1
x -1
>>> df.loc[('b', 'b'), '3rd'] = 3 # erros!
NotImplementedError: Index._join_level on non-unique index is not implemented
```
on branch:
```
>>> df
3rd
1st 2nd
a b 0
b d 1
>>> df.loc[('b', 'x'), '3rd'] = 2
>>> df.loc[('b', 'a'), '3rd'] = -1
>>> df.loc[('b', 'b'), '3rd'] = 3
>>> df
3rd
1st 2nd
a b 0
b d 1
x 2
a -1
b 3
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9256/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9256/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9256.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9256",
"merged_at": "2015-01-16T12:51:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9256.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9256"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9257 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9257/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9257/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9257/events | https://github.com/pandas-dev/pandas/pull/9257 | 54,405,600 | MDExOlB1bGxSZXF1ZXN0Mjc0MDIwOTI= | 9,257 | API: restore full datetime.timedelta compat with Timedelta w.r.t. seconds/microseconds accessors (GH9185, GH9139) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 5 | 2015-01-15T02:34:37Z | 2015-01-16T17:01:13Z | 2015-01-16T16:54:46Z | CONTRIBUTOR | null | closes #9185
closes #9139
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9257/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9257/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9257.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9257",
"merged_at": "2015-01-16T16:54:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9257.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9257"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9258 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9258/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9258/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9258/events | https://github.com/pandas-dev/pandas/pull/9258 | 54,415,140 | MDExOlB1bGxSZXF1ZXN0Mjc0MDc3MDQ= | 9,258 | API/ENH: add method='nearest' to Index.get_indexer/reindex and method to get_loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 40 | 2015-01-15T05:53:32Z | 2015-04-13T22:55:42Z | 2015-02-23T18:30:41Z | MEMBER | null | Fixes #8845
Currently only an index method; I'm open to ideas for how to expose it more
directly -- maybe `df.loc_nearest`?.
In particular, I think this is usually a more useful way to do indexing for
floats than pandas's reindex based `.loc`, because floats are inherently
imprecise.
CC @jreback @jorisvandenbossche @immerrr @hugadams
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9258/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9258/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9258.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9258",
"merged_at": "2015-02-23T18:30:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9258.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9258"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9259 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9259/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9259/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9259/events | https://github.com/pandas-dev/pandas/issues/9259 | 54,429,203 | MDU6SXNzdWU1NDQyOTIwMw== | 9,259 | Bug: Pandas indexing with at/iat fails with multi-index | {
"avatar_url": "https://avatars.githubusercontent.com/u/630134?v=4",
"events_url": "https://api.github.com/users/FedericoV/events{/privacy}",
"followers_url": "https://api.github.com/users/FedericoV/followers",
"following_url": "https://api.github.com/users/FedericoV/following{/other_user}",
"gists_url": "https://api.github.com/users/FedericoV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FedericoV",
"id": 630134,
"login": "FedericoV",
"node_id": "MDQ6VXNlcjYzMDEzNA==",
"organizations_url": "https://api.github.com/users/FedericoV/orgs",
"received_events_url": "https://api.github.com/users/FedericoV/received_events",
"repos_url": "https://api.github.com/users/FedericoV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FedericoV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FedericoV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FedericoV"
} | [
{
"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": "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"
} | 3 | 2015-01-15T09:40:59Z | 2021-04-12T04:59:23Z | null | NONE | null | Split off from: #9250
```
In [6]:
# Dataframe now:
cols = [('a_col', chr(i+65)) for i in range(5)]
cols.extend([('b_col', chr(i+65)) for i in range(5, 10)])
idx = [('a_row', chr(i+65)) for i in range(5)]
idx.extend([('b_row', chr(i+65)) for i in range(5, 10)])
df = pd.DataFrame(np.linspace(1, 100, 100).reshape(10, 10),
index = pd.MultiIndex.from_tuples(idx),
columns = pd.MultiIndex.from_tuples(cols))
In [7]:
df
Out[7]:
a_col b_col
A B C D E F G H I J
a_row A 1 2 3 4 5 6 7 8 9 10
B 11 12 13 14 15 16 17 18 19 20
C 21 22 23 24 25 26 27 28 29 30
D 31 32 33 34 35 36 37 38 39 40
E 41 42 43 44 45 46 47 48 49 50
b_row F 51 52 53 54 55 56 57 58 59 60
G 61 62 63 64 65 66 67 68 69 70
H 71 72 73 74 75 76 77 78 79 80
I 81 82 83 84 85 86 87 88 89 90
J 91 92 93 94 95 96 97 98 99 100
In [8]:
df.loc[('a_row', 'A')] # Works
df.loc[:, ('a_col', 'A')] # Works
df.ix[('a_row', 'B')] # Works
Out[8]:
a_col A 11
B 12
C 13
D 14
E 15
b_col F 16
G 17
H 18
I 19
J 20
Name: (a_row, B), dtype: float64
In [9]:
df.at[('a_row', 'A')] # fails
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-9-6b9462dd2fc9> in <module>()
----> 1 df.at[('a_row', 'A')] # fails
/home/federico/Python_Libraries/pandas/pandas/core/indexing.pyc in __getitem__(self, key)
1505
1506 key = self._convert_key(key)
-> 1507 return self.obj.get_value(*key, takeable=self._takeable)
1508
1509 def __setitem__(self, key, value):
/home/federico/Python_Libraries/pandas/pandas/core/frame.pyc in get_value(self, index, col, takeable)
1640 return _maybe_box_datetimelike(series.values[index])
1641
-> 1642 series = self._get_item_cache(col)
1643 engine = self.index._engine
1644 return engine.get_value(series.get_values(), index)
/home/federico/Python_Libraries/pandas/pandas/core/generic.pyc in _get_item_cache(self, item)
1066 res = cache.get(item)
1067 if res is None:
-> 1068 values = self._data.get(item)
1069 res = self._box_item_values(item, values)
1070 cache[item] = res
/home/federico/Python_Libraries/pandas/pandas/core/internals.pyc in get(self, item, fastpath)
2847
2848 if not isnull(item):
-> 2849 loc = self.items.get_loc(item)
2850 else:
2851 indexer = np.arange(len(self.items))[isnull(self.items)]
/home/federico/Python_Libraries/pandas/pandas/core/index.pyc in get_loc(self, key)
4123
4124 if not isinstance(key, tuple):
-> 4125 loc = self._get_level_indexer(key, level=0)
4126 return _maybe_to_slice(loc)
4127
/home/federico/Python_Libraries/pandas/pandas/core/index.pyc in _get_level_indexer(self, key, level)
4359 else:
4360
-> 4361 loc = level_index.get_loc(key)
4362 if level > 0 or self.lexsort_depth == 0:
4363 return np.array(labels == loc,dtype=bool)
/home/federico/Python_Libraries/pandas/pandas/core/index.pyc in get_loc(self, key)
1405 loc : int if unique index, possibly slice or mask if not
1406 """
-> 1407 return self._engine.get_loc(_values_from_object(key))
1408
1409 def get_value(self, series, key):
/home/federico/Python_Libraries/pandas/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3812)()
/home/federico/Python_Libraries/pandas/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3692)()
/home/federico/Python_Libraries/pandas/pandas/hashtable.so in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12318)()
/home/federico/Python_Libraries/pandas/pandas/hashtable.so in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12269)()
KeyError: 'A'
```
It also fails on Series with multi-indexing.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9259/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9259/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9260 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9260/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9260/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9260/events | https://github.com/pandas-dev/pandas/issues/9260 | 54,429,276 | MDU6SXNzdWU1NDQyOTI3Ng== | 9,260 | Constructing DataFrame from dict | {
"avatar_url": "https://avatars.githubusercontent.com/u/1622906?v=4",
"events_url": "https://api.github.com/users/bmu/events{/privacy}",
"followers_url": "https://api.github.com/users/bmu/followers",
"following_url": "https://api.github.com/users/bmu/following{/other_user}",
"gists_url": "https://api.github.com/users/bmu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bmu",
"id": 1622906,
"login": "bmu",
"node_id": "MDQ6VXNlcjE2MjI5MDY=",
"organizations_url": "https://api.github.com/users/bmu/orgs",
"received_events_url": "https://api.github.com/users/bmu/received_events",
"repos_url": "https://api.github.com/users/bmu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bmu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bmu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bmu"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 4 | 2015-01-15T09:42:01Z | 2015-06-24T21:06:19Z | 2015-01-16T12:38:11Z | NONE | null | If think it was possible to construct a DataFrame from a dict, which gives an error with v0.15
``` python
In [4]: td = {'one': 1, 'two': 2}
In [5]: pd.DataFrame(td)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-71317f07d925> in <module>()
----> 1 pd.DataFrame(td)
.../python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy)
206 dtype=dtype, copy=copy)
207 elif isinstance(data, dict):
--> 208 mgr = self._init_dict(data, index, columns, dtype=dtype)
209 elif isinstance(data, ma.MaskedArray):
210 import numpy.ma.mrecords as mrecords
.../lib/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype)
334
335 return _arrays_to_mgr(arrays, data_names, index, columns,
--> 336 dtype=dtype)
337
338 def _init_ndarray(self, values, index, columns, dtype=None,
.../python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype)
4615 # figure out the index, if necessary
4616 if index is None:
-> 4617 index = extract_index(arrays)
4618 else:
4619 index = _ensure_index(index)
.../python2.7/site-packages/pandas/core/frame.pyc in extract_index(data)
4654
4655 if not indexes and not raw_lengths:
-> 4656 raise ValueError('If using all scalar values, you must pass'
4657 ' an index')
4658
ValueError: If using all scalar values, you must pass an index
```
The same is true if I use `DataFrame.from_dict` to construct the DataFrame.
Not sure if this was changed or if it is 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/9260/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9260/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9261 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9261/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9261/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9261/events | https://github.com/pandas-dev/pandas/issues/9261 | 54,430,781 | MDU6SXNzdWU1NDQzMDc4MQ== | 9,261 | read_sql_query does not convert invalid dates to NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
]
| open | false | null | []
| null | 1 | 2015-01-15T09:58:56Z | 2020-05-16T03:38:40Z | null | MEMBER | null | From: http://stackoverflow.com/questions/27908071/pandas-interprets-timestamp-without-timezones-columns-as-different-types/27960779#27960779
Using:
```
df = pd.DataFrame({'col1':[0,1], 'col2':pd.date_range('2012-01-01', periods=2, freq='1h')})
df.to_sql('test_invalid_date', engine_postgres, if_exists='replace', index=False)
engine_postgres.execute("INSERT INTO test_invalid_date VALUES (2, '3012-01-01 00:00:00');")
```
it gives a different handling of the invalid date depending on using `read_sql_table` or `read_sql_query`:
```
In [34]: df1 = pd.read_sql_table('test_invalid_date', engine_postgres)
In [35]: df1
Out[35]:
col1 col2
0 0 2012-01-01 00:00:00
1 1 2012-01-01 01:00:00
2 2 NaT
In [36]: df1.dtypes
Out[36]:
col1 int64
col2 datetime64[ns]
dtype: object
In [37]: df2 = pd.read_sql_query('SELECT * FROM test_invalid_date', engine_postgres)
In [38]: df2
Out[38]:
col1 col2
0 0 2012-01-01 00:00:00
1 1 2012-01-01 01:00:00
2 2 3012-01-01 00:00:00
In [39]: df2.dtypes
Out[39]:
col1 int64
col2 object
dtype: object
In [40]: df2.col2.values
Out[40]:
array([datetime.datetime(2012, 1, 1, 0, 0),
datetime.datetime(2012, 1, 1, 1, 0),
datetime.datetime(3012, 1, 1, 0, 0)], 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/9261/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9261/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9262 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9262/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9262/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9262/events | https://github.com/pandas-dev/pandas/issues/9262 | 54,442,438 | MDU6SXNzdWU1NDQ0MjQzOA== | 9,262 | 'Incorrect table name error' in sql query, though table name is correct | {
"avatar_url": "https://avatars.githubusercontent.com/u/4330135?v=4",
"events_url": "https://api.github.com/users/jvspl/events{/privacy}",
"followers_url": "https://api.github.com/users/jvspl/followers",
"following_url": "https://api.github.com/users/jvspl/following{/other_user}",
"gists_url": "https://api.github.com/users/jvspl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jvspl",
"id": 4330135,
"login": "jvspl",
"node_id": "MDQ6VXNlcjQzMzAxMzU=",
"organizations_url": "https://api.github.com/users/jvspl/orgs",
"received_events_url": "https://api.github.com/users/jvspl/received_events",
"repos_url": "https://api.github.com/users/jvspl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jvspl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jvspl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jvspl"
} | [
{
"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 | []
| null | 3 | 2015-01-15T12:11:24Z | 2015-01-15T13:42:22Z | 2015-01-15T13:38:40Z | NONE | null | An error message about 'incorrect table name' is given by the input below, though the table name is correct. I get the impression that the real 'error' is the length of the sql statement, perhaps in combination with the underscores. The queries sql and sql5 below give an error message about incorrect tables, the other statements do not. All queries give the desired result when directly passed to the database.
``` python
import pandas as pd
from sqlalchemy import create_engine
db_conn = create_engine('mysql://user:pass@host/scheme')
sql = 'SELECT starttime_down, endtime_up_ms, endtime_down FROM recon_netflow042'
sql1 = 'SELECT endtime_up_ms, endtime_down FROM recon_netflow042'
sql2 = 'SELECT starttime_down, endtime_down FROM recon_netflow042'
sql3 = 'SELECT starttime_down, endtime_up_ms FROM recon_netflow042'
sql4 = 'SELECT endtime_up_ms, sip, dip, id, dp, sp FROM recon_netflow042'
sql5 = 'SELECT endtime_up_ms, endtime_down, sip, dip, id, dp, sp FROM recon_netflow042'
df = pd.read_sql(sql, db_conn)
df = pd.read_sql(sql1, db_conn)
df = pd.read_sql(sql2, db_conn)
df = pd.read_sql(sql3, db_conn)
df = pd.read_sql(sql4, db_conn)
df = pd.read_sql(sql5, db_conn)
```
Error message for sql; df=pd.read_sql(sql,cb_conn):
```
---------------------------------------------------------------------------
ProgrammingError Traceback (most recent call last)
<ipython-input-6-152f1c22f712> in <module>()
----> 1 df = pd.read_sql(sql, db_conn)
C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in read_sql(sql, con, index_col, coerce_float, params, parse_dates, columns)
421 coerce_float=coerce_float, parse_dates=parse_dates)
422
--> 423 if pandas_sql.has_table(sql):
424 pandas_sql.meta.reflect(only=[sql])
425 return pandas_sql.read_table(
C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in has_table(self, name)
847
848 def has_table(self, name):
--> 849 return self.engine.has_table(name)
850
851 def get_table(self, table_name):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in has_table(self, table_name, schema)
1827
1828 """
-> 1829 return self.run_callable(self.dialect.has_table, table_name, schema)
1830
1831 def raw_connection(self):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs)
1731 """
1732 with self.contextual_connect() as conn:
-> 1733 return conn.run_callable(callable_, *args, **kwargs)
1734
1735 def execute(self, statement, *multiparams, **params):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs)
1240
1241 """
-> 1242 return callable_(self, *args, **kwargs)
1243
1244 def _run_visitor(self, visitorcallable, element, **kwargs):
C:\Anaconda\lib\site-packages\sqlalchemy\dialects\mysql\base.pyc in has_table(self, connection, table_name, schema)
2346 try:
2347 try:
-> 2348 rs = connection.execute(st)
2349 have = rs.fetchone() is not None
2350 rs.close()
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, object, *multiparams, **params)
719 """
720 if isinstance(object, util.string_types[0]):
--> 721 return self._execute_text(object, multiparams, params)
722 try:
723 meth = object._execute_on_connection
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_text(self, statement, multiparams, params)
868 statement,
869 parameters,
--> 870 statement, parameters
871 )
872 if self._has_events or self.engine._has_events:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
956 parameters,
957 cursor,
--> 958 context)
959
960 if self._has_events or self.engine._has_events:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context)
1158 util.raise_from_cause(
1159 sqlalchemy_exception,
-> 1160 exc_info
1161 )
1162 else:
C:\Anaconda\lib\site-packages\sqlalchemy\util\compat.pyc in raise_from_cause(exception, exc_info)
197 exc_info = sys.exc_info()
198 exc_type, exc_value, exc_tb = exc_info
--> 199 reraise(type(exception), exception, tb=exc_tb)
200
201 if py3k:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
949 statement,
950 parameters,
--> 951 context)
952 except Exception as e:
953 self._handle_dbapi_exception(
C:\Anaconda\lib\site-packages\sqlalchemy\engine\default.pyc in do_execute(self, cursor, statement, parameters, context)
434
435 def do_execute(self, cursor, statement, parameters, context=None):
--> 436 cursor.execute(statement, parameters)
437
438 def do_execute_no_params(self, cursor, statement, context=None):
C:\Anaconda\lib\site-packages\MySQLdb\cursors.pyc in execute(self, query, args)
203 del tb
204 self.messages.append((exc, value))
--> 205 self.errorhandler(self, exc, value)
206 self._executed = query
207 if not self._defer_warnings: self._warning_check()
C:\Anaconda\lib\site-packages\MySQLdb\connections.pyc in defaulterrorhandler(***failed resolving arguments***)
34 del cursor
35 del connection
---> 36 raise errorclass, errorvalue
37
38 re_numeric_part = re.compile(r"^(\d+)")
ProgrammingError: (ProgrammingError) (1103, "Incorrect table name 'SELECT starttime_down, endtime_up_ms, endtime_down FROM recon_netflow042'") 'DESCRIBE `SELECT starttime_down, endtime_up_ms, endtime_down FROM recon_netflow042`' ()
```
Error message for sql5; df=pd.read_sql(sql5,cb_conn):
```
---------------------------------------------------------------------------
ProgrammingError Traceback (most recent call last)
<ipython-input-11-039efdf529da> in <module>()
----> 1 df = pd.read_sql(sql5, db_conn)
C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in read_sql(sql, con, index_col, coerce_float, params, parse_dates, columns)
421 coerce_float=coerce_float, parse_dates=parse_dates)
422
--> 423 if pandas_sql.has_table(sql):
424 pandas_sql.meta.reflect(only=[sql])
425 return pandas_sql.read_table(
C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in has_table(self, name)
847
848 def has_table(self, name):
--> 849 return self.engine.has_table(name)
850
851 def get_table(self, table_name):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in has_table(self, table_name, schema)
1827
1828 """
-> 1829 return self.run_callable(self.dialect.has_table, table_name, schema)
1830
1831 def raw_connection(self):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs)
1731 """
1732 with self.contextual_connect() as conn:
-> 1733 return conn.run_callable(callable_, *args, **kwargs)
1734
1735 def execute(self, statement, *multiparams, **params):
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs)
1240
1241 """
-> 1242 return callable_(self, *args, **kwargs)
1243
1244 def _run_visitor(self, visitorcallable, element, **kwargs):
C:\Anaconda\lib\site-packages\sqlalchemy\dialects\mysql\base.pyc in has_table(self, connection, table_name, schema)
2346 try:
2347 try:
-> 2348 rs = connection.execute(st)
2349 have = rs.fetchone() is not None
2350 rs.close()
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, object, *multiparams, **params)
719 """
720 if isinstance(object, util.string_types[0]):
--> 721 return self._execute_text(object, multiparams, params)
722 try:
723 meth = object._execute_on_connection
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_text(self, statement, multiparams, params)
868 statement,
869 parameters,
--> 870 statement, parameters
871 )
872 if self._has_events or self.engine._has_events:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
956 parameters,
957 cursor,
--> 958 context)
959
960 if self._has_events or self.engine._has_events:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context)
1158 util.raise_from_cause(
1159 sqlalchemy_exception,
-> 1160 exc_info
1161 )
1162 else:
C:\Anaconda\lib\site-packages\sqlalchemy\util\compat.pyc in raise_from_cause(exception, exc_info)
197 exc_info = sys.exc_info()
198 exc_type, exc_value, exc_tb = exc_info
--> 199 reraise(type(exception), exception, tb=exc_tb)
200
201 if py3k:
C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
949 statement,
950 parameters,
--> 951 context)
952 except Exception as e:
953 self._handle_dbapi_exception(
C:\Anaconda\lib\site-packages\sqlalchemy\engine\default.pyc in do_execute(self, cursor, statement, parameters, context)
434
435 def do_execute(self, cursor, statement, parameters, context=None):
--> 436 cursor.execute(statement, parameters)
437
438 def do_execute_no_params(self, cursor, statement, context=None):
C:\Anaconda\lib\site-packages\MySQLdb\cursors.pyc in execute(self, query, args)
203 del tb
204 self.messages.append((exc, value))
--> 205 self.errorhandler(self, exc, value)
206 self._executed = query
207 if not self._defer_warnings: self._warning_check()
C:\Anaconda\lib\site-packages\MySQLdb\connections.pyc in defaulterrorhandler(***failed resolving arguments***)
34 del cursor
35 del connection
---> 36 raise errorclass, errorvalue
37
38 re_numeric_part = re.compile(r"^(\d+)")
ProgrammingError: (ProgrammingError) (1103, "Incorrect table name 'SELECT endtime_up_ms, endtime_down, sip, dip, id, dp, sp FROM recon_netflow042'") 'DESCRIBE `SELECT endtime_up_ms, endtime_down, sip, dip, id, dp, sp FROM recon_netflow042`' ()
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9262/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9262/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9263 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9263/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9263/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9263/events | https://github.com/pandas-dev/pandas/issues/9263 | 54,470,708 | MDU6SXNzdWU1NDQ3MDcwOA== | 9,263 | Clipboard functions don't support Unicode on Windows | {
"avatar_url": "https://avatars.githubusercontent.com/u/4466763?v=4",
"events_url": "https://api.github.com/users/jcjf/events{/privacy}",
"followers_url": "https://api.github.com/users/jcjf/followers",
"following_url": "https://api.github.com/users/jcjf/following{/other_user}",
"gists_url": "https://api.github.com/users/jcjf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcjf",
"id": 4466763,
"login": "jcjf",
"node_id": "MDQ6VXNlcjQ0NjY3NjM=",
"organizations_url": "https://api.github.com/users/jcjf/orgs",
"received_events_url": "https://api.github.com/users/jcjf/received_events",
"repos_url": "https://api.github.com/users/jcjf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcjf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcjf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcjf"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "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": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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"
} | 6 | 2015-01-15T16:33:41Z | 2015-12-05T15:33:54Z | 2015-12-05T15:33:54Z | CONTRIBUTOR | null | Recent versions of pyperclip (`pandas.util.clipboard`) use CF_UNICODETEXT getting data from and putting data to the WIndows Clipboard.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9263/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9263/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9264 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9264/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9264/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9264/events | https://github.com/pandas-dev/pandas/pull/9264 | 54,498,122 | MDExOlB1bGxSZXF1ZXN0Mjc0NTg0MDk= | 9,264 | FIX: Add endianness missing flag when reading data | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "read_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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 7 | 2015-01-15T20:14:19Z | 2015-01-18T22:42:19Z | 2015-01-16T15:10:44Z | CONTRIBUTOR | null | Added endianess flat to data type to allow data to be read cross platforms
closes #8688
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9264/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9264/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9264",
"merged_at": "2015-01-16T15:10:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9264"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9265 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9265/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9265/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9265/events | https://github.com/pandas-dev/pandas/issues/9265 | 54,523,759 | MDU6SXNzdWU1NDUyMzc1OQ== | 9,265 | ENH: implement clip for sparse structures | {
"avatar_url": "https://avatars.githubusercontent.com/u/4383303?v=4",
"events_url": "https://api.github.com/users/wholmgren/events{/privacy}",
"followers_url": "https://api.github.com/users/wholmgren/followers",
"following_url": "https://api.github.com/users/wholmgren/following{/other_user}",
"gists_url": "https://api.github.com/users/wholmgren/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wholmgren",
"id": 4383303,
"login": "wholmgren",
"node_id": "MDQ6VXNlcjQzODMzMDM=",
"organizations_url": "https://api.github.com/users/wholmgren/orgs",
"received_events_url": "https://api.github.com/users/wholmgren/received_events",
"repos_url": "https://api.github.com/users/wholmgren/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wholmgren/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wholmgren/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wholmgren"
} | [
{
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-01-16T00:11:05Z | 2021-11-02T02:40:59Z | null | CONTRIBUTOR | null | Recognizing that this is probably not very high on the priority list, I'll document that a user tried to use clip on sparse structures and wished that it worked.
Some ideas for what to do in order of best to worst solution:
1. Make it work in a memory and cpu efficient way.
2. Raise a NotImplementedError (possibly suggesting converting to a dense structure).
3. Make clip first convert to a dense structure, apply the limits, and return a sparse structure.
I am willing to submit PRs for 2 and 3, although I think that 3 is a bad idea. I need to understand the source better before I can consider volunteering to help with 1.
SparseSeries, SparseDataFrame, and SparsePanel all raise different exceptions.
``` python
pd.SparseSeries([0,1,np.nan,3,4]).clip(1,2)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-159-4c91e2de7ae6> in <module>()
----> 1 pd.SparseSeries([0,1,np.nan,3,4]).clip(1,2)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip(self, lower, upper, out)
2805 result = self
2806 if lower is not None:
-> 2807 result = result.clip_lower(lower)
2808 if upper is not None:
2809 result = result.clip_upper(upper)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip_lower(self, threshold)
2843 raise ValueError("Cannot use an NA value as a clip threshold")
2844
-> 2845 return self.where((self >= threshold) | isnull(self), threshold)
2846
2847 def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/ops.py in wrapper(self, other)
661 return self._constructor(na_op(self.values, other.values),
662 index=self.index,
--> 663 name=name).fillna(False).astype(bool)
664 elif isinstance(other, pd.DataFrame):
665 return NotImplemented
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/ops.py in na_op(x, y)
627 def na_op(x, y):
628 try:
--> 629 result = op(x, y)
630 except TypeError:
631 if isinstance(y, list):
ValueError: operands could not be broadcast together with shapes (5,) (0,)
```
``` python
pd.SparseDataFrame([[0,1,np.nan,3,4],[0,1,np.nan,3,4]]).clip(1,2)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-160-b399e57148ac> in <module>()
----> 1 pd.SparseDataFrame([[0,1,np.nan,3,4],[0,1,np.nan,3,4]]).clip(1,2)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip(self, lower, upper, out)
2805 result = self
2806 if lower is not None:
-> 2807 result = result.clip_lower(lower)
2808 if upper is not None:
2809 result = result.clip_upper(upper)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip_lower(self, threshold)
2843 raise ValueError("Cannot use an NA value as a clip threshold")
2844
-> 2845 return self.where((self >= threshold) | isnull(self), threshold)
2846
2847 def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/ops.py in f(self, other)
917 # straight boolean comparisions we want to allow all columns
918 # (regardless of dtype to pass thru) See #4537 for discussion.
--> 919 res = self._combine_const(other, func, raise_on_error=False)
920 return res.fillna(True).astype(bool)
921
TypeError: _combine_const() got an unexpected keyword argument 'raise_on_error'
```
``` python
pd.Panel(np.zeros((3,3,3))).to_sparse().clip(1,2)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-171-ec53f9e1dd24> in <module>()
----> 1 pd.Panel(np.zeros((3,3,3))).to_sparse().clip(1,2)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip(self, lower, upper, out)
2805 result = self
2806 if lower is not None:
-> 2807 result = result.clip_lower(lower)
2808 if upper is not None:
2809 result = result.clip_upper(upper)
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/generic.py in clip_lower(self, threshold)
2843 raise ValueError("Cannot use an NA value as a clip threshold")
2844
-> 2845 return self.where((self >= threshold) | isnull(self), threshold)
2846
2847 def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
/home/will/.virtualenvs/dev3/lib/python3.4/site-packages/pandas/core/ops.py in f(self, other)
960 raise ValueError('Simple arithmetic with %s can only be '
961 'done with scalar values' %
--> 962 self._constructor.__name__)
963
964 return self._combine(other, op)
ValueError: Simple arithmetic with SparsePanel can only be done with scalar values
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9265/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9265/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9266 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9266/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9266/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9266/events | https://github.com/pandas-dev/pandas/issues/9266 | 54,541,329 | MDU6SXNzdWU1NDU0MTMyOQ== | 9,266 | uin8 should be uint8 in io/parsers.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/2200240?v=4",
"events_url": "https://api.github.com/users/rmorgans/events{/privacy}",
"followers_url": "https://api.github.com/users/rmorgans/followers",
"following_url": "https://api.github.com/users/rmorgans/following{/other_user}",
"gists_url": "https://api.github.com/users/rmorgans/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmorgans",
"id": 2200240,
"login": "rmorgans",
"node_id": "MDQ6VXNlcjIyMDAyNDA=",
"organizations_url": "https://api.github.com/users/rmorgans/orgs",
"received_events_url": "https://api.github.com/users/rmorgans/received_events",
"repos_url": "https://api.github.com/users/rmorgans/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmorgans/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmorgans/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmorgans"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "5319e7",
"default": false,
"description": "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"
} | 8 | 2015-01-16T05:33:51Z | 2015-07-21T10:52:45Z | 2015-07-21T10:52:45Z | NONE | null | while using read_fwf I had a bug that had this line from parsers.py
https://github.com/pydata/pandas/blob/072e40b0b5beab36c2adda9e0bcbb26755e1928f/pandas/io/parsers.py#L989
in which there is a np.uin8 which I'm pretty sure should be a np.uint8
apologise if this has already been submitted - I did a search on uin8 and only got the offending line in the code.
I just fixed on my arch source code to keep working on my problem (I'm an engineer not a software guy!). I will try and find time for a patch and test (I failed on my last one)
CHeers
Rick
| {
"+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/9266/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9266/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9267 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9267/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9267/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9267/events | https://github.com/pandas-dev/pandas/issues/9267 | 54,551,700 | MDU6SXNzdWU1NDU1MTcwMA== | 9,267 | Appending with enlargment doesn't work for .ix in empty dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/2035205?v=4",
"events_url": "https://api.github.com/users/stathius/events{/privacy}",
"followers_url": "https://api.github.com/users/stathius/followers",
"following_url": "https://api.github.com/users/stathius/following{/other_user}",
"gists_url": "https://api.github.com/users/stathius/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stathius",
"id": 2035205,
"login": "stathius",
"node_id": "MDQ6VXNlcjIwMzUyMDU=",
"organizations_url": "https://api.github.com/users/stathius/orgs",
"received_events_url": "https://api.github.com/users/stathius/received_events",
"repos_url": "https://api.github.com/users/stathius/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stathius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stathius/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stathius"
} | [
{
"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 | 1 | 2015-01-16T08:38:18Z | 2015-01-16T12:31:26Z | 2015-01-16T12:31:26Z | NONE | null | Similar as https://github.com/pydata/pandas/issues/5226
Enlargment doesn't work for .ix on empty dataframe.
.loc works fine.
Affected version 0.15.2
```
df = pd.DataFrame(columns = ['a', 'b'])
df.ix[1] =[1, 1]
```
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-320-58384ba7155e> in <module>()
1 df = pd.DataFrame(columns = ['a', 'b'])
----> 2 df.ix[1] =[1, 1]
/usr/local/pr/anaconda/ipyNotebook/lib/python2.7/site-packages/pandas/core/indexing.pyc in __setitem__(self, key, value)
115 indexer = self._convert_tuple(key, is_setter=True)
116 else:
--> 117 indexer = self._convert_to_indexer(key, is_setter=True)
118
119 self._setitem_with_indexer(indexer, value)
/usr/local/pr/anaconda/ipyNotebook/lib/python2.7/site-packages/pandas/core/indexing.pyc in _convert_to_indexer(self, obj, axis, is_setter)
1010 if (obj >= self.obj.shape[axis] and
1011 not isinstance(labels, MultiIndex)):
-> 1012 raise ValueError("cannot set by positional indexing with "
1013 "enlargement")
1014
ValueError: cannot set by positional indexing with enlargement
```
Using .loc first:
```
df = pd.DataFrame(columns = ['a', 'b'])
df.loc[0] = [1, 1]
df.ix[1] =[1, 1]
```
everything is ok.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9267/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9267/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9268 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9268/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9268/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9268/events | https://github.com/pandas-dev/pandas/issues/9268 | 54,562,905 | MDU6SXNzdWU1NDU2MjkwNQ== | 9,268 | _repr_html_ creates extra scrollbar in ipython notebook | {
"avatar_url": "https://avatars.githubusercontent.com/u/5104441?v=4",
"events_url": "https://api.github.com/users/xLaszlo/events{/privacy}",
"followers_url": "https://api.github.com/users/xLaszlo/followers",
"following_url": "https://api.github.com/users/xLaszlo/following{/other_user}",
"gists_url": "https://api.github.com/users/xLaszlo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xLaszlo",
"id": 5104441,
"login": "xLaszlo",
"node_id": "MDQ6VXNlcjUxMDQ0NDE=",
"organizations_url": "https://api.github.com/users/xLaszlo/orgs",
"received_events_url": "https://api.github.com/users/xLaszlo/received_events",
"repos_url": "https://api.github.com/users/xLaszlo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xLaszlo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xLaszlo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xLaszlo"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
]
| closed | false | null | []
| {
"closed_at": "2015-06-13T17:49:05Z",
"closed_issues": 119,
"created_at": "2015-06-02T19:23:30Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2015-06-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/35",
"id": 1145853,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels",
"node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==",
"number": 35,
"open_issues": 0,
"state": "closed",
"title": "0.16.2",
"updated_at": "2016-07-22T08:55:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35"
} | 7 | 2015-01-16T10:54:43Z | 2016-07-04T14:06:05Z | 2016-07-04T14:05:55Z | NONE | null | This line: div style="max-height:1000px;max-width:1500px;overflow:auto;" is added to the output if the df is too large. This behaviour is handled in ipython anyway so should be removed or optional.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9268/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9268/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9269 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9269/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9269/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9269/events | https://github.com/pandas-dev/pandas/issues/9269 | 54,570,660 | MDU6SXNzdWU1NDU3MDY2MA== | 9,269 | adding new row to frame breaks types | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4",
"events_url": "https://api.github.com/users/behzadnouri/events{/privacy}",
"followers_url": "https://api.github.com/users/behzadnouri/followers",
"following_url": "https://api.github.com/users/behzadnouri/following{/other_user}",
"gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/behzadnouri",
"id": 1288998,
"login": "behzadnouri",
"node_id": "MDQ6VXNlcjEyODg5OTg=",
"organizations_url": "https://api.github.com/users/behzadnouri/orgs",
"received_events_url": "https://api.github.com/users/behzadnouri/received_events",
"repos_url": "https://api.github.com/users/behzadnouri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/behzadnouri"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 5 | 2015-01-16T12:30:52Z | 2016-09-30T20:42:23Z | 2016-09-30T20:42:14Z | CONTRIBUTOR | null | xref https://github.com/pydata/pandas/issues/8596
```
>>> df
a
0 1
>>> df.dtypes
a int64
dtype: object
>>> df.loc[1, 'a'] = 2
>>> df
a
0 1
1 2
>>> df.dtypes
a float64
dtype: object
```
in an intermediate step `nan` is inserted, and the data are casted to floats
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9269/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9269/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9270 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9270/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9270/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9270/events | https://github.com/pandas-dev/pandas/issues/9270 | 54,584,591 | MDU6SXNzdWU1NDU4NDU5MQ== | 9,270 | DatetimeIndex loses TZ awareness when pushed from / pulled to HDF5 | {
"avatar_url": "https://avatars.githubusercontent.com/u/9717992?v=4",
"events_url": "https://api.github.com/users/eoincondron/events{/privacy}",
"followers_url": "https://api.github.com/users/eoincondron/followers",
"following_url": "https://api.github.com/users/eoincondron/following{/other_user}",
"gists_url": "https://api.github.com/users/eoincondron/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eoincondron",
"id": 9717992,
"login": "eoincondron",
"node_id": "MDQ6VXNlcjk3MTc5OTI=",
"organizations_url": "https://api.github.com/users/eoincondron/orgs",
"received_events_url": "https://api.github.com/users/eoincondron/received_events",
"repos_url": "https://api.github.com/users/eoincondron/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eoincondron/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eoincondron/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eoincondron"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 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-01-16T15:03:21Z | 2015-01-16T15:11:02Z | 2015-01-16T15:08:32Z | NONE | null | I found that when retrieving a DataFrame which had a MultiIndex containing a DatetimeIndex from a HDFStore, the TZ awareness was somehow lost.
Here is a demonstration:
```
import datetime as dt
import pandas as pd
start, end = dt.datetime(2015, 1, 16, 8), dt.datetime(2015, 1, 16, 17)
times = pd.date_range(start, end, freq='60min', tz='US/Eastern')
mix = pd.MultiIndex.from_arrays([2*range(5), times])
df = pd.DataFrame(1, index= mix, columns =range(3))
df
0 1 2
0 2015-01-16 08:00:00-05:00 1 1 1
1 2015-01-16 09:00:00-05:00 1 1 1
2 2015-01-16 10:00:00-05:00 1 1 1
```
So far so good. Now push and pull from HDFStore:
```
store = pd.HDFStore('test')
store['test'] = df.swaplevel(0, 1)
store['test']
0 1 2
2015-01-16 13:00:00 0 1 1 1
2015-01-16 14:00:00 1 1 1 1
2015-01-16 15:00:00 2 1 1 1
store['test'].index.get_level_values(1).tz is None
True
```
The TZ awareness is gone. A minor issue but I thought I would bring it up. Note that this happens regardless of the order of the index levels and that there is no problem in the case of a single index.and
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9270/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9270/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9271 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9271/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9271/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9271/events | https://github.com/pandas-dev/pandas/pull/9271 | 54,585,363 | MDExOlB1bGxSZXF1ZXN0Mjc1MTEzODg= | 9,271 | TST: Remove tests using proprietary data | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "read_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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 2 | 2015-01-16T15:10:36Z | 2015-01-18T22:42:19Z | 2015-01-18T20:41:28Z | CONTRIBUTOR | null | Removes three tests that use proprietary data that is not available for testing.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9271/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9271/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9271.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9271",
"merged_at": "2015-01-18T20:41:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9271.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9271"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9272 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9272/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9272/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9272/events | https://github.com/pandas-dev/pandas/issues/9272 | 54,609,297 | MDU6SXNzdWU1NDYwOTI5Nw== | 9,272 | BUG: inconsistent constructors for sparse and dense objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/4383303?v=4",
"events_url": "https://api.github.com/users/wholmgren/events{/privacy}",
"followers_url": "https://api.github.com/users/wholmgren/followers",
"following_url": "https://api.github.com/users/wholmgren/following{/other_user}",
"gists_url": "https://api.github.com/users/wholmgren/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wholmgren",
"id": 4383303,
"login": "wholmgren",
"node_id": "MDQ6VXNlcjQzODMzMDM=",
"organizations_url": "https://api.github.com/users/wholmgren/orgs",
"received_events_url": "https://api.github.com/users/wholmgren/received_events",
"repos_url": "https://api.github.com/users/wholmgren/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wholmgren/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wholmgren/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wholmgren"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 2 | 2015-01-16T18:39:04Z | 2015-01-29T11:33:24Z | 2015-01-29T11:33:24Z | CONTRIBUTOR | null | Continuing on my recent sparse kick...
I appreciate the fact that `Series()`, `DataFrame()`, and `Panel()` all return empty versions of themselves. I think it's reasonable to expect that their sparse counterparts would behave the same way, but this is only the case for `SparseDataFrame()` (it's even [tested](https://github.com/pydata/pandas/blob/master/pandas/sparse/tests/test_sparse.py#L865)).
``` python
pd.SparseSeries()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-375-46c1881ac0a7> in <module>()
----> 1 pd.SparseSeries()
TypeError: __init__() missing 1 required positional argument: 'data'
```
and similar for `SparsePanel()`.
I can submit a PR to change this behavior.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9272/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9272/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9273 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9273/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9273/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9273/events | https://github.com/pandas-dev/pandas/issues/9273 | 54,609,947 | MDU6SXNzdWU1NDYwOTk0Nw== | 9,273 | pd.Timedelta constructor should accept nanoseconds attribute in the arguments | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 4 | 2015-01-16T18:45:17Z | 2015-01-19T03:17:20Z | 2015-01-19T03:17:20Z | CONTRIBUTOR | null | xref #9226
Noticing an inconsistency. pd.Timedelta doesn't allow nanoseconds in constructor but its components list till nanoseconds. Here is what I can reproduce. (used then current master on OS X 10.10.1)
Example:
<pre>
Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pandas.tslib import Timedelta
>>> td = Timedelta(nanoseconds=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/tslib.pyx", line 1723, in pandas.tslib.Timedelta.__new__ (pandas/tslib.c:29743)
raise ValueError("cannot construct a TimeDelta from the passed arguments, allowed keywords
are " [days, seconds, microseconds, milliseconds, minutes, hours, weeks]
>>> td=Timedelta(seconds=1)
>>> td.components._fields
('days', 'hours', 'minutes', 'seconds', 'milliseconds', 'microseconds', 'nanoseconds')
</pre>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9273/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9273/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9274 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9274/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9274/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9274/events | https://github.com/pandas-dev/pandas/issues/9274 | 54,619,704 | MDU6SXNzdWU1NDYxOTcwNA== | 9,274 | dataframe.plot accepts undocumented 'by=' keyword but ignores it. | {
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-01-16T20:13:41Z | 2015-03-05T23:50:24Z | null | CONTRIBUTOR | null | Maybe this is a request for enhancement, or documentation of a bug - I don't know.
A tutorial showed that `DataFrame.boxplot()` can take a `by=` keyword to produced plot stratified by the values in one column. I naively assumed I could apply that to other plots as well. `DataFrame.plot()` accepts `by=` but seems to silently ignores it. This seems to be an [undocumented](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.plot.html#pandas.DataFrame.plot) keyword for `DataFrame.plot()`.
Is this intentional? Why not include the groupby functionality from `boxplot` into `plot` so it can do something reasonable with all the other plot types as well? If not, then why does `plot` accept the `by=` keyword?
Example code below,
```
import pandas as pd
pd.show_versions()
plt.rcParams.update(pd.tools.plotting.mpl_stylesheet)
# taken from http://pandas.pydata.org/pandas-docs/stable/visualization.html#box-plots
df = pd.DataFrame(rand(10,2), columns=['Col1', 'Col2'] )
df['X'] = pd.Series(['A','A','A','A','A','B','B','B','B','B'])
plt.figure();
print(df)
# boxplot produces two subplots segregated by the values in X
df.boxplot(by='X')
# Other kinds of plots seem to silently ignore 'by='
df.plot(kind='box', by='X')
# Other kinds of plots seem to silently ignore 'by='
df.plot(kind='scatter', x=0, y=1, by='X')
# Other kinds of plots seem to silently ignore 'by='
df.plot(kind='line', by='X')
```
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-32-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: 0.20.1post0
numpy: 1.9.1
scipy: 0.13.3
statsmodels: 0.6.0
IPython: 2.3.1
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.0
pytz: 2014.10
bottleneck: None
tables: 3.1.1
numexpr: 2.2.2
matplotlib: 1.4.2
openpyxl: 1.8.6
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.3.3
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.9
apiclient: None
rpy2: 2.5.2
sqlalchemy: 0.8.4
pymysql: None
psycopg2: None
Col1 Col2 X
0 0.561433 0.329668 A
1 0.502967 0.111894 A
2 0.607194 0.565945 A
3 0.006764 0.617442 A
4 0.912123 0.790524 A
5 0.992081 0.958802 B
6 0.791964 0.285251 B
7 0.624917 0.478094 B
8 0.195675 0.382317 B
9 0.053874 0.451648 B
```




| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9274/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9274/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9275 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9275/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9275/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9275/events | https://github.com/pandas-dev/pandas/issues/9275 | 54,619,769 | MDU6SXNzdWU1NDYxOTc2OQ== | 9,275 | ENH/DOC: catalog/raise NotImplemented errors for sparse structure methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/4383303?v=4",
"events_url": "https://api.github.com/users/wholmgren/events{/privacy}",
"followers_url": "https://api.github.com/users/wholmgren/followers",
"following_url": "https://api.github.com/users/wholmgren/following{/other_user}",
"gists_url": "https://api.github.com/users/wholmgren/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wholmgren",
"id": 4383303,
"login": "wholmgren",
"node_id": "MDQ6VXNlcjQzODMzMDM=",
"organizations_url": "https://api.github.com/users/wholmgren/orgs",
"received_events_url": "https://api.github.com/users/wholmgren/received_events",
"repos_url": "https://api.github.com/users/wholmgren/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wholmgren/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wholmgren/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wholmgren"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2015-01-16T20:14:17Z | 2019-09-18T14:02:17Z | 2019-09-18T14:02:17Z | CONTRIBUTOR | null | 1. Catalog and document all of the methods that don't currently work on sparse structures.
2. Raise NotImplemented exceptions for these methods.
Would be happy for suggestions for how to do this systematically.
Originally suggested by @jreback in #9265.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9275/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9275/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9276 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9276/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9276/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9276/events | https://github.com/pandas-dev/pandas/issues/9276 | 54,622,173 | MDU6SXNzdWU1NDYyMjE3Mw== | 9,276 | BUG: common.is_hashable returns False for np.float64 on Python 3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 0 | 2015-01-16T20:38:34Z | 2015-02-16T21:53:33Z | 2015-02-16T21:53:33Z | MEMBER | null | xref #8929
xref #9193
Here are [some test results](https://travis-ci.org/shoyer/pandas/builds/47184451) on Travis-CI illustrating the issue and my [commit](https://github.com/shoyer/pandas/commit/f8eb1c687164274a6b9a9640e565de60293ad2c1)
Any ideas for the fix? This is quite likely a numpy bug, but it's one we need to work around. The simplest thing would be revert back to just calling `hash`, but I expect that would cause some other test cases to fail.
CC @aevri
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9276/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9276/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9277 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9277/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9277/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9277/events | https://github.com/pandas-dev/pandas/pull/9277 | 54,627,689 | MDExOlB1bGxSZXF1ZXN0Mjc1MzgxNzY= | 9,277 | allow for empty SparseSeries SparsePanel constructors | {
"avatar_url": "https://avatars.githubusercontent.com/u/4383303?v=4",
"events_url": "https://api.github.com/users/wholmgren/events{/privacy}",
"followers_url": "https://api.github.com/users/wholmgren/followers",
"following_url": "https://api.github.com/users/wholmgren/following{/other_user}",
"gists_url": "https://api.github.com/users/wholmgren/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wholmgren",
"id": 4383303,
"login": "wholmgren",
"node_id": "MDQ6VXNlcjQzODMzMDM=",
"organizations_url": "https://api.github.com/users/wholmgren/orgs",
"received_events_url": "https://api.github.com/users/wholmgren/received_events",
"repos_url": "https://api.github.com/users/wholmgren/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wholmgren/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wholmgren/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wholmgren"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-16T21:34:05Z | 2015-01-29T11:33:13Z | 2015-01-29T11:33:13Z | CONTRIBUTOR | null | Closes #9272.
Note that my solution is to provide a default `data=[]` for SparseSeries and `frames={}` for SparsePanel. This differs from the dense implementations that have `None` defaults that are then changed to the above. Doesn't seem like a big deal to me, but I can do that here if 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/9277/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9277/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9277.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9277",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9277.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9277"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9278 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9278/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9278/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9278/events | https://github.com/pandas-dev/pandas/pull/9278 | 54,647,399 | MDExOlB1bGxSZXF1ZXN0Mjc1NTA0MTY= | 9,278 | BUG: Subplotting boxplot shows unnecessary warnings | {
"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"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 4 | 2015-01-17T02:24:35Z | 2015-01-19T14:37:26Z | 2015-01-18T13:24:08Z | MEMBER | null | Related to #8877 and 80a730c93717e7fc01ae2f880109bc752519cecf
Because `legend=True` is default, `DataFrame.plot(kind='box', subplots=True)` shows unnecessary warnings.
```
# OK, no legend / no warnings
df.plot(kind='box')
```
```
# NG: no legend and warnings
df.plot(kind='box', subplots=True)
# UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.
# warnings.warn("No labelled objects found. "
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9278/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9278/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9278.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9278",
"merged_at": "2015-01-18T13:24:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9278.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9278"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9279 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9279/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9279/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9279/events | https://github.com/pandas-dev/pandas/issues/9279 | 54,649,104 | MDU6SXNzdWU1NDY0OTEwNA== | 9,279 | ENH: Allow function in Series/DataFrame get syntax | {
"avatar_url": "https://avatars.githubusercontent.com/u/2815794?v=4",
"events_url": "https://api.github.com/users/soaxelbrooke/events{/privacy}",
"followers_url": "https://api.github.com/users/soaxelbrooke/followers",
"following_url": "https://api.github.com/users/soaxelbrooke/following{/other_user}",
"gists_url": "https://api.github.com/users/soaxelbrooke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/soaxelbrooke",
"id": 2815794,
"login": "soaxelbrooke",
"node_id": "MDQ6VXNlcjI4MTU3OTQ=",
"organizations_url": "https://api.github.com/users/soaxelbrooke/orgs",
"received_events_url": "https://api.github.com/users/soaxelbrooke/received_events",
"repos_url": "https://api.github.com/users/soaxelbrooke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/soaxelbrooke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/soaxelbrooke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/soaxelbrooke"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 1 | 2015-01-17T03:31:05Z | 2015-01-21T19:20:27Z | 2015-01-21T19:20:27Z | NONE | null | Currently, pandas makes clever use of `__getitem__` to filter/mask Series and DataFrame. At times, the current abstraction is leaky - for instance, `df[18 < df['age'] < 25]` would raise an exception, even though cascaded compare symbols in that manner are legal Python syntax.
It would be awesome to also be able to pass in a function to the `__getitem__` function that would act as a filter. This would allow users to use all of Python's language features for filtering while still maintaining the brevity intended for these statements.
For example:
``` python
df[lambda row: 18 < row['age'] < 25]
```
This would also allow lengthier filters to be defined outside of the getter square brackets:
``` python
def age_filter(row):
return 18 < row['age'] < 25 if row['country'] == 'USA' else row['age'] > 13
df[age_filter]
```
Functions as viable filters would also allow for chaining of filter functions without creating multiple intermediary DataFrames or Series, making optimization of cascaded filters much easier.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9279/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9279/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9280 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9280/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9280/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9280/events | https://github.com/pandas-dev/pandas/issues/9280 | 54,650,540 | MDU6SXNzdWU1NDY1MDU0MA== | 9,280 | BUG: where incorrectly coerces to str | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 1 | 2015-01-17T04:41:29Z | 2015-01-18T20:36:40Z | 2015-01-18T20:36:40Z | MEMBER | null | Replacing some numeric values using `where` affects to dtype unrelated to the condition.
```
s = pd.Series(np.random.randn(5))
u = s.where(s<0, 'X', axis=1)
u
#0 -1.01421184508
#1 X
#2 X
#3 -0.228117839063
#4 -0.393903873887
# dtype: object
```
The result looks OK, but internally coerced to all `str`.
```
u.apply(type)
#0 <type 'str'>
#1 <type 'str'>
#2 <type 'str'>
#3 <type 'str'>
#4 <type 'str'>
# 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/9280/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9280/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9281 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9281/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9281/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9281/events | https://github.com/pandas-dev/pandas/issues/9281 | 54,653,549 | MDU6SXNzdWU1NDY1MzU0OQ== | 9,281 | test.sh shows couple of failures on OSX 10.10.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | []
| closed | false | null | []
| null | 3 | 2015-01-17T06:52:31Z | 2015-01-19T12:14:11Z | 2015-01-19T12:14:11Z | CONTRIBUTOR | null | Not sure if this is reproducible by others in their enviroment/platform but here is what I am seeing on my machine.
---
FAIL: test_now (pandas.tseries.tests.test_tslib.TestTimestamp)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tvyomkesh/pandas/pandas/tseries/tests/test_tslib.py", line 343, in test_now
self.assertTrue((ts_from_string_tz.tz_localize(None) - ts_from_string) < delta)
AssertionError: False is not true
---
FAIL: test_today (pandas.tseries.tests.test_tslib.TestTimestamp)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tvyomkesh/pandas/pandas/tseries/tests/test_tslib.py", line 359, in test_today
self.assertTrue((ts_from_string_tz.tz_localize(None) - ts_from_string) < delta)
AssertionError: False is not true
---
Ran 7309 tests in 500.577s
FAILED (SKIP=468, failures=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/9281/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9281/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9282 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9282/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9282/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9282/events | https://github.com/pandas-dev/pandas/pull/9282 | 54,657,405 | MDExOlB1bGxSZXF1ZXN0Mjc1NTQ5NjY= | 9,282 | ENH: StringMethods supports is_xxx methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 7 | 2015-01-17T10:07:19Z | 2015-01-29T23:28:37Z | 2015-01-29T11:10:35Z | MEMBER | null | Derived from #9111.
Add following methods to be compat with standard `str`.
- StringMethods.isalnum
- StringMethods.isalpha
- StringMethods.isdigit
- StringMethods.isspace
- StringMethods.islower
- StringMethods.isupper
- StringMethods.istitle
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9282/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9282/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9282.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9282",
"merged_at": "2015-01-29T11:10:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9282.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9282"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9283 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9283/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9283/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9283/events | https://github.com/pandas-dev/pandas/pull/9283 | 54,658,016 | MDExOlB1bGxSZXF1ZXN0Mjc1NTUyMTI= | 9,283 | BUG: where coerces numeric to str incorrectly | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 2 | 2015-01-17T10:35:48Z | 2015-01-19T14:31:31Z | 2015-01-18T20:36:40Z | MEMBER | null | Closes #9280.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9283/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9283/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9283.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9283",
"merged_at": "2015-01-18T20:36:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9283.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9283"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9284 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9284/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9284/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9284/events | https://github.com/pandas-dev/pandas/issues/9284 | 54,662,962 | MDU6SXNzdWU1NDY2Mjk2Mg== | 9,284 | Adding tseries.offsets.Nano to other offsets throws error | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 0 | 2015-01-17T14:17:51Z | 2015-01-25T18:41:40Z | 2015-01-25T18:41:40Z | CONTRIBUTOR | null | xref #9226
<pre>
In [11]: from pandas.tseries import offsets
In [12]: t1 = offsets.Nano(100)
In [13]: t2 = offsets.Micro(1)
In [14]: t3 = t1 + t2
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-14-4ee6d99529e1> in <module>()
----> 1 t3 = t1 + t2
/Users/tvyomkesh/pandas/pandas/tseries/offsets.pyc in __add__(self, other)
2025 return type(self)(self.n + other.n)
2026 else:
-> 2027 return _delta_to_tick(self.delta + other.delta)
2028 try:
2029 return self.apply(other)
TypeError: ufunc add cannot use operands with types dtype('<m8[ns]') and dtype('O')
</pre>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9284/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9284/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9285 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9285/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9285/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9285/events | https://github.com/pandas-dev/pandas/pull/9285 | 54,666,494 | MDExOlB1bGxSZXF1ZXN0Mjc1NTg2NTQ= | 9,285 | ENH: Corrects to_html print spacing GH4987 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4166648?v=4",
"events_url": "https://api.github.com/users/clham/events{/privacy}",
"followers_url": "https://api.github.com/users/clham/followers",
"following_url": "https://api.github.com/users/clham/following{/other_user}",
"gists_url": "https://api.github.com/users/clham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/clham",
"id": 4166648,
"login": "clham",
"node_id": "MDQ6VXNlcjQxNjY2NDg=",
"organizations_url": "https://api.github.com/users/clham/orgs",
"received_events_url": "https://api.github.com/users/clham/received_events",
"repos_url": "https://api.github.com/users/clham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/clham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/clham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/clham"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 10 | 2015-01-17T16:32:01Z | 2015-03-23T13:55:59Z | 2015-03-06T23:06:34Z | CONTRIBUTOR | null | Closes #4987
This is my first non-doc PR, so please bare with me. Is it worth my while to go through the tests and standarize all of the test HTML to all block-strings, or is the mix of individual lines/blocks ok?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9285/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9285/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9285.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9285",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9285.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9285"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9286 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9286/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9286/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9286/events | https://github.com/pandas-dev/pandas/issues/9286 | 54,669,252 | MDU6SXNzdWU1NDY2OTI1Mg== | 9,286 | Pandas returns 0/y=inf, even when y is a non-zero dataframe or series. | {
"avatar_url": "https://avatars.githubusercontent.com/u/10504477?v=4",
"events_url": "https://api.github.com/users/JohnNapier/events{/privacy}",
"followers_url": "https://api.github.com/users/JohnNapier/followers",
"following_url": "https://api.github.com/users/JohnNapier/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnNapier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JohnNapier",
"id": 10504477,
"login": "JohnNapier",
"node_id": "MDQ6VXNlcjEwNTA0NDc3",
"organizations_url": "https://api.github.com/users/JohnNapier/orgs",
"received_events_url": "https://api.github.com/users/JohnNapier/received_events",
"repos_url": "https://api.github.com/users/JohnNapier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JohnNapier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnNapier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JohnNapier"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 5 | 2015-01-17T17:54:36Z | 2015-01-17T19:07:01Z | 2015-01-17T18:01:59Z | NONE | null | Pandas returns the wrong result for the operation **0/y** where **y** is a dataframe or series of non-zero values:
``` python
import pandas as pd
y=pd.Series(range(1,10))
print 0/y # wrong
```
However, this operation would work:
``` python
for i in y:print 0/i # correct
```
I'm using Pandas 0.15.2-1.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9286/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9286/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9287 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9287/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9287/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9287/events | https://github.com/pandas-dev/pandas/issues/9287 | 54,679,358 | MDU6SXNzdWU1NDY3OTM1OA== | 9,287 | Dataframe creation: Specifying dtypes with a dictionary | {
"avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4",
"events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}",
"followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers",
"following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}",
"gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amelio-vazquez-reina",
"id": 1993919,
"login": "amelio-vazquez-reina",
"node_id": "MDQ6VXNlcjE5OTM5MTk=",
"organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs",
"received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events",
"repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amelio-vazquez-reina"
} | [
{
"color": "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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| null | 3 | 2015-01-17T23:16:49Z | 2020-09-23T16:15:29Z | 2015-01-17T23:30:29Z | CONTRIBUTOR | null | Apologies if this feature has been suggested before. Many of the IO functions (e.g. `read_csv`) allow use to easily specify the format for each column using a dictionary. As far as I understand, this is **not**
possible with the regular dataframe construction, e.g:
``` python
df = pd.DataFrame(data=data, columns=columns, dtypes={'colname1': str, 'colname2': np.int})
```
**Even better**, it would be great if one could change the `dtypes` for the dataframe columns using a similar contruction, e.g.:
``` python
df.change_types({'colname1': str, 'colname2': np.int})
```
Is anything like this planned for already?
| {
"+1": 22,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 22,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9287/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9287/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9288 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9288/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9288/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9288/events | https://github.com/pandas-dev/pandas/issues/9288 | 54,684,235 | MDU6SXNzdWU1NDY4NDIzNQ== | 9,288 | Bug? selecting a column for GroupBy | {
"avatar_url": "https://avatars.githubusercontent.com/u/136349?v=4",
"events_url": "https://api.github.com/users/qingpeng/events{/privacy}",
"followers_url": "https://api.github.com/users/qingpeng/followers",
"following_url": "https://api.github.com/users/qingpeng/following{/other_user}",
"gists_url": "https://api.github.com/users/qingpeng/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qingpeng",
"id": 136349,
"login": "qingpeng",
"node_id": "MDQ6VXNlcjEzNjM0OQ==",
"organizations_url": "https://api.github.com/users/qingpeng/orgs",
"received_events_url": "https://api.github.com/users/qingpeng/received_events",
"repos_url": "https://api.github.com/users/qingpeng/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qingpeng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qingpeng/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qingpeng"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 1 | 2015-01-18T02:54:44Z | 2015-01-18T20:24:56Z | 2015-01-18T20:24:45Z | NONE | null | I am reading the book "Python for Data Analysis" and try some examples. But I found something strange.
On page 256, it says:
Quote:
Indexing a GroupBy object created from a DataFrame with a column name or array of column names has the effect of selecting those columns for aggregation. This means that:
```
df.groupby('key1')['data1']
df.groupby('key1')[['data2']]
```
are syntactic sugar for:
```
df['data1'].groupby(df['key1'])
df[['data2']].groupby(df['key1'])
```
I think this makes sense, but when I tried a testing code, it didn't work as expected.
```
df.groupby('key1')[['data2']]
```
Here, it still returns the whole DataFrame. It does not perform the same as
```
df[['data2']].groupby(df['key1'])
```
I used "for" loop to iterate the object, maybe this is the reason?
Testing code:
```
df = DataFrame({'key1' : ['a', 'a', 'b', 'b', 'a'],
'key2' : ['one', 'two', 'one', 'two', 'one'],
'data1' : np.random.randn(5),
'data2' : np.random.randn(5)})
df
```
```
Out[5]:
data1 data2 key1 key2
0 0.894564 1.050070 a one
1 0.688548 -0.740128 a two
2 0.196103 0.041584 b one
3 0.413136 2.180567 b two
4 -0.489973 -0.274152 a one
```
```
for key, value in df[['data2']].groupby(df['key1']):
print key
print value
output:
a
data2
0 1.050070
1 -0.740128
4 -0.274152
b
data2
2 0.041584
3 2.180567
```
```
for key, value in df.groupby('key1')[['data2']]:
print key
print value
output:
a
data1 data2 key1 key2
0 0.894564 1.050070 a one
1 0.688548 -0.740128 a two
4 -0.489973 -0.274152 a one
b
data1 data2 key1 key2
2 0.196103 0.041584 b one
3 0.413136 2.180567 b two
```
Environment:
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Darwin
OS-release: 14.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: 0.19.2
numpy: 1.8.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.0.0
sphinx: 1.2.2
patsy: 0.2.0
dateutil: 2.2
pytz: 2014.9
bottleneck: None
tables: 2.4.0
numexpr: 2.2.2
matplotlib: 1.4.0
openpyxl: 1.8.5
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.2.3
bs4: 4.3.2
html5lib: 0.95-dev
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.8.3
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9288/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9288/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9289 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9289/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9289/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9289/events | https://github.com/pandas-dev/pandas/pull/9289 | 54,687,292 | MDExOlB1bGxSZXF1ZXN0Mjc1Njc0MDM= | 9,289 | GH 9273: Timedelta constructor should accept nanoseconds keyword. | {
"avatar_url": "https://avatars.githubusercontent.com/u/911431?v=4",
"events_url": "https://api.github.com/users/tvyomkesh/events{/privacy}",
"followers_url": "https://api.github.com/users/tvyomkesh/followers",
"following_url": "https://api.github.com/users/tvyomkesh/following{/other_user}",
"gists_url": "https://api.github.com/users/tvyomkesh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tvyomkesh",
"id": 911431,
"login": "tvyomkesh",
"node_id": "MDQ6VXNlcjkxMTQzMQ==",
"organizations_url": "https://api.github.com/users/tvyomkesh/orgs",
"received_events_url": "https://api.github.com/users/tvyomkesh/received_events",
"repos_url": "https://api.github.com/users/tvyomkesh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tvyomkesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tvyomkesh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tvyomkesh"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2015-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-18T05:56:43Z | 2015-01-19T06:47:47Z | 2015-01-19T03:17:20Z | CONTRIBUTOR | null | closes #9273
This patch adds nanoseconds keyword support in Timedelta constructor.
<pre>
In [1]: from pandas import Timedelta
In [2]: td = Timedelta(nanoseconds=1)
In [3]: td1 = Timedelta(microseconds=1)
In [4]: td.components
Out[4]: Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=0, microseconds=0, nanoseconds=1)
In [5]: (td + td1).components
Out[5]: Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=0, microseconds=1, nanoseconds=1)
</pre>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9289/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9289/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9289.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9289",
"merged_at": "2015-01-19T03:17:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9289.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9289"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9290 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9290/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9290/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9290/events | https://github.com/pandas-dev/pandas/issues/9290 | 54,692,632 | MDU6SXNzdWU1NDY5MjYzMg== | 9,290 | "certificate verify failed" errors on macports | {
"avatar_url": "https://avatars.githubusercontent.com/u/67612?v=4",
"events_url": "https://api.github.com/users/matthew-brett/events{/privacy}",
"followers_url": "https://api.github.com/users/matthew-brett/followers",
"following_url": "https://api.github.com/users/matthew-brett/following{/other_user}",
"gists_url": "https://api.github.com/users/matthew-brett/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthew-brett",
"id": 67612,
"login": "matthew-brett",
"node_id": "MDQ6VXNlcjY3NjEy",
"organizations_url": "https://api.github.com/users/matthew-brett/orgs",
"received_events_url": "https://api.github.com/users/matthew-brett/received_events",
"repos_url": "https://api.github.com/users/matthew-brett/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthew-brett/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthew-brett/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthew-brett"
} | []
| closed | false | null | []
| null | 3 | 2015-01-18T10:37:35Z | 2015-01-20T00:25:21Z | 2015-01-20T00:25:21Z | CONTRIBUTOR | null | Sorry for this sketch of a bug report, but I am seeing these errors with Macports Python 2.7 and the current pandas 0.15.2 release:
https://travis-ci.org/MacPython/scipy-stack-osx-testing/jobs/47389975#L757
Here's an example error:
```
======================================================================
ERROR: test_url (pandas.io.tests.test_json.test_pandas.TestPandasContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/util/testing.py", line 1441, in wrapper
return t(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/tests/test_json/test_pandas.py", line 599, in test_url
result = read_json(url, convert_dates=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/json.py", line 174, in read_json
filepath_or_buffer, _ = get_filepath_or_buffer(path_or_buf)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/io/common.py", line 118, in get_filepath_or_buffer
req = _urlopen(str(filepath_or_buffer))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
```
No such errors for Python 3:
https://travis-ci.org/MacPython/scipy-stack-osx-testing/jobs/47389977
Is this a bug in Macports Python or Pandas?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9290/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9290/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9291 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9291/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9291/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9291/events | https://github.com/pandas-dev/pandas/pull/9291 | 54,696,655 | MDExOlB1bGxSZXF1ZXN0Mjc1NzEzMTk= | 9,291 | BUG: Adding nano offset raises TypeError | {
"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": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 5 | 2015-01-18T13:34:15Z | 2015-01-31T02:57:19Z | 2015-01-25T18:41:40Z | MEMBER | null | Closes #9284.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9291/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9291/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9291.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9291",
"merged_at": "2015-01-25T18:41:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9291.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9291"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9292 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9292/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9292/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9292/events | https://github.com/pandas-dev/pandas/pull/9292 | 54,714,642 | MDExOlB1bGxSZXF1ZXN0Mjc1NzkwODU= | 9,292 | TST: tests for GH4862, GH7401, GH7403, GH7405 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4",
"events_url": "https://api.github.com/users/behzadnouri/events{/privacy}",
"followers_url": "https://api.github.com/users/behzadnouri/followers",
"following_url": "https://api.github.com/users/behzadnouri/following{/other_user}",
"gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/behzadnouri",
"id": 1288998,
"login": "behzadnouri",
"node_id": "MDQ6VXNlcjEyODg5OTg=",
"organizations_url": "https://api.github.com/users/behzadnouri/orgs",
"received_events_url": "https://api.github.com/users/behzadnouri/received_events",
"repos_url": "https://api.github.com/users/behzadnouri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/behzadnouri"
} | [
{
"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": "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": "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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 4 | 2015-01-18T23:28:06Z | 2015-02-13T01:59:02Z | 2015-01-26T01:29:07Z | CONTRIBUTOR | null | closes https://github.com/pydata/pandas/issues/4862
closes https://github.com/pydata/pandas/issues/7401
closes https://github.com/pydata/pandas/issues/7403
closes https://github.com/pydata/pandas/issues/7405
minor code change to https://github.com/pydata/pandas/pull/9061; otherwise only tests. the code change is to avoid https://github.com/pydata/pandas/issues/9170 issue.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9292/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9292/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9292.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9292",
"merged_at": "2015-01-26T01:29:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9292.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9292"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9293 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9293/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9293/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9293/events | https://github.com/pandas-dev/pandas/pull/9293 | 54,725,910 | MDExOlB1bGxSZXF1ZXN0Mjc1ODQ5MjQ= | 9,293 | Update plotting.py (issue #2916) | {
"avatar_url": "https://avatars.githubusercontent.com/u/809999?v=4",
"events_url": "https://api.github.com/users/yyl/events{/privacy}",
"followers_url": "https://api.github.com/users/yyl/followers",
"following_url": "https://api.github.com/users/yyl/following{/other_user}",
"gists_url": "https://api.github.com/users/yyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yyl",
"id": 809999,
"login": "yyl",
"node_id": "MDQ6VXNlcjgwOTk5OQ==",
"organizations_url": "https://api.github.com/users/yyl/orgs",
"received_events_url": "https://api.github.com/users/yyl/received_events",
"repos_url": "https://api.github.com/users/yyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yyl"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 1 | 2015-01-19T04:45:17Z | 2015-01-19T09:33:44Z | 2015-01-19T09:33:27Z | CONTRIBUTOR | null | Added ax docstring.
Address issue generated by `scripts/find_undoc_args.py`:
[+2892 tools/plotting.py boxplot_frame_groupby()](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L2892): Missing[1/9]=['ax']
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9293/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9293/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9293.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9293",
"merged_at": "2015-01-19T09:33:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9293.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9293"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9294 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9294/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9294/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9294/events | https://github.com/pandas-dev/pandas/issues/9294 | 54,740,295 | MDU6SXNzdWU1NDc0MDI5NQ== | 9,294 | csv parsing is too restrictive | {
"avatar_url": "https://avatars.githubusercontent.com/u/987487?v=4",
"events_url": "https://api.github.com/users/kousu/events{/privacy}",
"followers_url": "https://api.github.com/users/kousu/followers",
"following_url": "https://api.github.com/users/kousu/following{/other_user}",
"gists_url": "https://api.github.com/users/kousu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kousu",
"id": 987487,
"login": "kousu",
"node_id": "MDQ6VXNlcjk4NzQ4Nw==",
"organizations_url": "https://api.github.com/users/kousu/orgs",
"received_events_url": "https://api.github.com/users/kousu/received_events",
"repos_url": "https://api.github.com/users/kousu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kousu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kousu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kousu"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| null | 9 | 2015-01-19T09:08:03Z | 2017-04-26T15:19:31Z | 2015-01-19T12:20:08Z | NONE | null | On this csv file:
```
DecisionM,IntelligentM,freq,total
0, 5, 9, 20
0, 6, 21,33
0, 7, 35,65
0, 8, 35,83
0, 9, 14,41
0, 10, 10,26
1, 5, 11,20
1, 6, 12,33
1, 7, 30,65
1, 8, 48,83
1, 9, 27, 41,,
1, 10, 16, 26
```
`pandas.read_csv()` gives me
```
---------------------------------------------------------------------------
CParserError Traceback (most recent call last)
<ipython-input-9-28b9c031f12d> in <module>()
----> 1 pandas.read_csv("speeddating.csv")
/usr/lib/python3.4/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, na_fvalues, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines)
463 skip_blank_lines=skip_blank_lines)
464
--> 465 return _read(filepath_or_buffer, kwds)
466
467 parser_f.__name__ = name
/usr/lib/python3.4/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
249 return parser
250
--> 251 return parser.read()
252
253 _parser_defaults = {
/usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows)
708 raise ValueError('skip_footer not supported for iteration')
709
--> 710 ret = self._engine.read(nrows)
711
712 if self.options.get('as_recarray'):
/usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows)
1157
1158 try:
-> 1159 data = self._reader.read(nrows)
1160 except StopIteration:
1161 if nrows is None:
/usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader.read (pandas/parser.c:7403)()
/usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_low_memory (pandas/parser.c:7643)()
/usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_rows (pandas/parser.c:8265)()
/usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:8139)()
/usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.raise_parser_error (pandas/parser.c:20776)()
CParserError: Error tokenizing data. C error: Expected 4 fields in line 12, saw 6
```
This seems odd to me. There's nothing in those fields to worry about anyway, they can just be dropped. Even if there was data there, if it doesn't have a column to go with it should be dropped too. Lots of csv files are messy like this; that's basically why they're used all the time.
I am on pandas '0.15.2' and Python3
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9294/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9294/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9295 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9295/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9295/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9295/events | https://github.com/pandas-dev/pandas/issues/9295 | 54,740,611 | MDU6SXNzdWU1NDc0MDYxMQ== | 9,295 | csv parsing gets confused on first line commas | {
"avatar_url": "https://avatars.githubusercontent.com/u/987487?v=4",
"events_url": "https://api.github.com/users/kousu/events{/privacy}",
"followers_url": "https://api.github.com/users/kousu/followers",
"following_url": "https://api.github.com/users/kousu/following{/other_user}",
"gists_url": "https://api.github.com/users/kousu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kousu",
"id": 987487,
"login": "kousu",
"node_id": "MDQ6VXNlcjk4NzQ4Nw==",
"organizations_url": "https://api.github.com/users/kousu/orgs",
"received_events_url": "https://api.github.com/users/kousu/received_events",
"repos_url": "https://api.github.com/users/kousu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kousu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kousu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kousu"
} | [
{
"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 | 2 | 2015-01-19T09:12:01Z | 2015-01-19T12:22:03Z | 2015-01-19T12:21:52Z | NONE | null | This csv file loads fine:
```
DecisionM,IntelligentM,freq,total
0, 5, 9, 20
0, 6, 21,33
0, 7, 35,65
0, 8, 35,83
0, 9, 14,41
0, 10, 10,26
1, 5, 11,20
1, 6, 12,33
1, 7, 30,65
1, 8, 48,83
1, 9, 27, 41
1, 10, 16, 26
```
```
In [11]: pandas.read_csv("speeddating.csv")
Out[11]:
DecisionM IntelligentM freq total
0 0 5 9 20
1 0 6 21 33
2 0 7 35 65
3 0 8 35 83
4 0 9 14 41
5 0 10 10 26
6 1 5 11 20
7 1 6 12 33
8 1 7 30 65
9 1 8 48 83
10 1 9 27 41
11 1 10 16 26
In [12]:
```
A small tweak causes the dataset to be silently corrupted:
```
DecisionM,IntelligentM,freq,total
0, 5, 9, 20,
0, 6, 21,33
0, 7, 35,65
0, 8, 35,83
0, 9, 14,41
0, 10, 10,26
1, 5, 11,20
1, 6, 12,33
1, 7, 30,65
1, 8, 48,83
1, 9, 27, 41
1, 10, 16, 26
```
```
In [10]: pandas.read_csv("speeddating.csv")
Out[10]:
DecisionM IntelligentM freq total
0 5 9 20 NaN
0 6 21 33 NaN
0 7 35 65 NaN
0 8 35 83 NaN
0 9 14 41 NaN
0 10 10 26 NaN
1 5 11 20 NaN
1 6 12 33 NaN
1 7 30 65 NaN
1 8 48 83 NaN
1 9 27 41 NaN
1 10 16 26 NaN
```
Notice how every column is shifted over by one. I'm confused about this in light of #9294: shouldn't it just die?
Putting the extra comma on the second row causes #9294 .
I'm on Pandas '0.15.2' on Python3 on ArchLinux.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9295/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9295/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9296 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9296/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9296/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9296/events | https://github.com/pandas-dev/pandas/pull/9296 | 54,741,761 | MDExOlB1bGxSZXF1ZXN0Mjc1OTM2MTY= | 9,296 | BUG: Fixes #9281: fixes to tseries.tests.test_tslib.TestTimestamp | {
"avatar_url": "https://avatars.githubusercontent.com/u/6614695?v=4",
"events_url": "https://api.github.com/users/Garrett-R/events{/privacy}",
"followers_url": "https://api.github.com/users/Garrett-R/followers",
"following_url": "https://api.github.com/users/Garrett-R/following{/other_user}",
"gists_url": "https://api.github.com/users/Garrett-R/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Garrett-R",
"id": 6614695,
"login": "Garrett-R",
"node_id": "MDQ6VXNlcjY2MTQ2OTU=",
"organizations_url": "https://api.github.com/users/Garrett-R/orgs",
"received_events_url": "https://api.github.com/users/Garrett-R/received_events",
"repos_url": "https://api.github.com/users/Garrett-R/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Garrett-R/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Garrett-R/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Garrett-R"
} | [
{
"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-03-23T10:50:37Z",
"closed_issues": 400,
"created_at": "2014-02-14T03:31:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.15 of course!",
"due_on": "2015-03-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/25",
"id": 569113,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels",
"node_id": "MDk6TWlsZXN0b25lNTY5MTEz",
"number": 25,
"open_issues": 0,
"state": "closed",
"title": "0.16.0",
"updated_at": "2017-08-24T09:17:49Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25"
} | 3 | 2015-01-19T09:26:05Z | 2015-01-19T19:32:00Z | 2015-01-19T12:14:11Z | CONTRIBUTOR | null | closes #9281
The last test of both test_now and test_today was passing for anyone with a timezone
of UTC-5 or greater (but failed, for example, in US/Pacific). The test was not
testing what the original author meant it to (which is that the times are very close
together) so I added abs(.) around the Timedeltas and also fixed the errant 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/9296/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9296/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9296.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9296",
"merged_at": "2015-01-19T12:14:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9296.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9296"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9297 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9297/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9297/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9297/events | https://github.com/pandas-dev/pandas/issues/9297 | 54,749,703 | MDU6SXNzdWU1NDc0OTcwMw== | 9,297 | API: DataFrame.eval, inplace option | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 9 | 2015-01-19T10:52:09Z | 2016-01-04T02:17:37Z | 2016-01-04T02:17:37Z | MEMBER | null | Building off of #9229, it's generally much better to create new dataframes rather than to modify existing ones. It's both more chainable and less prone to the bugs/errors associated with mutable state.
So it seems to me that a saner API design would be to make assignment operations with eval/query return a new frame rather than modify the existing one, i.e., `df.eval('x = y ** 2')` should be equivalent to `df.assign(x = lambda df: df.y ** 2)` (as currently defined in #9239).
In my experience, something like `df.query('x = 0')` is more likely intended to be equivalent to `df.query('x == 0')` rather than `df['x'] = 0`, which has the unfortunate effect of also modifying the original data. In fact, I have made this exact mistake before -- and apparently others have as well (see #8664).
Thoughts? The `query`/`eval` syntax is marked as experimental, so I think we have the freedom to change this.
CC @TomAugspurger @cpcloud @jreback
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9297/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9297/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9298 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9298/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9298/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9298/events | https://github.com/pandas-dev/pandas/issues/9298 | 54,752,963 | MDU6SXNzdWU1NDc1Mjk2Mw== | 9,298 | In Panel having data as a scalar in the constructor does not work | {
"avatar_url": "https://avatars.githubusercontent.com/u/637415?v=4",
"events_url": "https://api.github.com/users/sirinath/events{/privacy}",
"followers_url": "https://api.github.com/users/sirinath/followers",
"following_url": "https://api.github.com/users/sirinath/following{/other_user}",
"gists_url": "https://api.github.com/users/sirinath/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sirinath",
"id": 637415,
"login": "sirinath",
"node_id": "MDQ6VXNlcjYzNzQxNQ==",
"organizations_url": "https://api.github.com/users/sirinath/orgs",
"received_events_url": "https://api.github.com/users/sirinath/received_events",
"repos_url": "https://api.github.com/users/sirinath/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sirinath/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sirinath/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sirinath"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| null | 1 | 2015-01-19T11:27:37Z | 2015-01-19T12:15:36Z | 2015-01-19T12:15:36Z | NONE | null | When you want to initialise a DF to a particular value you can use `data = 0.`. But this does not work in Panel
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9298/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9298/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9299 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9299/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9299/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9299/events | https://github.com/pandas-dev/pandas/issues/9299 | 54,761,494 | MDU6SXNzdWU1NDc2MTQ5NA== | 9,299 | Exception in get_group() with invalid index | {
"avatar_url": "https://avatars.githubusercontent.com/u/7848257?v=4",
"events_url": "https://api.github.com/users/danielemichilli/events{/privacy}",
"followers_url": "https://api.github.com/users/danielemichilli/followers",
"following_url": "https://api.github.com/users/danielemichilli/following{/other_user}",
"gists_url": "https://api.github.com/users/danielemichilli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danielemichilli",
"id": 7848257,
"login": "danielemichilli",
"node_id": "MDQ6VXNlcjc4NDgyNTc=",
"organizations_url": "https://api.github.com/users/danielemichilli/orgs",
"received_events_url": "https://api.github.com/users/danielemichilli/received_events",
"repos_url": "https://api.github.com/users/danielemichilli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danielemichilli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielemichilli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danielemichilli"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| 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-01-19T13:07:17Z | 2021-04-12T05:02:08Z | null | NONE | null | Hello,
I'm using the pandas function "pandas.core.groupby.GroupBy.get_group()" to parallelize my code.
This function raises a "KeyError" exception if the passed index is not contained in the index list of the grouped DataFrame.
A basic example is:
data = DataFrame({'ind':[0,0,2,2]})
gb=a.groupby('ind')
gb.get_group(1)
Which raises "KeyError: 1"
In order to use intensively the "get_group()" function in code parallelization, an option to avoid this exception would be very useful, similar to "error_bad_lines=False" of the "read_csv()" function.
An empty DataFrame could be returned by the "get_group()" function when this option and an invalid index are given.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9299/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9299/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9300 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9300/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9300/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9300/events | https://github.com/pandas-dev/pandas/issues/9300 | 54,763,809 | MDU6SXNzdWU1NDc2MzgwOQ== | 9,300 | groupby first can return values not in group | {
"avatar_url": "https://avatars.githubusercontent.com/u/1045692?v=4",
"events_url": "https://api.github.com/users/meloncholy/events{/privacy}",
"followers_url": "https://api.github.com/users/meloncholy/followers",
"following_url": "https://api.github.com/users/meloncholy/following{/other_user}",
"gists_url": "https://api.github.com/users/meloncholy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meloncholy",
"id": 1045692,
"login": "meloncholy",
"node_id": "MDQ6VXNlcjEwNDU2OTI=",
"organizations_url": "https://api.github.com/users/meloncholy/orgs",
"received_events_url": "https://api.github.com/users/meloncholy/received_events",
"repos_url": "https://api.github.com/users/meloncholy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meloncholy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meloncholy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meloncholy"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| null | 4 | 2015-01-19T13:33:26Z | 2015-01-25T23:26:59Z | 2015-01-25T23:12:23Z | NONE | null | Not that familiar (at all :) with pandas internals, but I don't think this is expected behaviour.
``` python
f3 = DataFrame(
[
[95820843523155097, 1, 'director', 1],
[95820843523155098, 1, 'director', 2],
[95820843523155099, 1, 'director', 3],
[95820843523155100, 2, 'director', 4],
[95820843523155101, 2, 'computer system management (director)', 5],
[95820843523155102, 3, 'company director', 6],
[95820843523155103, 3, 'office manager', 7]
],
columns=['uid', 'cid', 'role', 'idx']
)
f3.dtypes
```
```
uid int64
cid int64
role object
idx int64
dtype: object
```
#### Observed behaviour
``` python
f3.groupby('cid').first()
```
| | uid | role | idx |
| --- | --- | --- | --- |
| cid | | | |
| 1 | 95820843523155104 | director | 1 |
| 2 | 95820843523155104 | director | 4 |
| 3 | 95820843523155104 | company director | 6 |
The `uid` column contains values that are all the same and aren't in the original data. (This isn't always true in larger sets; sometimes there's an overlap.)
#### Expected behaviour
``` python
f3.groupby('cid').apply(lambda g: g[:1])
```
| | | uid | role | idx |
| --- | --- | --- | --- | --- |
| cid | | | | |
| 1 | 0 | 95820843523155097 | director | 1 |
| 2 | 3 | 95820843523155100 | director | 4 |
| 3 | 5 | 95820843523155102 | company director | 6 |
This is what I expected to happen (i.e. the `uid` matches the rest of the row).
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-24-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: 0.21.1
numpy: 1.8.2
scipy: 0.14.0
statsmodels: 0.6.1
IPython: 2.3.1
sphinx: None
patsy: 0.3.0
dateutil: 2.1
pytz: 2014.9
bottleneck: 0.8.0
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.0
openpyxl: 2.0.2
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.6.4
lxml: 3.4.1
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.8
pymysql: None
psycopg2: 2.5.4 (dt dec pq3 ext)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9300/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9300/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9301 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9301/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9301/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9301/events | https://github.com/pandas-dev/pandas/issues/9301 | 54,777,327 | MDU6SXNzdWU1NDc3NzMyNw== | 9,301 | DOC: Revise "Merge, join, and concatenate" doc with graphical examples | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 3 | 2015-01-19T15:30:32Z | 2015-05-08T07:45:25Z | 2015-05-08T07:45:25Z | MEMBER | null | I think the doc is little difficult for beginners, because examples use slicing to prepare input which cannot imagine immediately.
- http://pandas.pydata.org/pandas-docs/stable/merging.html
The alternative is using diagrams like below. I've prepared a function to output it using #6661, thus it can be generated during the doc build. If looks useful, I'll work on it.


| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9301/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9301/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.