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/9402
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9402/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9402/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9402/events
https://github.com/pandas-dev/pandas/issues/9402
56,397,484
MDU6SXNzdWU1NjM5NzQ4NA==
9,402
DataFrame to_latex does not present or pass through column_format to formatter
{ "avatar_url": "https://avatars.githubusercontent.com/u/88642?v=4", "events_url": "https://api.github.com/users/andrewbolster/events{/privacy}", "followers_url": "https://api.github.com/users/andrewbolster/followers", "following_url": "https://api.github.com/users/andrewbolster/following{/other_user}", "gists_url": "https://api.github.com/users/andrewbolster/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andrewbolster", "id": 88642, "login": "andrewbolster", "node_id": "MDQ6VXNlcjg4NjQy", "organizations_url": "https://api.github.com/users/andrewbolster/orgs", "received_events_url": "https://api.github.com/users/andrewbolster/received_events", "repos_url": "https://api.github.com/users/andrewbolster/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andrewbolster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrewbolster/subscriptions", "type": "User", "url": "https://api.github.com/users/andrewbolster" }
[ { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2015-02-03T16:05:18Z
2015-08-31T11:08:01Z
2015-08-31T11:08:01Z
NONE
null
## Expected Behaviour `column_format` keyword arguments to `df.to_latex` should honour the relevant options available and implemented in `DataFrameFormatter` and it's `to_latex` method The reason why this is annoying is that default `frmt` behaviour is to justify based on the column datatype. For cases where the index column/first column is numeric, these columns get right-aligned, which looks horrible. ## Versions ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-27-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.15.1 nose: 1.3.4 Cython: 0.20.2 numpy: 1.9.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.3.1 sphinx: 1.2.2 patsy: 0.3.0 dateutil: 2.3 pytz: 2014.10 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: 1.8.6 xlrd: None xlwt: 0.7.5 xlsxwriter: None lxml: 3.3.5 bs4: 4.3.2 html5lib: None httplib2: 0.9 apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9402/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9402/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9403
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9403/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9403/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9403/events
https://github.com/pandas-dev/pandas/pull/9403
56,401,566
MDExOlB1bGxSZXF1ZXN0Mjg1NjY3Nzc=
9,403
ENH: - Fixed column_format propagation to DataFrameFormatter in to_latex
{ "avatar_url": "https://avatars.githubusercontent.com/u/88642?v=4", "events_url": "https://api.github.com/users/andrewbolster/events{/privacy}", "followers_url": "https://api.github.com/users/andrewbolster/followers", "following_url": "https://api.github.com/users/andrewbolster/following{/other_user}", "gists_url": "https://api.github.com/users/andrewbolster/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andrewbolster", "id": 88642, "login": "andrewbolster", "node_id": "MDQ6VXNlcjg4NjQy", "organizations_url": "https://api.github.com/users/andrewbolster/orgs", "received_events_url": "https://api.github.com/users/andrewbolster/received_events", "repos_url": "https://api.github.com/users/andrewbolster/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andrewbolster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrewbolster/subscriptions", "type": "User", "url": "https://api.github.com/users/andrewbolster" }
[ { "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" }
3
2015-02-03T16:32:51Z
2015-07-28T21:52:18Z
2015-07-28T21:52:18Z
NONE
null
closes #9402
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9403/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9403/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9403.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9403", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9403.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9403" }
https://api.github.com/repos/pandas-dev/pandas/issues/9404
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9404/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9404/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9404/events
https://github.com/pandas-dev/pandas/issues/9404
56,410,958
MDU6SXNzdWU1NjQxMDk1OA==
9,404
Panel.to_excel fails when axis 0 contains unicode strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/6871353?v=4", "events_url": "https://api.github.com/users/pklosiew/events{/privacy}", "followers_url": "https://api.github.com/users/pklosiew/followers", "following_url": "https://api.github.com/users/pklosiew/following{/other_user}", "gists_url": "https://api.github.com/users/pklosiew/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pklosiew", "id": 6871353, "login": "pklosiew", "node_id": "MDQ6VXNlcjY4NzEzNTM=", "organizations_url": "https://api.github.com/users/pklosiew/orgs", "received_events_url": "https://api.github.com/users/pklosiew/received_events", "repos_url": "https://api.github.com/users/pklosiew/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pklosiew/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pklosiew/subscriptions", "type": "User", "url": "https://api.github.com/users/pklosiew" }
[ { "color": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2015-02-03T17:40:13Z
2018-07-06T20:21:07Z
2017-07-11T09:56:04Z
NONE
null
Hello, while exporting a panel with unicode strings in the items axis `to_excel` fails with a `UnicodeEncodeError`. The following code reproduces the error: ``` python import pandas as pd p = pd.Panel({u'Smørrebrød': pd.DataFrame({})}) p.to_excel('nope.xlsx') ``` I suspect that changing `name = str(item)` to `name = unicode(item)` around line 440 in `pandas/core/panel.py` fixes this small issue. Thanks! ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Darwin OS-release: 14.0.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.2 numpy: 1.9.1 scipy: 0.14.0 statsmodels: None IPython: 2.3.1 sphinx: None patsy: None dateutil: 2.2 pytz: 2013b bottleneck: None tables: None numexpr: None matplotlib: 1.4.2 openpyxl: None xlrd: None xlwt: 0.7.5 xlsxwriter: 0.6.6 lxml: 3.4.1 bs4: 4.3.2 html5lib: 0.999 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/9404/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9404/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9405
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9405/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9405/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9405/events
https://github.com/pandas-dev/pandas/issues/9405
56,413,420
MDU6SXNzdWU1NjQxMzQyMA==
9,405
0.15.2 to_datetime broken
{ "avatar_url": "https://avatars.githubusercontent.com/u/10834829?v=4", "events_url": "https://api.github.com/users/bjmacdonald/events{/privacy}", "followers_url": "https://api.github.com/users/bjmacdonald/followers", "following_url": "https://api.github.com/users/bjmacdonald/following{/other_user}", "gists_url": "https://api.github.com/users/bjmacdonald/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bjmacdonald", "id": 10834829, "login": "bjmacdonald", "node_id": "MDQ6VXNlcjEwODM0ODI5", "organizations_url": "https://api.github.com/users/bjmacdonald/orgs", "received_events_url": "https://api.github.com/users/bjmacdonald/received_events", "repos_url": "https://api.github.com/users/bjmacdonald/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bjmacdonald/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bjmacdonald/subscriptions", "type": "User", "url": "https://api.github.com/users/bjmacdonald" }
[ { "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
7
2015-02-03T17:59:17Z
2015-02-04T13:48:39Z
2015-02-03T22:42:55Z
NONE
null
It looks like the support for the new 'exact' keyword has borked to_datetime() for format strings other than '%Y%m%d' as it is passed to array_strptime which doesn't seem to support it: ``` ts = 201502031753 pd.to_datetime(ts, format='%Y%m%d%H%M') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-685333561e5e> in <module>() ----> 1 pd.to_datetime(ts, format='%Y%m%d%H%M') C:\app\python\lib\site-packages\pandas\tseries\tools.py in to_datetime(arg, errors, dayfirst, utc, box, format, exact, coerce, unit, infer_datetime_format) 316 return _convert_listlike(arg, box, format) 317 --> 318 return _convert_listlike(np.array([ arg ]), box, format)[0] 319 320 class DateParseError(ValueError): C:\app\python\lib\site-packages\pandas\tseries\tools.py in _convert_listlike(arg, box, format) 278 try: 279 result = tslib.array_strptime( --> 280 arg, format, exact=exact, coerce=coerce 281 ) 282 except (tslib.OutOfBoundsDatetime): C:\app\python\lib\site-packages\pandas\tslib.pyd in pandas.tslib.array_strptime (pandas\tslib.c:35070)() TypeError: array_strptime() got an unexpected keyword argument 'exact' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9405/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9405/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9406
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9406/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9406/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9406/events
https://github.com/pandas-dev/pandas/issues/9406
56,418,612
MDU6SXNzdWU1NjQxODYxMg==
9,406
BUG: NaN level values in stack() and unstack()
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
5
2015-02-03T18:42:11Z
2021-05-10T21:45:32Z
2021-05-10T21:45:32Z
CONTRIBUTOR
null
As described in https://github.com/pydata/pandas/pull/9023#issuecomment-72707057, the way `DataFrame.stack()` and `DataFrame.unstack()` treat `NaN` indices is rather odd/inconsistent. Despite passing `test_unstack_nan_index()` in `test_frame.py`, I observe the following (this is from 0.15.2, but I think it's unchanged in the current master for 0.16.0): ``` In [140]: df = pd.DataFrame(np.arange(4).reshape(2, 2), columns=pd.MultiIndex.from_tuples([('A','a'), ('B', 'b')], names=['Upper', 'Lower']), index=Index([0, 1], name='Num'), dtype=np.float64) In [141]: df_nan = pd.DataFrame(np.arange(4).reshape(2, 2), columns=pd.MultiIndex.from_tuples([('A',np.nan), ('B', 'b')], names=['Upper', 'Lower']), index=Index([0, 1], name='Num'), dtype=np.float64) In [148]: df Out[148]: Upper A B Lower a b Num 0 0 1 1 2 3 In [149]: df.stack() Out[149]: Upper A B Num Lower 0 a 0 NaN b NaN 1 1 a 2 NaN b NaN 3 In [150]: df.T.unstack().T Out[150]: Upper A B Num Lower 0 a 0 NaN b NaN 1 1 a 2 NaN b NaN 3 In [151]: df_nan Out[151]: Upper A B Lower NaN b Num 0 0 1 1 2 3 In [152]: df_nan.stack() Out[152]: Upper A B Num Lower 0 NaN 0 1 b 0 1 1 NaN 2 3 b 2 3 In [153]: df_nan.T.unstack().T --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-153-edbcaeb64f64> in <module>() ----> 1 df_nan.T.unstack().T C:\Python34\lib\site-packages\pandas\core\frame.py in unstack(self, level) 3486 """ 3487 from pandas.core.reshape import unstack -> 3488 return unstack(self, level) 3489 3490 #---------------------------------------------------------------------- C:\Python34\lib\site-packages\pandas\core\reshape.py in unstack(obj, level) 439 if isinstance(obj, DataFrame): 440 if isinstance(obj.index, MultiIndex): --> 441 return _unstack_frame(obj, level) 442 else: 443 return obj.T.stack(dropna=False) C:\Python34\lib\site-packages\pandas\core\reshape.py in _unstack_frame(obj, level) 479 else: 480 unstacker = _Unstacker(obj.values, obj.index, level=level, --> 481 value_columns=obj.columns) 482 return unstacker.get_result() 483 C:\Python34\lib\site-packages\pandas\core\reshape.py in __init__(self, values, index, level, value_columns) 101 102 self._make_sorted_values_labels() --> 103 self._make_selectors() 104 105 def _make_sorted_values_labels(self): C:\Python34\lib\site-packages\pandas\core\reshape.py in _make_selectors(self) 143 144 if mask.sum() < len(self.index): --> 145 raise ValueError('Index contains duplicate entries, ' 146 'cannot reshape') 147 ValueError: Index contains duplicate entries, cannot reshape ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9406/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9406/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9407
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9407/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9407/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9407/events
https://github.com/pandas-dev/pandas/issues/9407
56,431,698
MDU6SXNzdWU1NjQzMTY5OA==
9,407
15.2 series.ravel() may not work
{ "avatar_url": "https://avatars.githubusercontent.com/u/925757?v=4", "events_url": "https://api.github.com/users/murphsp1/events{/privacy}", "followers_url": "https://api.github.com/users/murphsp1/followers", "following_url": "https://api.github.com/users/murphsp1/following{/other_user}", "gists_url": "https://api.github.com/users/murphsp1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/murphsp1", "id": 925757, "login": "murphsp1", "node_id": "MDQ6VXNlcjkyNTc1Nw==", "organizations_url": "https://api.github.com/users/murphsp1/orgs", "received_events_url": "https://api.github.com/users/murphsp1/received_events", "repos_url": "https://api.github.com/users/murphsp1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/murphsp1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/murphsp1/subscriptions", "type": "User", "url": "https://api.github.com/users/murphsp1" }
[ { "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
1
2015-02-03T20:24:32Z
2015-02-03T22:42:29Z
2015-02-03T22:42:17Z
NONE
null
Ravel doesn't seem to flatten lists in a series. ``` python import pandas as pd df = pd.DataFrame({ 'data':[[1,2],3]}) df['data'].ravel() Out[3]: array([[1, 2], 3], dtype=object) df.data.values.ravel() Out[4]: array([[1, 2], 3], dtype=object) ``` Or, in iPython Notebook ![screen shot 2015-02-03 at 1 55 54 pm](https://cloud.githubusercontent.com/assets/925757/6026920/799ed948-abac-11e4-81d6-38c99e55a4cd.png) Seen this issue on two versions: ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 14.0.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: None numpy: 1.9.1 scipy: None statsmodels: None IPython: 2.4.0 sphinx: None patsy: None dateutil: 2.4.0 pytz: 2014.10 bottleneck: None tables: None numexpr: None matplotlib: 1.4.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None 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) and ## INSTALLED VERSIONS commit: None python: 2.7.9.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.14.1 nose: 1.3.4 Cython: 0.21 numpy: 1.9.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.2.0 sphinx: 1.2.3 patsy: 0.3.0 scikits.timeseries: None dateutil: 2.2 pytz: 2014.7 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.0 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: 0.8 apiclient: 1.2 rpy2: None sqlalchemy: 0.9.7 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/9407/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9407/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9408
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9408/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9408/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9408/events
https://github.com/pandas-dev/pandas/issues/9408
56,446,496
MDU6SXNzdWU1NjQ0NjQ5Ng==
9,408
date_range performance
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "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
1
2015-02-03T22:17:24Z
2015-02-03T22:41:11Z
2015-02-03T22:41:00Z
NONE
null
Hello - can anything be done about the performance of date_range? I've noticed a big degradation in performance from 0.11.0 (I know it's old) to 0.15.2. _0.11.0:_ ``` %timeit pandas.date_range(start='1/1/1995', end='2/3/2015', freq='B') 1000 loops, best of 3: 412 us per loop ``` _0.15.2:_ ``` %timeit pandas.date_range(start='1/1/1995', end='2/3/2015', freq='B') 10 loops, best of 3: 134 ms per loop ``` 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/9408/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9408/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9409
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9409/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9409/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9409/events
https://github.com/pandas-dev/pandas/pull/9409
56,453,525
MDExOlB1bGxSZXF1ZXN0Mjg1OTg0OTc=
9,409
Fix Panel.to_excel for unicode strings in axis 0
{ "avatar_url": "https://avatars.githubusercontent.com/u/6871353?v=4", "events_url": "https://api.github.com/users/pklosiew/events{/privacy}", "followers_url": "https://api.github.com/users/pklosiew/followers", "following_url": "https://api.github.com/users/pklosiew/following{/other_user}", "gists_url": "https://api.github.com/users/pklosiew/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pklosiew", "id": 6871353, "login": "pklosiew", "node_id": "MDQ6VXNlcjY4NzEzNTM=", "organizations_url": "https://api.github.com/users/pklosiew/orgs", "received_events_url": "https://api.github.com/users/pklosiew/received_events", "repos_url": "https://api.github.com/users/pklosiew/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pklosiew/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pklosiew/subscriptions", "type": "User", "url": "https://api.github.com/users/pklosiew" }
[ { "color": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
{ "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-02-03T23:09:29Z
2015-07-28T21:51:06Z
2015-07-28T21:51:06Z
NONE
null
closes issue #9404
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9409/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9409/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9409.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9409", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9409.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9409" }
https://api.github.com/repos/pandas-dev/pandas/issues/9410
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9410/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9410/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9410/events
https://github.com/pandas-dev/pandas/issues/9410
56,458,718
MDU6SXNzdWU1NjQ1ODcxOA==
9,410
Error: “pandas.hashtable.PyObjectHashTable.get_item”
{ "avatar_url": "https://avatars.githubusercontent.com/u/1874668?v=4", "events_url": "https://api.github.com/users/sergeyf/events{/privacy}", "followers_url": "https://api.github.com/users/sergeyf/followers", "following_url": "https://api.github.com/users/sergeyf/following{/other_user}", "gists_url": "https://api.github.com/users/sergeyf/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sergeyf", "id": 1874668, "login": "sergeyf", "node_id": "MDQ6VXNlcjE4NzQ2Njg=", "organizations_url": "https://api.github.com/users/sergeyf/orgs", "received_events_url": "https://api.github.com/users/sergeyf/received_events", "repos_url": "https://api.github.com/users/sergeyf/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sergeyf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sergeyf/subscriptions", "type": "User", "url": "https://api.github.com/users/sergeyf" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "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-02-04T00:00:28Z
2015-02-04T01:37:04Z
2015-02-04T01:11:25Z
NONE
null
I'm seeing some odd behavior from Pandas 0.15.2 on Python 3.4.2. First, I import the data with no issues: import pandas as pd hourly = pd.read_csv("fremont_bridge_data.csv", index_col='Date', parse_dates=True) weekly = hourly.resample('w','sum') But when trying to access, I run into some odd behavior. This works fine: In[289]: weekly['2013-12'] Out[289]: northbound southbound total Date 2013-12-01 5053 5480 10533 2013-12-08 5432 5836 11268 2013-12-15 5381 5760 11141 2013-12-22 5182 5455 10637 2013-12-29 3118 3567 6685 But this fails: In[290]: weekly['2013-12-29'] Traceback (most recent call last): File "<ipython-input-290-96e181f8ff0a>", line 1, in <module> weekly['2013-12-29'] File "C:\Anaconda\envs\py34\lib\site-packages\pandas\core\frame.py", line 1780, in **getitem** return self._getitem_column(key) File "C:\Anaconda\envs\py34\lib\site-packages\pandas\core\frame.py", line 1787, in _getitem_column return self._get_item_cache(key) File "C:\Anaconda\envs\py34\lib\site-packages\pandas\core\generic.py", line 1068, in _get_item_cache values = self._data.get(item) File "C:\Anaconda\envs\py34\lib\site-packages\pandas\core\internals.py", line 2849, in get loc = self.items.get_loc(item) File "C:\Anaconda\envs\py34\lib\site-packages\pandas\core\index.py", line 1402, in get_loc return self._engine.get_loc(_values_from_object(key)) File "pandas\index.pyx", line 134, in pandas.index.IndexEngine.get_loc (pandas\index.c:3807) File "pandas\index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas\index.c:3687) File "pandas\hashtable.pyx", line 696, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12310) File "pandas\hashtable.pyx", line 704, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12261) KeyError: '2013-12-29' Any ideas? This also fails: weekly[weekly.index[0]], and seems like it shouldn't. Ditto with .loc. weekly.loc['2012-12-30'] works fine, but weekly.loc[['2012-12-30','2012-12-30']] fails! The data is here: https://github.com/sergeyf/Python_data_science_class/blob/master/code/data/fremont_bridge_data.csv Thank you.
{ "+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/9410/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9410/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9411
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9411/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9411/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9411/events
https://github.com/pandas-dev/pandas/pull/9411
56,469,499
MDExOlB1bGxSZXF1ZXN0Mjg2MDc1OTk=
9,411
test sql table name
{ "avatar_url": "https://avatars.githubusercontent.com/u/873905?v=4", "events_url": "https://api.github.com/users/dashesy/events{/privacy}", "followers_url": "https://api.github.com/users/dashesy/followers", "following_url": "https://api.github.com/users/dashesy/following{/other_user}", "gists_url": "https://api.github.com/users/dashesy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dashesy", "id": 873905, "login": "dashesy", "node_id": "MDQ6VXNlcjg3MzkwNQ==", "organizations_url": "https://api.github.com/users/dashesy/orgs", "received_events_url": "https://api.github.com/users/dashesy/received_events", "repos_url": "https://api.github.com/users/dashesy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dashesy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dashesy/subscriptions", "type": "User", "url": "https://api.github.com/users/dashesy" }
[ { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2015-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-02-04T02:02:53Z
2015-02-10T16:58:17Z
2015-02-08T11:26:44Z
CONTRIBUTOR
null
Closes #9393 simple test for tables names that need to be quoted. This is related to issue [here](https://github.com/pydata/pandas/issues/9393) that is fixed in current master.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9411/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9411/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9411.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9411", "merged_at": "2015-02-08T11:26:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9411.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9411" }
https://api.github.com/repos/pandas-dev/pandas/issues/9412
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9412/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9412/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9412/events
https://github.com/pandas-dev/pandas/issues/9412
56,554,767
MDU6SXNzdWU1NjU1NDc2Nw==
9,412
Vectorizing pandas Date Functions
{ "avatar_url": "https://avatars.githubusercontent.com/u/6363322?v=4", "events_url": "https://api.github.com/users/aschneiderman/events{/privacy}", "followers_url": "https://api.github.com/users/aschneiderman/followers", "following_url": "https://api.github.com/users/aschneiderman/following{/other_user}", "gists_url": "https://api.github.com/users/aschneiderman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aschneiderman", "id": 6363322, "login": "aschneiderman", "node_id": "MDQ6VXNlcjYzNjMzMjI=", "organizations_url": "https://api.github.com/users/aschneiderman/orgs", "received_events_url": "https://api.github.com/users/aschneiderman/received_events", "repos_url": "https://api.github.com/users/aschneiderman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aschneiderman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aschneiderman/subscriptions", "type": "User", "url": "https://api.github.com/users/aschneiderman" }
[]
closed
false
null
[]
null
2
2015-02-04T16:58:14Z
2015-02-04T17:29:32Z
2015-02-04T17:29:32Z
NONE
null
pandas has great methods for manipulating index dates, which works well for timeseries data. But for other kinds of data, to manipulate a date column you have to use lambda (or set that column to be the index). For example, a lot of the beginners I'm training work with transactional data that looks something like this: ``` python purchases = pd.DataFrame({ 'Purchase_Date': ['9/9/2013', '9/9/2013', '9/10/2013', '9/28/2013', '10/6/2013', '10/7/2013', '10/18/2013', '10/18/2013', '11/1/2013'], 'Delivery_Date': ['9/11/2013', '9/11/2013', '9/18/2013', '10/2/2013', '10/8/2013', '10/8/2013', '10/22/2013', '10/22/2013', '11/8/2013'], 'Size': ['Medium', 'Small', 'Large', 'Small', 'Medium', 'Small', 'Large', 'Medium', 'Small'], 'Color': ['Red', 'Blue', 'Green', 'Red', 'Red', 'Green', 'Purple', 'Purple', 'Black']}) ``` Here's what you have to do now to get the delivery purchase month: ``` python purchases["Delivery_Month"] = purchases["Delivery_Date"].apply(lambda x: pd.to_Datetime(x).month) ``` For beginners who don't have a science or programming background, using apply and lambda is pretty confusing. And since one of the first things these beginners want to do is analyze their data by dates, it's a potential stumbling block to their adopting pandas. It would be great if date functions could be vectorized the way strings have so that for example you could instead write: ``` python purchases["Delivery_Month"] = purchases["Delivery_Date"].month ``` I think this change might help make pandas more accessible to a wider audience. For example, as part of [Data Chefs](http://datachefs.org), I'm working with a group of folks to create an online course and cookbook on slicing & dicing data with pandas. Having vectorized date functions would remove a small but important barrier to our target audience becoming comfortable using 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/9412/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9412/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9413
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9413/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9413/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9413/events
https://github.com/pandas-dev/pandas/issues/9413
56,564,911
MDU6SXNzdWU1NjU2NDkxMQ==
9,413
BUG: pandas rolling_quantile does not use interpolation
{ "avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4", "events_url": "https://api.github.com/users/leo4183/events{/privacy}", "followers_url": "https://api.github.com/users/leo4183/followers", "following_url": "https://api.github.com/users/leo4183/following{/other_user}", "gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leo4183", "id": 10853125, "login": "leo4183", "node_id": "MDQ6VXNlcjEwODUzMTI1", "organizations_url": "https://api.github.com/users/leo4183/orgs", "received_events_url": "https://api.github.com/users/leo4183/received_events", "repos_url": "https://api.github.com/users/leo4183/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo4183/subscriptions", "type": "User", "url": "https://api.github.com/users/leo4183" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2017-10-28T18:54:27Z", "closed_issues": 764, "created_at": "2017-03-23T13:26:25Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2017-10-27T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/46", "id": 2406656, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels", "node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==", "number": 46, "open_issues": 0, "state": "closed", "title": "0.21.0", "updated_at": "2018-07-08T21:53:21Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46" }
6
2015-02-04T18:10:16Z
2017-07-10T10:15:08Z
2017-07-10T10:15:08Z
NONE
null
i recently bumped an unexpected issue with pandas rolling funcs. rolling_quantile for example: ``` >> row = 10 >> col = 5 >> idx = pd.date_range(20100101,periods=row,freq='B') >> a = pd.DataFrame(np.random.rand(row*col).reshape((row,-1)),index=idx) >> a 0 1 2 3 4 2010-01-01 0.341434 0.497274 0.596341 0.259909 0.872207 2010-01-04 0.222653 0.056723 0.064019 0.936307 0.785647 2010-01-05 0.179067 0.647165 0.931266 0.557698 0.713282 2010-01-06 0.049766 0.259756 0.945736 0.380948 0.282667 2010-01-07 0.385036 0.517609 0.575958 0.050758 0.850735 2010-01-08 0.628169 0.510453 0.325973 0.263361 0.444959 2010-01-11 0.099133 0.976571 0.602235 0.181185 0.506316 2010-01-12 0.987344 0.902289 0.080000 0.254695 0.753325 2010-01-13 0.759198 0.014548 0.139858 0.822900 0.251972 2010-01-14 0.404149 0.349788 0.038714 0.280568 0.197865 >> a.quantile([0.25,0.5,0.75],axis=0) 0 1 2 3 4 0.25 0.189963 0.282264 0.094964 0.255999 0.323240 0.50 0.363235 0.503864 0.450966 0.271964 0.609799 0.75 0.572164 0.614776 0.600761 0.513510 0.777567 >> np.percentile(a,[25,50,75],axis=0) [array([ 0.18996316, 0.28226404, 0.09496441, 0.25599853, 0.32323997]), array([ 0.36323529, 0.50386356, 0.45096554, 0.27196429, 0.60979881]), array([ 0.57216415, 0.61477607, 0.6007611 , 0.51351021, 0.7775667 ])] >> pd.rolling_quantile(a,row,0.25).tail(1) 0 1 2 3 4 2010-01-14 0.179067 0.259756 0.08 0.254695 0.282667 ``` looks like pandas.DataFrame.quantile member func is consistent with the numpy.percentile func. however the pandas.rolling_quantile func returns diff results. reduce the row number to 5, the problem will be gone (all three methods return the same results). any thoughts? ps: i also tested rolling_std func which will "randomly" generate errors with 10^-7 ~ 10^-8 scales (compared to pandas.DataFrame std member func or numpy/scipy std funcs which could limit the error close to np.spacing(1) level) for long (row-wise) pandas.DataFrames python environment: python 3.4.2 cython 0.21.1 numpy 1.8.2 scipy 0.14.0 pandas 0.15.1 statsmodels 0.6.0
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9413/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9413/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9414
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9414/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9414/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9414/events
https://github.com/pandas-dev/pandas/pull/9414
56,587,500
MDExOlB1bGxSZXF1ZXN0Mjg2NzQ5MjU=
9,414
hdfs workflow for cookbook
{ "avatar_url": "https://avatars.githubusercontent.com/u/5108745?v=4", "events_url": "https://api.github.com/users/gwulfs/events{/privacy}", "followers_url": "https://api.github.com/users/gwulfs/followers", "following_url": "https://api.github.com/users/gwulfs/following{/other_user}", "gists_url": "https://api.github.com/users/gwulfs/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gwulfs", "id": 5108745, "login": "gwulfs", "node_id": "MDQ6VXNlcjUxMDg3NDU=", "organizations_url": "https://api.github.com/users/gwulfs/orgs", "received_events_url": "https://api.github.com/users/gwulfs/received_events", "repos_url": "https://api.github.com/users/gwulfs/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gwulfs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gwulfs/subscriptions", "type": "User", "url": "https://api.github.com/users/gwulfs" }
[]
closed
false
null
[]
null
1
2015-02-04T21:06:22Z
2015-02-05T11:18:24Z
2015-02-05T11:18:24Z
NONE
null
http://stackoverflow.com/questions/14262433/large-data-work-flows-using-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/9414/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9414/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9414.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9414", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9414.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9414" }
https://api.github.com/repos/pandas-dev/pandas/issues/9415
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9415/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9415/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9415/events
https://github.com/pandas-dev/pandas/pull/9415
56,591,009
MDExOlB1bGxSZXF1ZXN0Mjg2NzcyMTE=
9,415
BUG: setup.py does not allow equal filenames in *different* directories
{ "avatar_url": "https://avatars.githubusercontent.com/u/1435085?v=4", "events_url": "https://api.github.com/users/blbradley/events{/privacy}", "followers_url": "https://api.github.com/users/blbradley/followers", "following_url": "https://api.github.com/users/blbradley/following{/other_user}", "gists_url": "https://api.github.com/users/blbradley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/blbradley", "id": 1435085, "login": "blbradley", "node_id": "MDQ6VXNlcjE0MzUwODU=", "organizations_url": "https://api.github.com/users/blbradley/orgs", "received_events_url": "https://api.github.com/users/blbradley/received_events", "repos_url": "https://api.github.com/users/blbradley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/blbradley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/blbradley/subscriptions", "type": "User", "url": "https://api.github.com/users/blbradley" }
[ { "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": "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-02-04T21:34:41Z
2015-02-11T14:45:10Z
2015-02-11T14:27:56Z
CONTRIBUTOR
null
Is it possible to write tests for setup.py? ## Setup ``` touch pandas/period.pyx ``` and put this in your `setup.py`'s ext_data: ``` python period=dict(pyxfile='period'), ``` ## Before PR ``` bash python setup.py build_ext --inplace rm -rf pandas/period.c python setup.py build_ext --inplace python setup.py clean ls -l pandas/period.c # -rw-rw-r-- 1 brandon brandon 48253 Feb 4 15:27 pandas/period.c ``` `period.c` still exists after cleaning. ## After PR ``` bash python setup.py build_ext --inplace rm -rf pandas/period.c python setup.py build_ext --inplace python setup.py clean ls -l pandas/period.c # ls: cannot access pandas/period.c: No such file or directory ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9415/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9415/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9415.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9415", "merged_at": "2015-02-11T14:27:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9415.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9415" }
https://api.github.com/repos/pandas-dev/pandas/issues/9416
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9416/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9416/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9416/events
https://github.com/pandas-dev/pandas/issues/9416
56,596,430
MDU6SXNzdWU1NjU5NjQzMA==
9,416
Series.shift() doesn't work for categorical type
{ "avatar_url": "https://avatars.githubusercontent.com/u/5126549?v=4", "events_url": "https://api.github.com/users/lminer/events{/privacy}", "followers_url": "https://api.github.com/users/lminer/followers", "following_url": "https://api.github.com/users/lminer/following{/other_user}", "gists_url": "https://api.github.com/users/lminer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lminer", "id": 5126549, "login": "lminer", "node_id": "MDQ6VXNlcjUxMjY1NDk=", "organizations_url": "https://api.github.com/users/lminer/orgs", "received_events_url": "https://api.github.com/users/lminer/received_events", "repos_url": "https://api.github.com/users/lminer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lminer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lminer/subscriptions", "type": "User", "url": "https://api.github.com/users/lminer" }
[ { "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
2
2015-02-04T22:17:39Z
2015-07-18T00:03:27Z
2015-07-18T00:03:27Z
NONE
null
Not sure if this is intentional, but Series.shift() won't run with categorical dtypes: ``` python ser = pd.Series(['a', 'b', 'c', 'd'], dtype="category") ser.shift(1) Traceback (most recent call last): File "<ipython-input-15-1a7536b0af06>", line 1, in <module> ser.shift(1) File "/.../pandas/core/generic.py", line 3394, in shift new_data = self._data.shift(periods=periods, axis=block_axis) File "/.../pandas/core/internals.py", line 2533, in shift return self.apply('shift', **kwargs) File "/.../pandas/core/internals.py", line 2497, in apply applied = getattr(b, f)(**kwargs) File "/.../pandas/core/internals.py", line 893, in shift new_values, fill_value = com._maybe_upcast(self.values) File "/.../pandas/core/common.py", line 1218, in _maybe_upcast new_dtype, fill_value = _maybe_promote(dtype, fill_value) File "/.../pandas/core/common.py", line 1124, in _maybe_promote if issubclass(np.dtype(dtype).type, compat.string_types): TypeError: data type not understood ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9416/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9416/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9417
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9417/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9417/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9417/events
https://github.com/pandas-dev/pandas/pull/9417
56,597,972
MDExOlB1bGxSZXF1ZXN0Mjg2ODE2MjA=
9,417
improved error message for invalid chart types
{ "avatar_url": "https://avatars.githubusercontent.com/u/3819470?v=4", "events_url": "https://api.github.com/users/cel4/events{/privacy}", "followers_url": "https://api.github.com/users/cel4/followers", "following_url": "https://api.github.com/users/cel4/following{/other_user}", "gists_url": "https://api.github.com/users/cel4/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cel4", "id": 3819470, "login": "cel4", "node_id": "MDQ6VXNlcjM4MTk0NzA=", "organizations_url": "https://api.github.com/users/cel4/orgs", "received_events_url": "https://api.github.com/users/cel4/received_events", "repos_url": "https://api.github.com/users/cel4/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cel4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cel4/subscriptions", "type": "User", "url": "https://api.github.com/users/cel4" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "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-02-04T22:30:22Z
2015-08-15T12:37:55Z
2015-02-08T13:35:47Z
CONTRIBUTOR
null
Closes #9400 `pd.Series([2,3,4]).plot("quiver")` now gives an improved error message: ``` Users/ch/miniconda/envs/pd_dev34/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2269 klass = _plot_klass[kind] 2270 else: -> 2271 raise ValueError(invalid_ct_fmtstr % kind) 2272 2273 from pandas import DataFrame ValueError: 'quiver' is not a valid chart type ``` instead of: ``` /Users/ch/miniconda/envs/sci33/lib/python3.3/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2267 klass = _plot_klass[kind] 2268 else: -> 2269 raise ValueError('Invalid chart type given %s' % kind) 2270 2271 from pandas import DataFrame ValueError: Invalid chart type given quiver ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9417/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9417/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9417.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9417", "merged_at": "2015-02-08T13:35:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9417.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9417" }
https://api.github.com/repos/pandas-dev/pandas/issues/9418
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9418/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9418/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9418/events
https://github.com/pandas-dev/pandas/pull/9418
56,673,826
MDExOlB1bGxSZXF1ZXN0Mjg3MjY1MzI=
9,418
DOC: Fix release note format
{ "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
[]
null
1
2015-02-05T14:04:28Z
2015-02-06T22:35:45Z
2015-02-05T14:09:05Z
MEMBER
null
Some descriptions are rendered improperly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9418/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9418/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9418.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9418", "merged_at": "2015-02-05T14:09:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9418.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9418" }
https://api.github.com/repos/pandas-dev/pandas/issues/9419
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9419/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9419/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9419/events
https://github.com/pandas-dev/pandas/pull/9419
56,680,843
MDExOlB1bGxSZXF1ZXN0Mjg3MzA4NjQ=
9,419
Fix truncated Index monotonic documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert" }
[ { "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-02-05T15:00:53Z
2015-02-05T21:24:52Z
2015-02-05T21:24:20Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9419/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9419/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9419.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9419", "merged_at": "2015-02-05T21:24:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9419.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9419" }
https://api.github.com/repos/pandas-dev/pandas/issues/9420
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9420/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9420/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9420/events
https://github.com/pandas-dev/pandas/issues/9420
56,698,582
MDU6SXNzdWU1NjY5ODU4Mg==
9,420
precision issue with rolling_std
{ "avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4", "events_url": "https://api.github.com/users/leo4183/events{/privacy}", "followers_url": "https://api.github.com/users/leo4183/followers", "following_url": "https://api.github.com/users/leo4183/following{/other_user}", "gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leo4183", "id": 10853125, "login": "leo4183", "node_id": "MDQ6VXNlcjEwODUzMTI1", "organizations_url": "https://api.github.com/users/leo4183/orgs", "received_events_url": "https://api.github.com/users/leo4183/received_events", "repos_url": "https://api.github.com/users/leo4183/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo4183/subscriptions", "type": "User", "url": "https://api.github.com/users/leo4183" }
[]
closed
false
null
[]
null
4
2015-02-05T17:06:02Z
2019-07-28T16:34:09Z
2018-10-21T01:04:59Z
NONE
null
i tested `rolling_std` func with some real data (floating number with format x.xx). For a Series/DataFrame which contains let's say 5 continuous identical rows among several hundreds, the `rolling_std` could return a small number with 10^-7 scale instead exactly zero. this is probably a known issue which has not been officially documented. i'm just curious with the reason behind and why the std member func works better.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9420/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9420/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9421
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9421/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9421/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9421/events
https://github.com/pandas-dev/pandas/issues/9421
56,703,567
MDU6SXNzdWU1NjcwMzU2Nw==
9,421
Complete rewrite of bottleneck package
{ "avatar_url": "https://avatars.githubusercontent.com/u/299024?v=4", "events_url": "https://api.github.com/users/kwgoodman/events{/privacy}", "followers_url": "https://api.github.com/users/kwgoodman/followers", "following_url": "https://api.github.com/users/kwgoodman/following{/other_user}", "gists_url": "https://api.github.com/users/kwgoodman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kwgoodman", "id": 299024, "login": "kwgoodman", "node_id": "MDQ6VXNlcjI5OTAyNA==", "organizations_url": "https://api.github.com/users/kwgoodman/orgs", "received_events_url": "https://api.github.com/users/kwgoodman/received_events", "repos_url": "https://api.github.com/users/kwgoodman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kwgoodman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kwgoodman/subscriptions", "type": "User", "url": "https://api.github.com/users/kwgoodman" }
[ { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
null
2
2015-02-05T17:43:49Z
2016-01-07T00:31:10Z
2016-01-07T00:31:10Z
NONE
null
I have completely rewritten the bottleneck package. Since it is an optional dependency of pandas I thought you might want to test it before I release. Release notes are here: https://github.com/kwgoodman/bottleneck/blob/master/RELEASE.rst Branch: master Please report results here: https://github.com/kwgoodman/bottleneck/issues/96
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9421/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9421/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9422
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9422/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9422/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9422/events
https://github.com/pandas-dev/pandas/issues/9422
56,707,245
MDU6SXNzdWU1NjcwNzI0NQ==
9,422
API: sum of Series of all NaN should return 0 or NaN ?
{ "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": "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
true
null
[]
{ "closed_at": "2017-10-28T18:54:27Z", "closed_issues": 764, "created_at": "2017-03-23T13:26:25Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2017-10-27T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/46", "id": 2406656, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels", "node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==", "number": 46, "open_issues": 0, "state": "closed", "title": "0.21.0", "updated_at": "2018-07-08T21:53:21Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46" }
116
2015-02-05T18:12:27Z
2017-12-08T12:16:17Z
2017-10-10T13:17:02Z
MEMBER
null
### Summary The question is what the sum of a Series of all NaNs should return (which is equivalent to an empty Series after skipping the NaNs): NaN or 0? ``` In [1]: s = Series([np.nan]) In [2]: s.sum(skipna=True) # skipping NaNs is the default Out[2]: nan or 0 <---- DISCUSSION POINT In [3]: s.sum(skipna=False) Out[3]: nan ``` The reason this is a discussion point has the following cause: the internal nansum implementation of pandas returns NaN. But, when bottleneck is installed, pandas will use bottlenecks implementation of nansum, which returns 0 (for the versions >= 1.0). Bottleneck changed the behaviour from returning NaN to returning 0 to model it after numpy's nansum function. This has the very annoying consequence that depending on whether bottleneck is installed or not (which is only an optional dependency), you get a different behaviour. So the decision we need to make, is to either: - adapt pandas internal implementation to return 0, so in all cases 0 is returned for all NaN/empty series. - workaround bottlenecks behaviour or not use it for nansum, in order to consistently return NaN instead of 0 - choose one of both above as the default, but have an option to switch behaviour --- Original title: **nansum in bottleneck 1.0 will return 0 for all NaN arrays instead of NaN** xref https://github.com/kwgoodman/bottleneck/issues/96 xref https://github.com/pydata/pandas/issues/9421 - [ ] Tests are turned off for bottleneck >1.0 (xref https://github.com/pydata/pandas/pull/10986) This matches a change from numpy 1.8 -> 1.9. We should address this for pandas 0.16. Should we work around the new behavior (probably the simplest choice) or change nansum 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/9422/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9422/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9423
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9423/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9423/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9423/events
https://github.com/pandas-dev/pandas/issues/9423
56,716,550
MDU6SXNzdWU1NjcxNjU1MA==
9,423
to_datetime parsing odd strings to dates
{ "avatar_url": "https://avatars.githubusercontent.com/u/5126549?v=4", "events_url": "https://api.github.com/users/lminer/events{/privacy}", "followers_url": "https://api.github.com/users/lminer/followers", "following_url": "https://api.github.com/users/lminer/following{/other_user}", "gists_url": "https://api.github.com/users/lminer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lminer", "id": 5126549, "login": "lminer", "node_id": "MDQ6VXNlcjUxMjY1NDk=", "organizations_url": "https://api.github.com/users/lminer/orgs", "received_events_url": "https://api.github.com/users/lminer/received_events", "repos_url": "https://api.github.com/users/lminer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lminer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lminer/subscriptions", "type": "User", "url": "https://api.github.com/users/lminer" }
[]
closed
false
null
[]
null
3
2015-02-05T19:26:18Z
2015-02-06T00:05:34Z
2015-02-06T00:05:34Z
NONE
null
Some strings that clearly aren't dates are being parsed as dates. This may be expected behavior, but thought I'd flag just in case. ``` python pd.to_datetime('0067000000M2M3HAAV') Timestamp('2015-02-05 00:02:03') ``` Not sure how this matches to 2015! But this is fine: ``` python pd.to_datetime('0067000000M2LkvAAF') '0067000000M2LkvAAF' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9423/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9423/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9424
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9424/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9424/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9424/events
https://github.com/pandas-dev/pandas/issues/9424
56,738,943
MDU6SXNzdWU1NjczODk0Mw==
9,424
read_csv clobbers values of columns with duplicate names
{ "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": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
3
2015-02-05T22:20:07Z
2016-05-23T21:43:04Z
2016-05-23T21:43:04Z
NONE
null
xref #10577 (has test for duplicates with empty data) I don't expect this is the correct behavior, although it's always possible I'm doing something wrong. Importing data using the `names` keyword will clobber the values of columns where the name is duplicated. For example: ``` python from StringIO import StringIO import pandas as pd data = """a,1 b,2 c,3""" names = ['field', 'field'] print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=True) print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=False) ``` returns ``` field field 0 1 1 1 2 2 2 3 3 field field 0 1 1 1 2 2 2 3 3 ``` However, this produces the correct result: ``` python df = pd.read_csv(StringIO(data), header=None) df.columns = names print df ``` ``` field field 0 a 1 1 b 2 2 c 3 ``` Interestingly, it works if the field names are in the header: ``` python data_with_header = "field,field\n" + data print pd.read_csv(StringIO(data_with_header)) ``` ``` field field.1 0 a 1 1 b 2 2 c 3 ``` Is this a bug or am I doing something wrong?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9424/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9424/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9425
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9425/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9425/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9425/events
https://github.com/pandas-dev/pandas/issues/9425
56,742,311
MDU6SXNzdWU1Njc0MjMxMQ==
9,425
'infer_freq' can return timerule (WOM-5MON) that 'to_offset' does not support
{ "avatar_url": "https://avatars.githubusercontent.com/u/805293?v=4", "events_url": "https://api.github.com/users/craustin/events{/privacy}", "followers_url": "https://api.github.com/users/craustin/followers", "following_url": "https://api.github.com/users/craustin/following{/other_user}", "gists_url": "https://api.github.com/users/craustin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/craustin", "id": 805293, "login": "craustin", "node_id": "MDQ6VXNlcjgwNTI5Mw==", "organizations_url": "https://api.github.com/users/craustin/orgs", "received_events_url": "https://api.github.com/users/craustin/received_events", "repos_url": "https://api.github.com/users/craustin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/craustin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/craustin/subscriptions", "type": "User", "url": "https://api.github.com/users/craustin" }
[ { "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-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" }
3
2015-02-05T22:47:55Z
2015-06-02T19:25:19Z
2015-05-30T21:28:14Z
NONE
null
``` python import pandas as pd index = [pd.Timestamp('2014-03-31 00:00:00'), pd.Timestamp('2014-06-30 00:00:00'), pd.Timestamp('2015-03-30 00:00:00'), pd.Timestamp('2015-06-29 00:00:00')] freq = pd.infer_freq(index) # WOM-5MON pd.datetools.to_offset(freq) # ValueError: Could not evaluate WOM-5MON ``` Instead of supporting WOM-5###, I think we can easily modify _get_wom_rule() to return None for this set of dates so it doesn't get inferred. Agree?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9425/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9425/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9426
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9426/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9426/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9426/events
https://github.com/pandas-dev/pandas/issues/9426
56,742,972
MDU6SXNzdWU1Njc0Mjk3Mg==
9,426
Merge fails when dataframe contains categoricals
{ "avatar_url": "https://avatars.githubusercontent.com/u/5126549?v=4", "events_url": "https://api.github.com/users/lminer/events{/privacy}", "followers_url": "https://api.github.com/users/lminer/followers", "following_url": "https://api.github.com/users/lminer/following{/other_user}", "gists_url": "https://api.github.com/users/lminer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lminer", "id": 5126549, "login": "lminer", "node_id": "MDQ6VXNlcjUxMjY1NDk=", "organizations_url": "https://api.github.com/users/lminer/orgs", "received_events_url": "https://api.github.com/users/lminer/received_events", "repos_url": "https://api.github.com/users/lminer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lminer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lminer/subscriptions", "type": "User", "url": "https://api.github.com/users/lminer" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-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" }
13
2015-02-05T22:54:07Z
2015-05-20T11:59:03Z
2015-03-06T03:18:10Z
NONE
null
Trying to perform a left merge between two dataframes using a column of type object. If I include categoricals in the right dataframe, I get the following error. Trying to reproduce with a toy dataset but no luck so far. ``` python out = pd.merge(left, right, how='left', left_on='left_id', right_on='right_id') Traceback (most recent call last): File ".../pandas/tools/merge.py", line 39, in merge return op.get_result() File ".../pandas/tools/merge.py", line 201, in get_result concat_axis=0, copy=self.copy) File ".../pandas/core/internals.py", line 4046, in concatenate_block_managers for placement, join_units in concat_plan] File ".../pandas/core/internals.py", line 4135, in concatenate_join_units empty_dtype, upcasted_na = get_empty_dtype_and_na(join_units) File ".../pandas/core/internals.py", line 4074, in get_empty_dtype_and_na dtypes[i] = unit.dtype File ".../pandas/src/properties.pyx", line 34, in pandas.lib.cache_readonly.__get__ (pandas/lib.c:40664) File ".../pandas/core/internals.py", line 4349, in dtype self.block.fill_value)[0]) File ".../pandas/core/common.py", line 1128, in _maybe_promote if issubclass(np.dtype(dtype).type, compat.string_types): TypeError: data type not understood ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9426/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9426/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9427
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9427/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9427/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9427/events
https://github.com/pandas-dev/pandas/pull/9427
56,748,535
MDExOlB1bGxSZXF1ZXN0Mjg3NzMxMzk=
9,427
ENH: Don't infer WOM-5MON if we don't support it (#9425)
{ "avatar_url": "https://avatars.githubusercontent.com/u/805293?v=4", "events_url": "https://api.github.com/users/craustin/events{/privacy}", "followers_url": "https://api.github.com/users/craustin/followers", "following_url": "https://api.github.com/users/craustin/following{/other_user}", "gists_url": "https://api.github.com/users/craustin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/craustin", "id": 805293, "login": "craustin", "node_id": "MDQ6VXNlcjgwNTI5Mw==", "organizations_url": "https://api.github.com/users/craustin/orgs", "received_events_url": "https://api.github.com/users/craustin/received_events", "repos_url": "https://api.github.com/users/craustin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/craustin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/craustin/subscriptions", "type": "User", "url": "https://api.github.com/users/craustin" }
[ { "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-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" }
3
2015-02-05T23:47:57Z
2015-06-02T19:26:59Z
2015-05-30T21:28:14Z
NONE
null
closes #9425
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9427/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9427/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9427.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9427", "merged_at": "2015-05-30T21:28:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9427.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9427" }
https://api.github.com/repos/pandas-dev/pandas/issues/9428
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9428/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9428/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9428/events
https://github.com/pandas-dev/pandas/issues/9428
56,753,148
MDU6SXNzdWU1Njc1MzE0OA==
9,428
DataFrame populated with the letter "n" when no data passed and dtype is specified as str
{ "avatar_url": "https://avatars.githubusercontent.com/u/6031088?v=4", "events_url": "https://api.github.com/users/ajcr/events{/privacy}", "followers_url": "https://api.github.com/users/ajcr/followers", "following_url": "https://api.github.com/users/ajcr/following{/other_user}", "gists_url": "https://api.github.com/users/ajcr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ajcr", "id": 6031088, "login": "ajcr", "node_id": "MDQ6VXNlcjYwMzEwODg=", "organizations_url": "https://api.github.com/users/ajcr/orgs", "received_events_url": "https://api.github.com/users/ajcr/received_events", "repos_url": "https://api.github.com/users/ajcr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ajcr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ajcr/subscriptions", "type": "User", "url": "https://api.github.com/users/ajcr" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2015-02-06T00:36:42Z
2015-07-25T14:52:34Z
2015-07-25T14:52:34Z
CONTRIBUTOR
null
This is discussed on Stack Overflow [here](http://stackoverflow.com/questions/28354207/why-is-an-empty-dataframe-of-dtype-str-filled-of-n/28355909). When constructing a DataFrame with the `dtype` as `str` but not passing in any data (just an index), the resulting DataFrame is filled with the letter `n`: ``` python In [61]: pd.DataFrame(index=range(2), columns=[0], dtype=str) Out[61]: 0 0 n 1 n ``` This is contrary to the behaviour of Series when no data is passed in: ``` python In [62]: pd.Series(index=range(2), dtype=str) Out[62]: 0 NaN 1 NaN dtype: object ``` It would be logical for the DataFrame to be populated with `NaN` in this instance too.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9428/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9428/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9429
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9429/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9429/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9429/events
https://github.com/pandas-dev/pandas/pull/9429
56,753,327
MDExOlB1bGxSZXF1ZXN0Mjg3NzU4NjA=
9,429
PERF: performance improvements in multi-key groupby
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "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-02-06T00:38:58Z
2015-02-07T13:05:53Z
2015-02-07T12:44:31Z
CONTRIBUTOR
null
``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- groupby_multi_index | 1008.6970 | 1861.1110 | 0.5420 | ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- Ratio < 1.0 means the target commit is faster then the baseline. Seed used: 1234 Target [907e1b7] : performance improvements in multi-key groupby Base [5dc8009] : Merge pull request #9418 from sinhrks/rn_20150205 DOC: Fix release note 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/9429/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9429/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9429.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9429", "merged_at": "2015-02-07T12:44:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9429.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9429" }
https://api.github.com/repos/pandas-dev/pandas/issues/9430
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9430/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9430/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9430/events
https://github.com/pandas-dev/pandas/issues/9430
56,754,361
MDU6SXNzdWU1Njc1NDM2MQ==
9,430
ValueError in io.data Options get_all_data function. Could not convert string to float.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7283778?v=4", "events_url": "https://api.github.com/users/pdiffley/events{/privacy}", "followers_url": "https://api.github.com/users/pdiffley/followers", "following_url": "https://api.github.com/users/pdiffley/following{/other_user}", "gists_url": "https://api.github.com/users/pdiffley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pdiffley", "id": 7283778, "login": "pdiffley", "node_id": "MDQ6VXNlcjcyODM3Nzg=", "organizations_url": "https://api.github.com/users/pdiffley/orgs", "received_events_url": "https://api.github.com/users/pdiffley/received_events", "repos_url": "https://api.github.com/users/pdiffley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pdiffley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pdiffley/subscriptions", "type": "User", "url": "https://api.github.com/users/pdiffley" }
[ { "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-02-06T00:52:41Z
2015-04-07T09:07:40Z
2015-04-07T09:07:33Z
NONE
null
When making the request ``` opt = Options('PCLN', 'yahoo') data = opt.get_all_data() ``` I get the error: ValueError Traceback (most recent call last) <ipython-input-8-f49f9e288226> in <module>() 1 opt = Options('PCLN', 'yahoo') ----> 2 data = opt.get_all_data() /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in get_all_data(self, call, put) 1088 expiry_dates, _ = self._get_expiry_dates_and_links() 1089 -> 1090 return self._get_data_in_date_range(dates=expiry_dates, call=call, put=put) 1091 1092 def _get_data_in_date_range(self, dates, call=True, put=True): /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in _get_data_in_date_range(self, dates, call, put) 1102 frame = getattr(self, nam) 1103 except AttributeError: -> 1104 frame = self._get_option_data(expiry=expiry_date, name=name) 1105 data.append(frame) 1106 /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in _get_option_data(self, expiry, name) 721 frames = getattr(self, frame_name) 722 except AttributeError: --> 723 frames = self._get_option_frames_from_yahoo(expiry) 724 725 option_data = frames[name] /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in _get_option_frames_from_yahoo(self, expiry) 653 def _get_option_frames_from_yahoo(self, expiry): 654 url = self._yahoo_url_from_expiry(expiry) --> 655 option_frames = self._option_frames_from_url(url) 656 frame_name = '_frames' + self._expiry_to_string(expiry) 657 setattr(self, frame_name, option_frames) /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in _option_frames_from_url(self, url) 682 if not hasattr(self, 'underlying_price'): 683 try: --> 684 self.underlying_price, self.quote_time = self._get_underlying_price(url) 685 except IndexError: 686 self.underlying_price, self.quote_time = np.nan, np.nan /usr/local/lib/python3.4/dist-packages/pandas/io/data.py in _get_underlying_price(self, url) 700 root = self._parse_url(url) 701 underlying_price = float(root.xpath('.//*[@class="time_rtq_ticker Fz-30 Fw-b"]')[0]\ --> 702 .getchildren()[0].text) 703 704 #Gets the time of the quote, note this is actually the time of the underlying price. ValueError: could not convert string to float: '1,044.60' It looks like commas just need to be stripped from the text before converting to a float.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9430/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9430/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9431
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9431/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9431/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9431/events
https://github.com/pandas-dev/pandas/issues/9431
56,761,312
MDU6SXNzdWU1Njc2MTMxMg==
9,431
Unique on the datetimeindex / datetime64 array
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2015-02-06T02:21:56Z
2015-08-03T22:03:11Z
2015-08-03T22:03:11Z
CONTRIBUTOR
null
http://stackoverflow.com/a/28357483/1240268 ``` In [11]: dti = pd.DatetimeIndex([pd.Timestamp('2015-02-05 22:24:00+0000', tz='UTC')]) In [12]: dti.unique() Out[12]: <class 'pandas.tseries.index.DatetimeIndex'> [2015-02-05 22:24:00+00:00] Length: 1, Freq: None, Timezone: UTC In [13]: pd.unique(dti) Out[13]: array([1423175040000000000L], dtype=object) In [14]: pd.unique(dti.values) Out[14]: array([1423175040000000000L], dtype=object) ``` _This is on 0.15.2, not checked on master._
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9431/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9431/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9432
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9432/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9432/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9432/events
https://github.com/pandas-dev/pandas/issues/9432
56,788,432
MDU6SXNzdWU1Njc4ODQzMg==
9,432
BUG: NotImplementedError not handled correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/286830?v=4", "events_url": "https://api.github.com/users/schryer/events{/privacy}", "followers_url": "https://api.github.com/users/schryer/followers", "following_url": "https://api.github.com/users/schryer/following{/other_user}", "gists_url": "https://api.github.com/users/schryer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schryer", "id": 286830, "login": "schryer", "node_id": "MDQ6VXNlcjI4NjgzMA==", "organizations_url": "https://api.github.com/users/schryer/orgs", "received_events_url": "https://api.github.com/users/schryer/received_events", "repos_url": "https://api.github.com/users/schryer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schryer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schryer/subscriptions", "type": "User", "url": "https://api.github.com/users/schryer" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": 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-02-06T09:16:11Z
2019-10-06T01:29:03Z
2019-10-06T01:29:03Z
NONE
null
#### Lets make a DataFrame with at least three rows (does not fail when only two rows are present). `df = pandas.DataFrame([[1], [2], [3]])` #### Selecting rows using query works as expected: `selected_df = df.query('index == [1, 2]')` #### However, performing traditional indexing fails because Pandas is trying to perform an operation on a NotImplementedError exception object: `df.index == [1, 2]` ``` /home/david/.virtualenvs/py34/lib/python3.4/site-packages/pandas/core/index.py in wrapper(self, other) 55 # technically we could support bool dtyped Index 56 # for now just return the indexing array directly ---> 57 if com.is_bool_dtype(result): 58 return result 59 try: /home/david/.virtualenvs/py34/lib/python3.4/site-packages/pandas/core/common.py in is_bool_dtype(arr_or_dtype) 2463 2464 def is_bool_dtype(arr_or_dtype): -> 2465 tipo = _get_dtype_type(arr_or_dtype) 2466 return issubclass(tipo, np.bool_) 2467 /home/david/.virtualenvs/py34/lib/python3.4/site-packages/pandas/core/common.py in _get_dtype_type(arr_or_dtype) 2392 elif isinstance(arr_or_dtype, CategoricalDtype): 2393 return CategoricalDtypeType -> 2394 return arr_or_dtype.dtype.type 2395 2396 AttributeError: 'NotImplementedType' object has no attribute 'dtype' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9432/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9432/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9433
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9433/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9433/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9433/events
https://github.com/pandas-dev/pandas/issues/9433
56,790,794
MDU6SXNzdWU1Njc5MDc5NA==
9,433
Error in div operation with DataFrame contains negative and 0 values
{ "avatar_url": "https://avatars.githubusercontent.com/u/1422508?v=4", "events_url": "https://api.github.com/users/kidphys/events{/privacy}", "followers_url": "https://api.github.com/users/kidphys/followers", "following_url": "https://api.github.com/users/kidphys/following{/other_user}", "gists_url": "https://api.github.com/users/kidphys/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kidphys", "id": 1422508, "login": "kidphys", "node_id": "MDQ6VXNlcjE0MjI1MDg=", "organizations_url": "https://api.github.com/users/kidphys/orgs", "received_events_url": "https://api.github.com/users/kidphys/received_events", "repos_url": "https://api.github.com/users/kidphys/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kidphys/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kidphys/subscriptions", "type": "User", "url": "https://api.github.com/users/kidphys" }
[ { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
null
2
2015-02-06T09:42:33Z
2015-02-07T00:26:07Z
2015-02-06T13:35:04Z
CONTRIBUTOR
null
``` python df1 = pd.DataFrame([-1, 0, 1]) df2 = pd.DataFrame([1, 1, 1]) df2/df1 0 0 -inf 1 inf 2 1.00000 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9433/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9433/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9434
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9434/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9434/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9434/events
https://github.com/pandas-dev/pandas/issues/9434
56,813,523
MDU6SXNzdWU1NjgxMzUyMw==
9,434
BUG: Timestamp from "y-m-d H" string
{ "avatar_url": "https://avatars.githubusercontent.com/u/141709?v=4", "events_url": "https://api.github.com/users/sjpfenninger/events{/privacy}", "followers_url": "https://api.github.com/users/sjpfenninger/followers", "following_url": "https://api.github.com/users/sjpfenninger/following{/other_user}", "gists_url": "https://api.github.com/users/sjpfenninger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sjpfenninger", "id": 141709, "login": "sjpfenninger", "node_id": "MDQ6VXNlcjE0MTcwOQ==", "organizations_url": "https://api.github.com/users/sjpfenninger/orgs", "received_events_url": "https://api.github.com/users/sjpfenninger/received_events", "repos_url": "https://api.github.com/users/sjpfenninger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sjpfenninger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sjpfenninger/subscriptions", "type": "User", "url": "https://api.github.com/users/sjpfenninger" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": 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-02-06T13:48:33Z
2015-02-06T13:51:34Z
2015-02-06T13:51:16Z
NONE
null
I have datetime strings of the form `"1996-4-7 0"`, where the `0` is supposed to be equivalent to `00:00` (i.e. hour 0). I want to turn them into timestamps, but this causes ValueErrors: ``` python pd.Timestamp('1996-4-7 0') # Result: ValueError ``` These work, on the other hand: ``` python pd.Timestamp('1996-4-7 00') # Result: Timestamp('1996-04-07 00:00:00') pd.Timestamp('1996-4-7') # Result: Timestamp('1996-04-07 00:00:00') ``` Maybe this is intentional behavior but looks like a bug to me, or at least an inconsistency. Note the same happens for any single-digit hour, but not for two-digit hours: ``` python pd.Timestamp('1996-4-7 8') # Result: ValueError pd.Timestamp('1996-4-7 11') # Result: Timestamp('1996-04-07 11:00:00') ``` Problem occurs in both stable 0.15.2 and 0.15.2-163-g671b384.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9434/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9434/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9435
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9435/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9435/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9435/events
https://github.com/pandas-dev/pandas/issues/9435
56,834,472
MDU6SXNzdWU1NjgzNDQ3Mg==
9,435
index_col in read_csv and read_table ignores dtype argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/161965?v=4", "events_url": "https://api.github.com/users/makmanalp/events{/privacy}", "followers_url": "https://api.github.com/users/makmanalp/followers", "following_url": "https://api.github.com/users/makmanalp/following{/other_user}", "gists_url": "https://api.github.com/users/makmanalp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makmanalp", "id": 161965, "login": "makmanalp", "node_id": "MDQ6VXNlcjE2MTk2NQ==", "organizations_url": "https://api.github.com/users/makmanalp/orgs", "received_events_url": "https://api.github.com/users/makmanalp/received_events", "repos_url": "https://api.github.com/users/makmanalp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makmanalp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makmanalp/subscriptions", "type": "User", "url": "https://api.github.com/users/makmanalp" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
17
2015-02-06T16:35:48Z
2021-03-08T12:47:12Z
null
CONTRIBUTOR
null
xref #11728 for the multi-index case xref https://github.com/pydata/pandas/issues/14379 for converters ``` python import pandas as pd import numpy as np from pandas.compat import StringIO data = """Internets,Spaceships 01,a 02,b 03,c 04,d 05,e 06,f """ # No leading zeroes in the index because it interprets the column as numeric print pd.read_csv(StringIO.StringIO(data), index_col="Internets") # Expected to see trailing zeroes in the index still, got 1,2,3,4 instead. Index is int64. print pd.read_csv(StringIO.StringIO(data), index_col="Internets", dtype={"Internets": np.object}) # Trailing zeroes now, index is object. print pd.read_csv(StringIO.StringIO(data), dtype={"Internets": np.object}).set_index("Internets") ``` Version: ``` In [1]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Darwin OS-release: 13.4.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: None numpy: 1.9.1 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 2.1.0 sphinx: None patsy: 0.3.0 dateutil: 2.4.0 pytz: 2011c bottleneck: None tables: None numexpr: 2.4 matplotlib: 1.3.1 openpyxl: 2.0.4 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: None lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.6 pymysql: None psycopg2: None ```
{ "+1": 11, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 11, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9435/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9435/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9436
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9436/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9436/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9436/events
https://github.com/pandas-dev/pandas/pull/9436
56,838,298
MDExOlB1bGxSZXF1ZXN0Mjg4MjQyMTA=
9,436
Fix typo in np.uint8 type in pandas.io.parsers
{ "avatar_url": "https://avatars.githubusercontent.com/u/321872?v=4", "events_url": "https://api.github.com/users/ronnix/events{/privacy}", "followers_url": "https://api.github.com/users/ronnix/followers", "following_url": "https://api.github.com/users/ronnix/following{/other_user}", "gists_url": "https://api.github.com/users/ronnix/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ronnix", "id": 321872, "login": "ronnix", "node_id": "MDQ6VXNlcjMyMTg3Mg==", "organizations_url": "https://api.github.com/users/ronnix/orgs", "received_events_url": "https://api.github.com/users/ronnix/received_events", "repos_url": "https://api.github.com/users/ronnix/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ronnix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ronnix/subscriptions", "type": "User", "url": "https://api.github.com/users/ronnix" }
[]
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-02-06T17:02:57Z
2015-03-06T00:00:31Z
2015-03-06T00:00:27Z
NONE
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9436/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9436/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9436.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9436", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9436.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9436" }
https://api.github.com/repos/pandas-dev/pandas/issues/9437
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9437/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9437/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9437/events
https://github.com/pandas-dev/pandas/pull/9437
56,871,062
MDExOlB1bGxSZXF1ZXN0Mjg4NDM4MDA=
9,437
DOC: Clarify definition of kurtosis used
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "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" }
3
2015-02-06T21:32:39Z
2015-06-04T20:46:54Z
2015-02-10T14:16:52Z
CONTRIBUTOR
null
Added explation that kurtosis returned is Fisher's kurtosis, also known as excess kurtosis. Also cleans up the kurtosis function to remove some unused computations.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9437/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9437/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9437.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9437", "merged_at": "2015-02-10T14:16:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9437.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9437" }
https://api.github.com/repos/pandas-dev/pandas/issues/9438
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9438/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9438/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9438/events
https://github.com/pandas-dev/pandas/issues/9438
56,873,297
MDU6SXNzdWU1Njg3MzI5Nw==
9,438
read_csv and unicode characters in filename (python 2.7, pandas 15.2)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1493341?v=4", "events_url": "https://api.github.com/users/jmatejka/events{/privacy}", "followers_url": "https://api.github.com/users/jmatejka/followers", "following_url": "https://api.github.com/users/jmatejka/following{/other_user}", "gists_url": "https://api.github.com/users/jmatejka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jmatejka", "id": 1493341, "login": "jmatejka", "node_id": "MDQ6VXNlcjE0OTMzNDE=", "organizations_url": "https://api.github.com/users/jmatejka/orgs", "received_events_url": "https://api.github.com/users/jmatejka/received_events", "repos_url": "https://api.github.com/users/jmatejka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jmatejka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jmatejka/subscriptions", "type": "User", "url": "https://api.github.com/users/jmatejka" }
[ { "color": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
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" }
10
2015-02-06T21:52:45Z
2019-08-30T06:55:04Z
2017-07-08T22:15:23Z
NONE
null
The code: ``` import pandas df = pandas.read_csv(u"C:/成功例Q309~Metadata.tsv") ``` does not work, and gives the output: ``` IOError: File C:/???Q309.ppt~Metadata.tsv does not exist ``` It seems similar in nature to this issue: https://github.com/pydata/pandas/issues/9315 however #9315 was reportedly fixed in 14.2 with 3.3.5. I am using 15.1 and 2.7.7. Here is the output of `pd.show_versions()`: commit: None python: 2.7.7.final.0 python-bits: 64 OS: Windows OS-release: 8 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: en_US pandas: 0.15.2 nose: 1.3.3 Cython: 0.20.1 numpy: 1.9.1 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 2.3.1 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.2 pytz: 2014.9 bottleneck: None tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.1 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.5 lxml: 3.3.5 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.4 pymysql: None psycopg2: None Thanks, Justin
{ "+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/9438/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9438/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9439
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9439/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9439/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9439/events
https://github.com/pandas-dev/pandas/pull/9439
56,878,968
MDExOlB1bGxSZXF1ZXN0Mjg4NDg3OTc=
9,439
ENH: Add StringMethods.isnumeric and isdecimal
{ "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" }
1
2015-02-06T22:47:18Z
2015-02-11T10:41:58Z
2015-02-10T14:14:19Z
MEMBER
null
Derived from #9111.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9439/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9439/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9439.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9439", "merged_at": "2015-02-10T14:14:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9439.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9439" }
https://api.github.com/repos/pandas-dev/pandas/issues/9440
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9440/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9440/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9440/events
https://github.com/pandas-dev/pandas/pull/9440
56,906,527
MDExOlB1bGxSZXF1ZXN0Mjg4NjI0Mjg=
9,440
PERF: Move Period class and related functions to Cython module
{ "avatar_url": "https://avatars.githubusercontent.com/u/1435085?v=4", "events_url": "https://api.github.com/users/blbradley/events{/privacy}", "followers_url": "https://api.github.com/users/blbradley/followers", "following_url": "https://api.github.com/users/blbradley/following{/other_user}", "gists_url": "https://api.github.com/users/blbradley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/blbradley", "id": 1435085, "login": "blbradley", "node_id": "MDQ6VXNlcjE0MzUwODU=", "organizations_url": "https://api.github.com/users/blbradley/orgs", "received_events_url": "https://api.github.com/users/blbradley/received_events", "repos_url": "https://api.github.com/users/blbradley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/blbradley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/blbradley/subscriptions", "type": "User", "url": "https://api.github.com/users/blbradley" }
[ { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2015-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" }
31
2015-02-07T10:31:00Z
2015-02-17T14:38:12Z
2015-02-17T14:33:06Z
CONTRIBUTOR
null
I propose that Period should be a more basic type, like Timestamp. I wanted to start with implementing frequencies with multipliers (see issue #7811), but the code for Period was all over the place. So, I moved all code directly related to Period to a Cython module. Changed a bit of the logic to make calls from Cython instead of Python to get rid of some Python dependencies. However, the 'meat' of Period is still there. I will be refactoring Period to use Cython over the next week or two. I've only done a bit of performance testing, but the results from moving Period are good so far without any real Cython refactoring. Note: First commit in this stream is from #9415 because I needed that bug fixed to make this work. Comments most welcome!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9440/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9440/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9440.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9440", "merged_at": "2015-02-17T14:33:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9440.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9440" }
https://api.github.com/repos/pandas-dev/pandas/issues/9441
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9441/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9441/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9441/events
https://github.com/pandas-dev/pandas/pull/9441
56,912,490
MDExOlB1bGxSZXF1ZXN0Mjg4NjQ2NDE=
9,441
BUG: scatter_matrix draws incorrect axis
{ "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-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" }
5
2015-02-07T14:12:40Z
2015-04-01T03:27:26Z
2015-03-31T21:06:09Z
MEMBER
null
Closes #5662. Refactored a little. Made examples to confirm 1st and 2nd row's yaxis are identical. ``` import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(100, 3)) df[0] = df[1] pd.tools.plotting.scatter_matrix(df) ``` ![figure_1](https://cloud.githubusercontent.com/assets/1696302/6092365/63f4ce98-af1e-11e4-9175-eba45b483bba.png) ``` df[1] = df[1] / 3 - 2 df[0] = df[1] pd.tools.plotting.scatter_matrix(df) ``` ![figure_2](https://cloud.githubusercontent.com/assets/1696302/6092366/68041dea-af1e-11e4-8ecd-cfcb33aaf1a9.png)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9441/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9441/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9441.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9441", "merged_at": "2015-03-31T21:06:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9441.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9441" }
https://api.github.com/repos/pandas-dev/pandas/issues/9442
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9442/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9442/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9442/events
https://github.com/pandas-dev/pandas/issues/9442
56,921,839
MDU6SXNzdWU1NjkyMTgzOQ==
9,442
Strange Behavior of mean() with timedelta64
{ "avatar_url": "https://avatars.githubusercontent.com/u/5667194?v=4", "events_url": "https://api.github.com/users/tjcrone/events{/privacy}", "followers_url": "https://api.github.com/users/tjcrone/followers", "following_url": "https://api.github.com/users/tjcrone/following{/other_user}", "gists_url": "https://api.github.com/users/tjcrone/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tjcrone", "id": 5667194, "login": "tjcrone", "node_id": "MDQ6VXNlcjU2NjcxOTQ=", "organizations_url": "https://api.github.com/users/tjcrone/orgs", "received_events_url": "https://api.github.com/users/tjcrone/received_events", "repos_url": "https://api.github.com/users/tjcrone/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tjcrone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjcrone/subscriptions", "type": "User", "url": "https://api.github.com/users/tjcrone" }
[ { "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-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
6
2015-02-07T19:07:25Z
2015-08-29T13:12:39Z
2015-08-29T13:12:39Z
NONE
null
xref #6549 When a dataframe with a timedelta64 is very large, the mean() function does not work as expected. In the following code, the mean is incorrect but all the other stats are fine: ``` python import numpy as np import pandas as pd dates1 = pd.date_range(start='20000101T000000', end='20150101T230000', freq='1H').values dates2 = dates1 + np.random.randint(0*60*60*1000000000, 10*24*60*60*1000000000, len(dates1)) df = pd.DataFrame({'dates1':dates1, 'dates2':dates2}) df['tdiff'] = dates2-dates1 df['fdiff'] = df['tdiff'].apply(lambda x: float(x.item())/1000000000/3600/24) df.describe() ``` By making the length smaller, by changing the start date in the above example: ``` python dates1 = pd.date_range(start='20140101T000000', end='20150101T230000', freq='1H').values ``` The correct result is obtained. (The mean of the timedelta should be about 5 days.) Is this an open bug? Version: ``` python pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Darwin OS-release: 13.4.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: C LANG: en_US.UTF-8 pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.2 numpy: 1.9.1 scipy: 0.15.1 statsmodels: None IPython: 2.3.1 sphinx: 1.2.3 patsy: None dateutil: 2.4.0 pytz: 2014.10 bottleneck: None tables: None numexpr: None matplotlib: 1.4.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9442/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9442/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9443
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9443/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9443/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9443/events
https://github.com/pandas-dev/pandas/issues/9443
56,953,916
MDU6SXNzdWU1Njk1MzkxNg==
9,443
Series.value_counts doesn't respect dropna = False for categorical series
{ "avatar_url": "https://avatars.githubusercontent.com/u/322730?v=4", "events_url": "https://api.github.com/users/Kodiologist/events{/privacy}", "followers_url": "https://api.github.com/users/Kodiologist/followers", "following_url": "https://api.github.com/users/Kodiologist/following{/other_user}", "gists_url": "https://api.github.com/users/Kodiologist/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Kodiologist", "id": 322730, "login": "Kodiologist", "node_id": "MDQ6VXNlcjMyMjczMA==", "organizations_url": "https://api.github.com/users/Kodiologist/orgs", "received_events_url": "https://api.github.com/users/Kodiologist/received_events", "repos_url": "https://api.github.com/users/Kodiologist/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Kodiologist/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kodiologist/subscriptions", "type": "User", "url": "https://api.github.com/users/Kodiologist" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "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-02-08T14:50:01Z
2015-03-08T16:13:04Z
2015-03-08T16:13:04Z
CONTRIBUTOR
null
Right: ``` $ python -c 'import pandas; print pandas.Series([1, 2, None, 1, 1, 3, None, 3]).value_counts(dropna = False)' 1 3 3 2 NaN 2 2 1 dtype: int64 ``` Wrong, because there is no row for NaN: ``` $ python -c 'import pandas; print pandas.Series([1, 2, None, 1, 1, 3, None, 3], dtype = "category").value_counts(dropna = False)' 1 3 3 2 2 1 dtype: int64 ``` `pandas.show_versions()` yields: commit: None python: 2.7.8.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-30-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.18 numpy: 1.9.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.3.0 sphinx: None patsy: 0.2.1 dateutil: 2.4.0 pytz: 2014.10 bottleneck: None tables: None numexpr: None matplotlib: 1.4.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.999 httplib2: 0.9 apiclient: None rpy2: 2.4.2 sqlalchemy: None pymysql: None psycopg2: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9443/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9443/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9444
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9444/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9444/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9444/events
https://github.com/pandas-dev/pandas/issues/9444
56,955,610
MDU6SXNzdWU1Njk1NTYxMA==
9,444
sort=False ignored in Series groupby on MultiIndex levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/223276?v=4", "events_url": "https://api.github.com/users/cottrell/events{/privacy}", "followers_url": "https://api.github.com/users/cottrell/followers", "following_url": "https://api.github.com/users/cottrell/following{/other_user}", "gists_url": "https://api.github.com/users/cottrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cottrell", "id": 223276, "login": "cottrell", "node_id": "MDQ6VXNlcjIyMzI3Ng==", "organizations_url": "https://api.github.com/users/cottrell/orgs", "received_events_url": "https://api.github.com/users/cottrell/received_events", "repos_url": "https://api.github.com/users/cottrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cottrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cottrell/subscriptions", "type": "User", "url": "https://api.github.com/users/cottrell" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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-02-08T15:40:42Z
2015-02-11T14:19:34Z
2015-02-11T14:19:34Z
CONTRIBUTOR
null
Example: ``` import pandas def geta(): i = pandas.MultiIndex.from_tuples([(1, 2, 'a', 0), (1, 2, 'a', 1), (1, 1, 'b', 0), (1, 1, 'b', 1), (2, 1, 'b', 0), (2, 1, 'b', 1)], names=['a', 'b', 'c', 'd']) a = pandas.Series([0, 1, 2, 3, 4, 5], index=i) return(a) for dosort in [True, False]: a = geta() b = a.groupby(level=['a', 'b'], sort=dosort).first() a = None print('%s, sort=%s, \n%s' % (geta.__name__, dosort, b)) ``` Output: ``` geta, sort=True, a b 1 1 2 2 0 2 1 4 dtype: int64 geta, sort=False, a b 1 1 2 2 0 2 1 4 dtype: int64 ``` Also see: https://github.com/pydata/pandas/pull/9076 Possibly related to: https://github.com/pydata/pandas/issues/8868
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9444/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9444/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9445
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9445/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9445/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9445/events
https://github.com/pandas-dev/pandas/pull/9445
56,965,565
MDExOlB1bGxSZXF1ZXN0Mjg4ODU3NDM=
9,445
PERF: performance improvement in MultiIndex.sortlevel
{ "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": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "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-02-08T20:10:45Z
2015-03-05T12:48:28Z
2015-02-16T12:33:49Z
CONTRIBUTOR
null
``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- multiindex_sortlevel_int64 | 664.1977 | 2443.2590 | 0.2718 | ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- Ratio < 1.0 means the target commit is faster then the baseline. Seed used: 1234 Target [dd31bae] : performance improvement in MultiIndex.sortlevel Base [c4a996a] : Merge pull request #9411 from dashesy/add_sql_test test sql table name ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9445/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9445/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9445.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9445", "merged_at": "2015-02-16T12:33:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9445.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9445" }
https://api.github.com/repos/pandas-dev/pandas/issues/9446
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9446/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9446/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9446/events
https://github.com/pandas-dev/pandas/issues/9446
56,978,131
MDU6SXNzdWU1Njk3ODEzMQ==
9,446
DOC: HDF access limitations and Comparison of SQL/HDF
{ "avatar_url": "https://avatars.githubusercontent.com/u/3750670?v=4", "events_url": "https://api.github.com/users/rnelsonchem/events{/privacy}", "followers_url": "https://api.github.com/users/rnelsonchem/followers", "following_url": "https://api.github.com/users/rnelsonchem/following{/other_user}", "gists_url": "https://api.github.com/users/rnelsonchem/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rnelsonchem", "id": 3750670, "login": "rnelsonchem", "node_id": "MDQ6VXNlcjM3NTA2NzA=", "organizations_url": "https://api.github.com/users/rnelsonchem/orgs", "received_events_url": "https://api.github.com/users/rnelsonchem/received_events", "repos_url": "https://api.github.com/users/rnelsonchem/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rnelsonchem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rnelsonchem/subscriptions", "type": "User", "url": "https://api.github.com/users/rnelsonchem" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 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-02-09T01:18:04Z
2015-02-10T20:46:54Z
null
NONE
null
I think that the documentation for HDFStore could be more explicit about the limitations of accessing data from an HDF file. For example, it is not at all clear from the docs that when selecting several columns of data from a saved table that the entire table needs to be read into memory. Specifically, one might be tempted to do the following to select 3 columns from a very large table: ``` df = h5.select('test', columns=['col2', 'col7', 'col128']) ``` However, that process will potentially read a very large portion (if not all) of the table into memory, which is obviously a problem if the table doesn't fit into memory. Instead, one should really do something like this: ``` columns = ['col2', 'col7', 'col128'] df = pd.concat([tmp for tmp in h5.select('test', columns=columns, chunksize=50000)]) ``` I think it also might be helpful to include some sort of comparison of HDF and SQL solutions for table storage. Maybe we could solicit use-cases from the mailing list for successful applications of one or the other. I've been using HDF files for several years, though never before with tables containing many, many columns, which tripped me up in my example above. I almost turned to SQLite, because the above selection is very simple and has a reasonable memory usage footprint: ``` engine = sqlalchemy.create_engine('sqlite:///test.db') df = pd.read_sql_query('select col2,col7,col128 from test', engine) ``` However, I profiled this and it is several times slower, so I'll probably stick with HDF because I am much more familiar with the format and prefer the access speed for large tables. Anyway, just a couple of thoughts. I'm happy to try to put some of this into the docs, if people think it is appropriate.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9446/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9446/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9447
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9447/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9447/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9447/events
https://github.com/pandas-dev/pandas/issues/9447
57,013,605
MDU6SXNzdWU1NzAxMzYwNQ==
9,447
Undocumented API changes in groupby.apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
null
5
2015-02-09T10:36:16Z
2019-10-26T04:00:31Z
2019-10-26T04:00:31Z
MEMBER
null
At some time [last year](https://github.com/pydata/pandas/issues/4646#issue-18447522), ``` pd.DataFrame([[1, 2], [2, 3], [1, 4], [1, 5], [2, 6]]).groupby(0).apply(lambda x: pd.Series(np.arange(len(x)), x.index)) ``` would return ``` 0 0 1 0 2 1 3 2 4 1 dtype: int64 ``` In 0.14, it returns ``` 0 1 0 0 2 1 3 2 dtype: int64 2 1 0 4 1 dtype: int64 dtype: object ``` while in current git snapshot, it returns ``` 1 0 0 2 1 3 2 2 1 0 4 1 dtype: int64 ``` No nostalgia... but would it make sense to refer to the different behavior in different versions in the documentation of GroupBy.apply()? Moreover: the (last version of the) docs say "case 2: group DataFrame apply transform function ((f(chunk) -> DataFrame with same indexes) yield DataFrame with resulting chunks glued together", and I think this is the case which applies. However the docs omit to mention "with group axis having group labels", as they do instead for case 1 (f(chunk) -> Series). I will/would gladly submit a PR to enhance the docs... once I myself understand how things are supposed to work.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9447/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9447/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9448
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9448/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9448/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9448/events
https://github.com/pandas-dev/pandas/issues/9448
57,016,030
MDU6SXNzdWU1NzAxNjAzMA==
9,448
API: consistent float_format specification
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "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": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2015-02-09T10:59:59Z
2020-05-07T03:35:38Z
null
MEMBER
null
For now just some observations: - The docstring of different funtions about `float_format`: - the documentation of [`to_csv`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html) (as well as `to_excel`) states: `string, Format string for floating point numbers` - Example of this usage: `df.to_csv(float_format='%.3f')` - The docstring of [`to_string`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_string.html) (as well as `to_html`) says: `one-parameter function, Formatter function to apply to columns’ elements if they are floats` - Example of this usage: `df.to_string(float_format='{:.3f}'.format)` - The option `display.float_format` also accepts a callable following the [docs](http://pandas.pydata.org/pandas-docs/stable/options.html?highlight=float_format#list-of-options) - The narrative docs are consistent with that: - http://pandas.pydata.org/pandas-docs/stable/io.html#writing-to-csv-format - http://pandas.pydata.org/pandas-docs/stable/io.html#writing-a-formatted-string Question: - Should we make this consistent? Eg that all methods can accept both a format string as a format function? - Should we make the usage of `'{:.3f}'.format)` more convenient? There are a lot of different issues already about formatting, but I didn't find anything about this in specific.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9448/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9448/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9449
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9449/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9449/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9449/events
https://github.com/pandas-dev/pandas/issues/9449
57,017,107
MDU6SXNzdWU1NzAxNzEwNw==
9,449
to_clipboard issue with float_format
{ "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2015-02-09T11:11:11Z
2019-10-21T19:34:16Z
null
MEMBER
null
Related to #9448, using the following example: ``` In [143]: df = pd.DataFrame(np.random.randn(5,2), columns=['A', 'B']) In [144]: df Out[144]: A B 0 -1.151315 -2.174735 1 -1.031375 -1.957344 2 -0.619368 -0.835133 3 2.562381 -0.294245 4 2.432353 0.032805 ``` `to_clipboard` is said to pass the `kwargs` to `to_csv` (see docs: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_clipboard.html). However, that seems not be fully true for the `float_format` kwarg: ``` df.to_clipboard(float_format='%.3f') -> A B 0 -1.151 -2.175 1 -1.031 -1.957 2 -0.619 -0.835 3 2.562 -0.294 4 2.432 0.033 ``` Now using a callable: ``` df.to_clipboard(float_format='{:.3f}'.format) -> A B 0 -1.151 -2.175 1 -1.031 -1.957 2 -0.619 -0.835 3 2.562 -0.294 4 2.432 0.033 ``` but this does not work with `to_csv`: ``` In [150]: df.to_csv(float_format='{:.3f}'.format) --------------------------------------------------------------------------- TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'float' ``` Furthermore, when using a function as `float_format`, the result is no longer pastable in excel, even with `excel=True` (the default).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9449/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9449/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9450
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9450/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9450/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9450/events
https://github.com/pandas-dev/pandas/pull/9450
57,021,146
MDExOlB1bGxSZXF1ZXN0Mjg5MTQ1MjU=
9,450
ENH Read mutiple excel sheets in single API call
{ "avatar_url": "https://avatars.githubusercontent.com/u/6062071?v=4", "events_url": "https://api.github.com/users/jnmclarty/events{/privacy}", "followers_url": "https://api.github.com/users/jnmclarty/followers", "following_url": "https://api.github.com/users/jnmclarty/following{/other_user}", "gists_url": "https://api.github.com/users/jnmclarty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jnmclarty", "id": 6062071, "login": "jnmclarty", "node_id": "MDQ6VXNlcjYwNjIwNzE=", "organizations_url": "https://api.github.com/users/jnmclarty/orgs", "received_events_url": "https://api.github.com/users/jnmclarty/received_events", "repos_url": "https://api.github.com/users/jnmclarty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jnmclarty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jnmclarty/subscriptions", "type": "User", "url": "https://api.github.com/users/jnmclarty" }
[ { "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": "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": "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": "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" }
32
2015-02-09T11:53:24Z
2015-02-24T00:52:59Z
2015-02-23T12:52:09Z
CONTRIBUTOR
null
Enables reading of multiple excel sheets in a single API call, reducing read time substantially. Essentially, 2O(n) becomes O(1) + O(n). ## Before ``` python dfs = {} for sheet in [‘Sheet1’,’Sheet2’,’Sheet3’]: #We have to open the file 3 times = Super Slow dfs[sheet] = pd.read_excel("TestData.xlsx",sheetname=sheet) ``` ## This PR ``` python #We open the file only 1 time = Much Faster, and it's just one python line dfs = pd.read_excel("TestData.xlsx",sheetname=[‘Sheet1’,’Sheet2’,’Sheet3’]) ``` ...but as a bonus... ``` python #the above is the same as... dfs = pd.read_excel_sheets("TestData.xlsx",[‘Sheet1’,’Sheet2’,’Sheet3’]) #or, assuming those are there are only the 3 sheets... dfs = pd.read_excel_sheets("TestData.xlsx") #and this also works. But the dictionary returned has the integer keys instead of strings. dfs = pd.read_excel_sheets("TestData.xlsx",[0,1,2]) ``` ## Return Objects For the sheetname argument, specifying an int or a string, gets you a DataFrame (same as before the PR). But, specify a list of strings/int, returns a dictionary of dataframes. Specify None, and get all sheets in dictionary of dataframes, where the keys are the sheetnames. ## More Discussion The first commit (2db986d) implements 100% of the functionality, while the next two commits (5c2304c and 1a53b01) layer on optional changes to the documentation and API (of the two, only one is actually mandatory, but keeping both is the most explicit). Since the argument, sheetname, in read_excel was not plural, and defaults to 0, to maintain backwards compatibility AND create the “read all sheets” functionality associated with the non-default of None, the documentation of the argument gets really awkward. Hence, creating read_excel_sheets with an argument sheetnames which defaults to None instead of 0. Things I need feedback on: - [x] Confirm print statement acceptability - [x] Confirm if sheetname argument documentation should be changed (or not, to avoid confusion of dictionary-based return cases) - [x] Confirm if read_excel_sheets addition to API is right approach Things I still have to do: - [x] Test/write tests - [x] Update the release notes - [x] Build the docs and check Note: There might have been another way of doing this, but I couldn't easily figure it out, (SO/google wasn't helpful). I just wanted to read my 623 sheets without it taking hours.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9450/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9450/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9450.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9450", "merged_at": "2015-02-23T12:52:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9450.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9450" }
https://api.github.com/repos/pandas-dev/pandas/issues/9451
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9451/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9451/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9451/events
https://github.com/pandas-dev/pandas/pull/9451
57,025,527
MDExOlB1bGxSZXF1ZXN0Mjg5MTcxNTY=
9,451
BUG: handle NotImplementedError in Index comparisons
{ "avatar_url": "https://avatars.githubusercontent.com/u/286830?v=4", "events_url": "https://api.github.com/users/schryer/events{/privacy}", "followers_url": "https://api.github.com/users/schryer/followers", "following_url": "https://api.github.com/users/schryer/following{/other_user}", "gists_url": "https://api.github.com/users/schryer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schryer", "id": 286830, "login": "schryer", "node_id": "MDQ6VXNlcjI4NjgzMA==", "organizations_url": "https://api.github.com/users/schryer/orgs", "received_events_url": "https://api.github.com/users/schryer/received_events", "repos_url": "https://api.github.com/users/schryer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schryer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schryer/subscriptions", "type": "User", "url": "https://api.github.com/users/schryer" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": 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-02-09T12:40:34Z
2015-05-09T16:03:59Z
2015-05-09T16:03:59Z
NONE
null
Fixes issue #9432 A very specific fix that is not anticipated to impact performance. The test performed is safe and documents that the origin of the problem is actually numpy. When this numpy bug is fixed it will be easy to remove this code.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9451/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9451/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9451.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9451", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9451.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9451" }
https://api.github.com/repos/pandas-dev/pandas/issues/9452
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9452/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9452/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9452/events
https://github.com/pandas-dev/pandas/issues/9452
57,032,125
MDU6SXNzdWU1NzAzMjEyNQ==
9,452
BUG/COMPAT: io.common.get_filepath_or_buffer should use pass encoding parameter
{ "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": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "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-02-09T13:45:35Z
2015-03-06T03:20:52Z
2015-03-06T03:20:52Z
CONTRIBUTOR
null
Ran into this when downloading a file from s3 with py3. [This line](https://github.com/pydata/pandas/blob/master/pandas/io/common.py#L157) needs to pass the encoding parameter to the boto method `.get_contents_as_string`, else it returns a stream of bytes which trips up StringIO on python 3. Simple fix. Will try to get to it tonight unless someone beats me to 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/9452/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9452/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9453
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9453/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9453/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9453/events
https://github.com/pandas-dev/pandas/issues/9453
57,041,879
MDU6SXNzdWU1NzA0MTg3OQ==
9,453
AssertionError if transform() changes number of columns (DOC?)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "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" } ]
open
false
null
[]
null
3
2015-02-09T15:05:08Z
2019-03-08T20:26:58Z
null
MEMBER
null
``` df = pd.DataFrame([[1, 2, 3], [2, 3, 3], [1, 4, 3], [1, 5, 4], [2, 6, 4]]) def onlycol0(group): return group[[group.columns[0]]] g = df.groupby(0) g.transform(onlycol0) ``` raises an "AssertionError: invalid dtype determination in get_concat_dtype". ``` def onemorecol(group): group['new'] = 2 return group g.transform(onemorecol) ``` raises a "ValueError: Length mismatch: Expected axis has 4 elements, new values have 3 elements". ``` def reversecols(group): return group[group.columns[::-1]] g.transform(reversecols) ``` apparently works fine, but the resulting DataFrame has columns unchanged. So: the docs should probably state that func must return a DataFrame with same index _and columns_ (confusion is possible also because the docs for apply() refer to applying "transform function" but in a more general sense). I will submit a PR.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9453/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9453/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9454
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9454/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9454/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9454/events
https://github.com/pandas-dev/pandas/issues/9454
57,045,655
MDU6SXNzdWU1NzA0NTY1NQ==
9,454
factorize fails for list of tuples
{ "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eyurtsev", "id": 3205522, "login": "eyurtsev", "node_id": "MDQ6VXNlcjMyMDU1MjI=", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "repos_url": "https://api.github.com/users/eyurtsev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "type": "User", "url": "https://api.github.com/users/eyurtsev" }
[ { "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": "eb6420", "default": false, "description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff", "id": 57296398, "name": "Algos", "node_id": "MDU6TGFiZWw1NzI5NjM5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": "2018-05-16T03:09:58Z", "closed_issues": 1645, "created_at": "2017-10-20T10:17:09Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.22", "due_on": "2018-05-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/53", "id": 2853937, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels", "node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==", "number": 53, "open_issues": 0, "state": "closed", "title": "0.23.0", "updated_at": "2018-08-20T06:48:57Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53" }
3
2015-02-09T15:32:34Z
2017-12-09T15:37:47Z
2017-12-09T15:37:47Z
NONE
null
It's not clear from the documentation for factorize what datatype is expected for the values. But I assume that any list of hashables should work (specifically, a list of tuples). Factorize indeed works for a list of tuples as long as the lens of all the tuples are not identical, but fails the moment all tuples have the same length. (Looks like there is some inference about the structure of the values that shouldn't be happening.) ``` python import pandas as pd pd.factorize([(1, 1), (1, 2), (0, 0), (1, 2), 'nonsense']) # This works (array([0, 1, 2, 1, 3]), array([(1, 1), (1, 2), (0, 0), 'nonsense'], dtype=object)) pd.factorize([(1, 1), (1, 2), (0, 0), (1, 2), (1, 2, 3)]) # This also works. pd.factorize([(1, 1), (1, 2), (0, 0), (1, 2)]) # <-- fails ``` ``` ValueError Traceback (most recent call last) <ipython-input-22-3ca8ec02e16c> in <module>() 1 print pd.factorize([(1, 1), (1, 2), (0, 0), (1, 2), 'nonsense']) ----> 2 print pd.factorize([(1, 1), (1, 2), (0, 0), (1, 2)]) /usr/local/lib/python2.7/dist-packages/pandas/core/algorithms.pyc in factorize(values, sort, order, na_sentinel) 132 table = hash_klass(len(vals)) 133 uniques = vec_klass() --> 134 labels = table.get_labels(vals, uniques, 0, na_sentinel) 135 136 labels = com._ensure_platform_int(labels) /usr/local/lib/python2.7/dist-packages/pandas/hashtable.so in pandas.hashtable.Int64HashTable.get_labels (pandas/hashtable.c:8575)() ValueError: Buffer has wrong number of dimensions (expected 1, got 2) ``` pandas 0.15.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/9454/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9454/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9455
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9455/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9455/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9455/events
https://github.com/pandas-dev/pandas/issues/9455
57,097,969
MDU6SXNzdWU1NzA5Nzk2OQ==
9,455
ERR: better error message on invalid on with multi-index columns
{ "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": "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" } ]
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" }
15
2015-02-09T22:11:29Z
2016-04-25T14:38:03Z
2016-04-25T14:38:03Z
CONTRIBUTOR
null
Consider the following: ``` > a_df object_uid item_uid 0 0FlIRitxKX 0D1dPxep2C 1 0FLPRriacw 0DoYxRkSdr 2 0FUh6FQ4mQ 0DsOBGsYl9 3 0FH1hIfNCL 0DoYxRkSdr 4 0FZVBzi2DX 0DoYxRkSdr 5 0FAJ5vfLQs 0DoYxRkSdr 6 0F7lEk65qa 0DoYxRkSdr 7 0Fqe3TIN7Q 0DoYxRkSdr 8 0FrSgt4Vut 0DsOBGsYl9 9 0FByA7F19x 0DoYxRkSdr ``` and ``` > b_df object_uid after before change_rate micro_spend micro_spend 0 0F0092Ntoi 2.940774e+09 2.932917e+09 0.267909 1 0F01SZnTfs 3.000654e+07 2.887034e+07 3.935523 2 0F027Rm6rd 6.729106e+07 6.912947e+07 -2.659376 3 0F02BZeTr6 2.072908e+09 2.048737e+09 1.179802 4 0F02Vwd6Ou 1.619934e+08 1.682784e+08 -3.734909 ``` I would like to do an inner join in `object_uid`. When I do: ``` pd.merge(a_df, b_df, on='object_uid') ``` I get: `AttributeError: 'numpy.ndarray' object has no attribute 'start'` This is with: ``` > pd.pandas.__version__ '0.15.2' ``` The full error trace is below: ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-131-5e11878c8b10> in <module>() ----> 1 pd.merge(exp_setup_df.head(10).iloc[:, [0,4]].copy(), spend_diff.reset_index().head(10).copy(), on='flight_uid') /Users/avazquez/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tools/merge.py in merge(left, right, how, on, left_on, right_on, left_index, right_index, sort, s uffixes, copy) 36 right_on=right_on, left_index=left_index, 37 right_index=right_index, sort=sort, suffixes=suffixes, ---> 38 copy=copy) 39 return op.get_result() 40 if __debug__: /Users/avazquez/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tools/merge.py in __init__(self, left, right, how, on, left_on, right_on, axis, left_index, right _index, sort, suffixes, copy) 182 (self.left_join_keys, 183 self.right_join_keys, --> 184 self.join_names) = self._get_merge_keys() 185 186 def get_result(self): /Users/avazquez/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tools/merge.py in _get_merge_keys(self) 386 387 if right_drop: --> 388 self.right = self.right.drop(right_drop, axis=1) 389 390 return left_keys, right_keys, join_names /Users/avazquez/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/core/generic.py in drop(self, labels, axis, level, inplace, **kwargs) 1559 new_axis = axis.drop(labels, level=level) 1560 else: -> 1561 new_axis = axis.drop(labels) 1562 dropped = self.reindex(**{axis_name: new_axis}) 1563 try: /Users/avazquez/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/core/index.py in drop(self, labels, level) 3734 inds.append(loc) 3735 else: -> 3736 inds.extend(lrange(loc.start, loc.stop)) 3737 3738 return self.delete(inds) AttributeError: 'numpy.ndarray' object has no attribute 'start' ``` Also, the following works: ``` > result_df = pd.concat([a_df.set_index('object_uid'), b_df.set_index('object_uid'], axis=1).columns ``` but it flattens my columns: ``` > result_df.columns Index(['object_uid', ('after','micro_spend'), ('before', 'micro_spend'), 'item_id'], 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/9455/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9455/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9456
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9456/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9456/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9456/events
https://github.com/pandas-dev/pandas/issues/9456
57,172,776
MDU6SXNzdWU1NzE3Mjc3Ng==
9,456
BUG: need better inference for path in Series construction
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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-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" }
12
2015-02-10T13:13:29Z
2015-08-20T15:23:45Z
2015-06-10T20:01:43Z
CONTRIBUTOR
null
This hits a path in `Series.__init__` which I think needs some better inference https://github.com/pydata/pandas/blob/master/pandas/core/series.py#L178 ``` In [1]: d = {numpy.datetime64('2015-01-07T02:00:00.000000000+0200'): 42544017.198965244, ...: numpy.datetime64('2015-01-08T02:00:00.000000000+0200'): 40512335.181958228, ...: numpy.datetime64('2015-01-09T02:00:00.000000000+0200'): 39712952.781494237, ...: numpy.datetime64('2015-01-12T02:00:00.000000000+0200'): 39002721.453793451} In [2]: Series(d) Out[2]: 2015-01-07 NaN 2015-01-08 NaN 2015-01-09 NaN 2015-01-12 NaN dtype: float64 In [3]: Series(d.values(),d.keys()) Out[3]: 2015-01-07 42544017.198965 2015-01-08 40512335.181958 2015-01-09 39712952.781494 2015-01-12 39002721.453793 dtype: float64 ``` The problem is the index is already converted at this point and its not easy to get the keys/values out (except to do so explicity which is better IMHO). Need a review of what currently hits this path (can simply put a halt in here and see what tests hit this). Then figure out a better method.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9456/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9456/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9457
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9457/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9457/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9457/events
https://github.com/pandas-dev/pandas/issues/9457
57,194,889
MDU6SXNzdWU1NzE5NDg4OQ==
9,457
assert_almost_equal / equals should allow access to np.allclose
{ "avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4", "events_url": "https://api.github.com/users/rockg/events{/privacy}", "followers_url": "https://api.github.com/users/rockg/followers", "following_url": "https://api.github.com/users/rockg/following{/other_user}", "gists_url": "https://api.github.com/users/rockg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rockg", "id": 3195015, "login": "rockg", "node_id": "MDQ6VXNlcjMxOTUwMTU=", "organizations_url": "https://api.github.com/users/rockg/orgs", "received_events_url": "https://api.github.com/users/rockg/received_events", "repos_url": "https://api.github.com/users/rockg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rockg/subscriptions", "type": "User", "url": "https://api.github.com/users/rockg" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
7
2015-02-10T16:06:04Z
2020-06-24T22:25:21Z
2020-06-24T22:25:21Z
CONTRIBUTOR
null
I am testing the equivalence of two large DataFrames (9084x367). The two are the same up to 1x10-13 but when `np.array_equal` fails there is a much slower code path (comparing these two frames takes upwards of 20 seconds). If I'm not mistaken, if the arrays aren't equivalent it does a more complicated version of `np.allclose`. I think a good intermediate step would be to check for array equivalence and then as a the second step call `np.allclose`--or maybe just do this on the outset. If that fails, which it will if there are any NaNs or if the tolerance is not met, then it will use the current logic. Or we could use `np.isclose` to consider NaNs as equivalent. https://github.com/pydata/pandas/blob/master/pandas/src/testing.pyx#L85
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9457/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9457/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9458
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9458/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9458/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9458/events
https://github.com/pandas-dev/pandas/issues/9458
57,222,507
MDU6SXNzdWU1NzIyMjUwNw==
9,458
Suffixes ignored on second merge
{ "avatar_url": "https://avatars.githubusercontent.com/u/71571?v=4", "events_url": "https://api.github.com/users/MatzeB/events{/privacy}", "followers_url": "https://api.github.com/users/MatzeB/followers", "following_url": "https://api.github.com/users/MatzeB/following{/other_user}", "gists_url": "https://api.github.com/users/MatzeB/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MatzeB", "id": 71571, "login": "MatzeB", "node_id": "MDQ6VXNlcjcxNTcx", "organizations_url": "https://api.github.com/users/MatzeB/orgs", "received_events_url": "https://api.github.com/users/MatzeB/received_events", "repos_url": "https://api.github.com/users/MatzeB/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MatzeB/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MatzeB/subscriptions", "type": "User", "url": "https://api.github.com/users/MatzeB" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
3
2015-02-10T19:23:00Z
2015-02-10T21:13:04Z
2015-02-10T20:40:10Z
NONE
null
I am trying to merge multiple dataframe with consecutive merge operations, I want to add a suffix to the name of the newly merged column names. A simplified version of my code looks like this: ``` from pandas import * f0 = DataFrame(columns=['data'], data=[1,2,3], index=['a','b','c']) f1 = DataFrame(columns=['data'], data=[4,5,6], index=['c','b','a']) f2 = DataFrame(columns=['data'], data=[7,8,9], index=['a','c','b']) merged = f0 merged = merged.merge(f1, left_index=True, right_index=True, suffixes=("_0", "_1")) merged = merged.merge(f2, left_index=True, right_index=True, suffixes=("", "_2")) print merged.columns ``` With pandas 0.15.2 on python 2.7 this returns: ``` Index([u'data_0', u'data_1', u'data'], dtype='object') ``` while I would have expected ``` Index([u'data_0', u'data_1', u'data_2'], dtype='object') ```
{ "+1": 4, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9458/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9458/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9459
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9459/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9459/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9459/events
https://github.com/pandas-dev/pandas/pull/9459
57,236,918
MDExOlB1bGxSZXF1ZXN0MjkwNDQ4ODk=
9,459
BUG: improve handling of Series.value_counts's argument 'dropna' (GH9443)
{ "avatar_url": "https://avatars.githubusercontent.com/u/322730?v=4", "events_url": "https://api.github.com/users/Kodiologist/events{/privacy}", "followers_url": "https://api.github.com/users/Kodiologist/followers", "following_url": "https://api.github.com/users/Kodiologist/following{/other_user}", "gists_url": "https://api.github.com/users/Kodiologist/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Kodiologist", "id": 322730, "login": "Kodiologist", "node_id": "MDQ6VXNlcjMyMjczMA==", "organizations_url": "https://api.github.com/users/Kodiologist/orgs", "received_events_url": "https://api.github.com/users/Kodiologist/received_events", "repos_url": "https://api.github.com/users/Kodiologist/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Kodiologist/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kodiologist/subscriptions", "type": "User", "url": "https://api.github.com/users/Kodiologist" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "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" }
15
2015-02-10T21:09:23Z
2015-03-08T16:12:52Z
2015-03-08T16:12:47Z
CONTRIBUTOR
null
closes #9443
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9459/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9459/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9459.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9459", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9459.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9459" }
https://api.github.com/repos/pandas-dev/pandas/issues/9460
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9460/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9460/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9460/events
https://github.com/pandas-dev/pandas/pull/9460
57,244,587
MDExOlB1bGxSZXF1ZXN0MjkwNDkzNDY=
9,460
Groupby sort
{ "avatar_url": "https://avatars.githubusercontent.com/u/223276?v=4", "events_url": "https://api.github.com/users/cottrell/events{/privacy}", "followers_url": "https://api.github.com/users/cottrell/followers", "following_url": "https://api.github.com/users/cottrell/following{/other_user}", "gists_url": "https://api.github.com/users/cottrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cottrell", "id": 223276, "login": "cottrell", "node_id": "MDQ6VXNlcjIyMzI3Ng==", "organizations_url": "https://api.github.com/users/cottrell/orgs", "received_events_url": "https://api.github.com/users/cottrell/received_events", "repos_url": "https://api.github.com/users/cottrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cottrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cottrell/subscriptions", "type": "User", "url": "https://api.github.com/users/cottrell" }
[]
closed
false
null
[]
null
2
2015-02-10T22:03:31Z
2015-02-10T23:31:56Z
2015-02-10T22:12:19Z
CONTRIBUTOR
null
PR as per issue 9444. One test added. https://github.com/pydata/pandas/issues/9444
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9460/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9460/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9460.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9460", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9460.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9460" }
https://api.github.com/repos/pandas-dev/pandas/issues/9461
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9461/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9461/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9461/events
https://github.com/pandas-dev/pandas/pull/9461
57,247,168
MDExOlB1bGxSZXF1ZXN0MjkwNTA5OTk=
9,461
Fix bug in multiindex series groupby where sort argument is ignored
{ "avatar_url": "https://avatars.githubusercontent.com/u/223276?v=4", "events_url": "https://api.github.com/users/cottrell/events{/privacy}", "followers_url": "https://api.github.com/users/cottrell/followers", "following_url": "https://api.github.com/users/cottrell/following{/other_user}", "gists_url": "https://api.github.com/users/cottrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cottrell", "id": 223276, "login": "cottrell", "node_id": "MDQ6VXNlcjIyMzI3Ng==", "organizations_url": "https://api.github.com/users/cottrell/orgs", "received_events_url": "https://api.github.com/users/cottrell/received_events", "repos_url": "https://api.github.com/users/cottrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cottrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cottrell/subscriptions", "type": "User", "url": "https://api.github.com/users/cottrell" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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-02-10T22:23:29Z
2015-02-11T14:19:38Z
2015-02-11T14:19:34Z
CONTRIBUTOR
null
PR as per. One test added. Test fails without the fix. closes https://github.com/pydata/pandas/issues/9444
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9461/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9461/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9461.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9461", "merged_at": "2015-02-11T14:19:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9461.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9461" }
https://api.github.com/repos/pandas-dev/pandas/issues/9462
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9462/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9462/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9462/events
https://github.com/pandas-dev/pandas/issues/9462
57,249,987
MDU6SXNzdWU1NzI0OTk4Nw==
9,462
Numpy dtype weirdness in TimedeltaIndex._simple_new
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "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": "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": "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": "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-02-10T22:46:50Z
2018-11-03T13:12:50Z
2018-11-03T13:12:50Z
CONTRIBUTOR
null
I was poking around in tdi.py with pdb and I noticed this code at [line 255 of current master](https://github.com/pydata/pandas/blob/0efd4b3c8d2b0308441a6960327a2447bd419a1b/pandas/tseries/tdi.py#L255): ``` python @classmethod def _simple_new(cls, values, name=None, freq=None, **kwargs): --> if not getattr(values,'dtype',None): # This doesn't do what it looks like it does values = np.array(values,copy=False) if values.dtype == np.object_: values = tslib.array_to_timedelta64(values) if values.dtype != _TD_DTYPE: values = com._ensure_int64(values).view(_TD_DTYPE) result = object.__new__(cls) result._data = values result.name = name result.freq = freq result._reset_identity() return result ``` This looks to me like it's testing whether `values` is already an `ndarray`, and if it isn't, it's taking a view into its values. But that's not what it's doing at all. If `values` is a `Series`, it has a dtype, so the view-making code should be skipped! Except that it isn't: ``` python In [1]: import numpy as np In [2]: map(np.dtype, [None, 'i8', 'i4,i4', ('m8[ns]', (2, 2)), ('S', 4), ...: [('name', 'u1', (2, 2))], ...: {'names': ['name'], 'formats': ['f8']}, ...: ('i4,i4', (2, 2))]) Out[2]: [dtype('float64'), # note that dtype(None) is float! dtype('int64'), # fixed dtype dtype([('f0', '<i4'), ('f1', '<i4')]), # record dtype dtype(('<m8[ns]', (2, 2))), # array dtype dtype('S4'), # flexible dtype dtype([('name', 'u1', (2, 2))]), # record dtype with array fields dtype([('name', '<f8')]), # another record dtype dtype(([('f0', '<i4'), ('f1', '<i4')], (2, 2)))] # array dtype with record fields In [3]: map(bool, _) Out[3]: [False, False, True, False, False, True, True, False] # madness ``` My tentative guess is that if the outermost layer of the dtype is a record type, then it is `True`y, and otherwise it's `False`y. This behavior seems too pathological to depend on. Unfortunately, that's exactly what's happening when constructing a `TimedeltaIndex` from a `Series` of `Timedelta`s: ``` python In [1]: import pandas as pd In [2]: import pdb In [3]: pd.Series([pd.Timedelta(1, 'h')]) Out[3]: 0 01:00:00 dtype: timedelta64[ns] In [4]: pdb.run('pd.Index(_)') > <string>(1)<module>() (Pdb) b pd.TimedeltaIndex._simple_new Breakpoint 1 at /Users/afni/ActivityMonitorProcessing/sojourns/source/lib/python2.7/site-packages/pandas/tseries/tdi.py:253 (Pdb) c > /Users/afni/ActivityMonitorProcessing/sojourns/source/lib/python2.7/site-packages/pandas/tseries/tdi.py(255)_simple_new() -> if not getattr(values,'dtype',None): (Pdb) p values 0 01:00:00 dtype: timedelta64[ns] # it's still a Series (Pdb) n > /Users/afni/ActivityMonitorProcessing/sojourns/source/lib/python2.7/site-packages/pandas/tseries/tdi.py(256)_simple_new() -> values = np.array(values,copy=False) (Pdb) n > /Users/afni/ActivityMonitorProcessing/sojourns/source/lib/python2.7/site-packages/pandas/tseries/tdi.py(257)_simple_new() -> if values.dtype == np.object_: (Pdb) p values array([3600000000000], dtype='timedelta64[ns]') # now it's an ndarray ``` Everything seems to _work_, but what's actually going on is so different from what I would expect to be going on that it seems like a time bomb.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9462/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9462/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9463
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9463/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9463/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9463/events
https://github.com/pandas-dev/pandas/issues/9463
57,294,946
MDU6SXNzdWU1NzI5NDk0Ng==
9,463
BUG: binary operator methods (eg mul) don't handle integer level
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "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" }
2
2015-02-11T09:50:20Z
2015-02-23T11:46:54Z
2015-02-23T11:46:54Z
MEMBER
null
Suppose I have the following dataframe and series: ``` In [20]: df = pd.DataFrame(np.ones((3,4)), columns=pd.MultiIndex.from_product([['A', 'B'],['a', 'b']])) In [21]: s = pd.Series({'a':1, 'b':2}) In [22]: df Out[22]: A B a b a b 0 1 1 1 1 1 1 1 1 1 2 1 1 1 1 In [23]: s Out[23]: a 1 b 2 dtype: int64 ``` Trying to multiply this by the columns, and matching on the second level, gives the following error: ``` In [24]: df.mul(s, axis=1, level=1) ... File "C:\Anaconda\lib\site-packages\pandas\core\index.py", line 1786, in _join_multi raise ValueError("cannot join with no level specified and no overlapping names") ValueError: cannot join with no level specified and no overlapping names ``` In any case, this is a wrong error message, as I _did_ specify a level. Further, this does work and gives the expected output with a named level instead of a integer level: ``` In [25]: df2 = df.copy() ...: df2.columns.names = ['l0', 'l1'] In [35]: df2.mul(s, axis=1, level='l1') # <-- works Out[35]: l0 A B l1 a b a b 0 1 2 1 2 1 1 2 1 2 2 1 2 1 2 ``` Am I correct that this should also work with integer levels?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9463/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9463/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9464
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9464/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9464/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9464/events
https://github.com/pandas-dev/pandas/pull/9464
57,308,373
MDExOlB1bGxSZXF1ZXN0MjkwODYyNTk=
9,464
BUG: subplots with layout kw may show unnecessary warning
{ "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" }
1
2015-02-11T12:12:41Z
2015-03-31T13:31:53Z
2015-03-05T23:27:56Z
MEMBER
null
Related to #8877 and #9278. There is remaining case which shows unnecessary warning. Occurrence condition: - `subplots=True`. - `layout` is specified larger than the number of required subplot axes. In this case, `legend` is called against blank axes and results in warning.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9464/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9464/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9464.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9464", "merged_at": "2015-03-05T23:27:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9464.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9464" }
https://api.github.com/repos/pandas-dev/pandas/issues/9465
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9465/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9465/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9465/events
https://github.com/pandas-dev/pandas/pull/9465
57,309,432
MDExOlB1bGxSZXF1ZXN0MjkwODY4NjU=
9,465
TST: Remove assertEquals
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2015-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-02-11T12:24:36Z
2015-03-31T13:31:50Z
2015-02-16T12:56:08Z
MEMBER
null
Same as #7165. I've also added some of these tests :( One idea to prevent this is to override ``tm.TestCase.assertEquals` to raise more explicit warning or exception.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9465/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9465/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9465.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9465", "merged_at": "2015-02-16T12:56:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9465.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9465" }
https://api.github.com/repos/pandas-dev/pandas/issues/9466
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9466/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9466/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9466/events
https://github.com/pandas-dev/pandas/issues/9466
57,318,914
MDU6SXNzdWU1NzMxODkxNA==
9,466
loc very slow on sorted, non-unique index with list of labels ar argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "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-02-11T14:00:43Z
2018-10-01T12:08:59Z
2018-10-01T12:08:59Z
MEMBER
null
``` In [1]: import pandas, numpy In [2]: df = pandas.DataFrame(numpy.random.random((100000, 4))) In [3]: %timeit df.loc[55555] 10000 loops, best of 3: 118 µs per loop In [4]: %timeit df.loc[[55555]] 1000 loops, best of 3: 324 µs per loop ``` ... makes sense to me. ``` In [5]: df.index = list(range(99999)) + [55555] In [6]: %timeit df.loc[55555] 100 loops, best of 3: 4.04 ms per loop In [7]: %timeit df.loc[[55555]] 100 loops, best of 3: 16.8 ms per loop ``` Non-unique index, slower (the second call probably has to scan all the index): still makes sense to me. Sorting should improve things... ``` In [8]: df.sort(inplace=True) In [9]: %timeit df.loc[55555] 1000 loops, best of 3: 239 µs per loop In [10]: %timeit df.loc[[55555]] 100 loops, best of 3: 17.2 ms per loop ``` ... here I'm lost: why this huge difference? The difference is even larger (3 orders of magnitude) in a real database I am working on. Clearly, ``` In [12]: df.loc[[55555]] == df.loc[55555] Out[12]: 0 1 2 3 55555 True True True True 55555 True True True True ``` (As a sidenote: the reason why I'm doing calls such as df.loc[[a_label]] is that df.loc[a_label] will return sometimes a Series, sometimes a DataFrame. I currently solve this by using df.loc[df.index == a_label], which is however ~3x slower than df.loc[a_label] - but much faster than the above df.loc[[a_label]].)
{ "+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/9466/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9466/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9467
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9467/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9467/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9467/events
https://github.com/pandas-dev/pandas/issues/9467
57,362,106
MDU6SXNzdWU1NzM2MjEwNg==
9,467
BUG/CLN: SparseSeries __getitem__ uses questionable, buggy logic
{ "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": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" } ]
closed
false
null
[]
{ "closed_at": "2016-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" }
0
2015-02-11T19:12:29Z
2016-04-10T14:32:46Z
2016-04-10T14:32:46Z
MEMBER
null
SparseSeries currently relies on the assumption that all non-scalar input will raise a `TypeError` (because it won't be hashable) when used as input to `Index.get_loc`: https://github.com/pydata/pandas/blob/bb9c311f36fbf508d11f2eabe3fdbdd010abf8c0/pandas/sparse/series.py#L361 However, some non-scalar input is hashable (e.g., `Ellipsis`): ``` In [2]: import pandas as pd In [3]: ss = pd.Series(range(10)).to_sparse() In [4]: ss[...] --------------------------------------------------------------------------- Exception Traceback (most recent call last) <ipython-input-4-f0ccf654123b> in <module>() ----> 1 ss[...] /Users/shoyer/dev/pandas/pandas/sparse/series.pyc in __getitem__(self, key) 369 if isinstance(key, (int, np.integer)): 370 return self._get_val_at(key) --> 371 raise Exception('Requested index not in this series!') 372 373 except TypeError: Exception: Requested index not in this series! ``` (this should return the entire sparse series) This logic is also problematic because it relies on `get_loc` always throwing `TypeError` for invalid input. So this could use some cleanup, ideally checking directly if the input is hashable. And it probably shouldn't be raising a generic `Exception`, either. xref tslib.pyx change/discussion in #9258
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9467/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9467/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9468
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9468/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9468/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9468/events
https://github.com/pandas-dev/pandas/issues/9468
57,368,417
MDU6SXNzdWU1NzM2ODQxNw==
9,468
BUG: Series.resample across daylight saving boundary causes segfault.
{ "avatar_url": "https://avatars.githubusercontent.com/u/835184?v=4", "events_url": "https://api.github.com/users/jeremywhelchel/events{/privacy}", "followers_url": "https://api.github.com/users/jeremywhelchel/followers", "following_url": "https://api.github.com/users/jeremywhelchel/following{/other_user}", "gists_url": "https://api.github.com/users/jeremywhelchel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeremywhelchel", "id": 835184, "login": "jeremywhelchel", "node_id": "MDQ6VXNlcjgzNTE4NA==", "organizations_url": "https://api.github.com/users/jeremywhelchel/orgs", "received_events_url": "https://api.github.com/users/jeremywhelchel/received_events", "repos_url": "https://api.github.com/users/jeremywhelchel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeremywhelchel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeremywhelchel/subscriptions", "type": "User", "url": "https://api.github.com/users/jeremywhelchel" }
[ { "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" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "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-02-11T19:56:17Z
2015-03-11T12:10:55Z
2015-03-11T12:10:55Z
NONE
null
The following snippet of code is causing a segfault. Here it's failing at head, but I've seen it fail in the 0.15.2 release as well, with both NumPy 1.7.1 and NumPy 1.9.1. Interestingly this doesn't happen with Pandas 0.13.1. ``` >>> import pandas >>> import pytz >>> pandas.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-30-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.15.2-182-gbb9c311 nose: None Cython: 0.20.1post0 numpy: 1.9.1 scipy: None statsmodels: None IPython: None sphinx: None patsy: None dateutil: 2.4.0 pytz: 2013b bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None >>> LA_TZ = pytz.timezone('America/Los_Angeles') >>> >>> s = pandas.Series({ ... pandas.Timestamp('2010-1-1', tz=LA_TZ): 1, ... pandas.Timestamp('2011-4-1', tz=LA_TZ): 1}) >>> s 2010-01-01 00:00:00-08:00 1 2011-04-01 00:00:00-07:00 1 dtype: int64 >>> s.resample('D', how='max', fill_method='pad') Segmentation fault (core dumped) ``` Other observations: - The start/end need to cross the daylight savings switch. Notice utc-08:00 vs utc-07:00 above - Only fails with how=max and fill_method=pad - Needs a large enough resampled window. 2011-1-1 to 2011-4-1 won't do it. But 2010-1-1 to 2011-4-1 will.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9468/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9468/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9469
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9469/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9469/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9469/events
https://github.com/pandas-dev/pandas/issues/9469
57,375,627
MDU6SXNzdWU1NzM3NTYyNw==
9,469
Categorical[idx].codes != Categorical.codes[idx]
{ "avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4", "events_url": "https://api.github.com/users/jseabold/events{/privacy}", "followers_url": "https://api.github.com/users/jseabold/followers", "following_url": "https://api.github.com/users/jseabold/following{/other_user}", "gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jseabold", "id": 296164, "login": "jseabold", "node_id": "MDQ6VXNlcjI5NjE2NA==", "organizations_url": "https://api.github.com/users/jseabold/orgs", "received_events_url": "https://api.github.com/users/jseabold/received_events", "repos_url": "https://api.github.com/users/jseabold/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jseabold/subscriptions", "type": "User", "url": "https://api.github.com/users/jseabold" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-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" }
15
2015-02-11T20:53:55Z
2015-02-12T20:15:50Z
2015-02-12T19:23:50Z
CONTRIBUTOR
null
I'm unable to isolate this, but maybe this rings a bell for someone. It took me a long time to find the source of error in my code. I don't think this is intentional, and if so, is pretty dangerous. ``` [~/] [22]: y[idx].codes[:15] [22]: array([4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4], dtype=int8) [~/] [23]: y.codes[idx][:15] [23]: array([4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], dtype=int8) [~/] [24]: idx[:15] [24]: array([ 74172, 53885, 128953, 28125, 136548, 136700, 93633, 61147, 56535, 90577, 115719, 58038, 111711, 53399, 77475]) [~/] [25]: type(y) [25]: pandas.core.categorical.Categorical [~/] [27]: pd.version.version [27]: '0.15.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/9469/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9469/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9470
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9470/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9470/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9470/events
https://github.com/pandas-dev/pandas/pull/9470
57,380,477
MDExOlB1bGxSZXF1ZXN0MjkxMzA0Mzg=
9,470
BUG: Bug in Categorical.__getitem__/__setitem__ with listlike input getting incorrect result from indexer coercion (GH9469)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-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-02-11T21:32:22Z
2015-02-12T19:23:50Z
2015-02-12T19:23:50Z
CONTRIBUTOR
null
closes #9469
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9470/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9470/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9470.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9470", "merged_at": "2015-02-12T19:23:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9470.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9470" }
https://api.github.com/repos/pandas-dev/pandas/issues/9471
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9471/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9471/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9471/events
https://github.com/pandas-dev/pandas/issues/9471
57,384,454
MDU6SXNzdWU1NzM4NDQ1NA==
9,471
Add method='nearest' to fillna
{ "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
open
false
null
[]
{ "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-02-11T22:03:16Z
2021-04-12T05:16:20Z
null
MEMBER
null
This should be a pretty straightforward followup on #9258 that will allow us to also support `align` with `method='nearest'`. fillna internally relies on interpolate which already supports `method='nearest' so this _may_ just work (it will needs lots of tests).
{ "+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/9471/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9471/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9472
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9472/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9472/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9472/events
https://github.com/pandas-dev/pandas/pull/9472
57,409,018
MDExOlB1bGxSZXF1ZXN0MjkxNDgxNDM=
9,472
ENH: Series.idxnonzero() to return the index of nonzero entries
{ "avatar_url": "https://avatars.githubusercontent.com/u/590921?v=4", "events_url": "https://api.github.com/users/bthyreau/events{/privacy}", "followers_url": "https://api.github.com/users/bthyreau/followers", "following_url": "https://api.github.com/users/bthyreau/following{/other_user}", "gists_url": "https://api.github.com/users/bthyreau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bthyreau", "id": 590921, "login": "bthyreau", "node_id": "MDQ6VXNlcjU5MDkyMQ==", "organizations_url": "https://api.github.com/users/bthyreau/orgs", "received_events_url": "https://api.github.com/users/bthyreau/received_events", "repos_url": "https://api.github.com/users/bthyreau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bthyreau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bthyreau/subscriptions", "type": "User", "url": "https://api.github.com/users/bthyreau" }
[ { "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
9
2015-02-12T02:29:17Z
2015-05-09T16:00:15Z
2015-05-09T16:00:15Z
CONTRIBUTOR
null
Added a straightforward Serie function '`idxnonzero`', similar to `idxmin`/`idxmax` When filtering data, a `nonzero` pattern is actually very handy; yet panda’s version returns the iloc (for compatibility with numpy), which prevent to use the result on a differently-shaped dataframe, defeating the power of pandas indexing. This simple patch propose a version of nonzero which returns an actual pandas Index.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9472/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9472/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9472.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9472", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9472.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9472" }
https://api.github.com/repos/pandas-dev/pandas/issues/9473
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9473/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9473/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9473/events
https://github.com/pandas-dev/pandas/pull/9473
57,416,819
MDExOlB1bGxSZXF1ZXN0MjkxNTI2MTA=
9,473
BUG: fix common.is_hashable for NumPy scalars 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" } ]
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-02-12T04:44:08Z
2015-02-16T21:53:34Z
2015-02-16T21:53:33Z
MEMBER
null
Fixes #9276 This now relies entirely on the result of calling `hash` on the argument. Note: I had to change the test for old style classes on Python 2 -- these are now considered hashable by `is_hashable`, because they don't fail `hash`. 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/9473/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9473/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9473.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9473", "merged_at": "2015-02-16T21:53:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9473.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9473" }
https://api.github.com/repos/pandas-dev/pandas/issues/9474
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9474/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9474/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9474/events
https://github.com/pandas-dev/pandas/issues/9474
57,482,089
MDU6SXNzdWU1NzQ4MjA4OQ==
9,474
Pandas + py2exe error: Parent module '' not loaded, cannot perform relative import
{ "avatar_url": "https://avatars.githubusercontent.com/u/10979346?v=4", "events_url": "https://api.github.com/users/jfmorazzani/events{/privacy}", "followers_url": "https://api.github.com/users/jfmorazzani/followers", "following_url": "https://api.github.com/users/jfmorazzani/following{/other_user}", "gists_url": "https://api.github.com/users/jfmorazzani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jfmorazzani", "id": 10979346, "login": "jfmorazzani", "node_id": "MDQ6VXNlcjEwOTc5MzQ2", "organizations_url": "https://api.github.com/users/jfmorazzani/orgs", "received_events_url": "https://api.github.com/users/jfmorazzani/received_events", "repos_url": "https://api.github.com/users/jfmorazzani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jfmorazzani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jfmorazzani/subscriptions", "type": "User", "url": "https://api.github.com/users/jfmorazzani" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2015-02-12T16:21:30Z
2016-09-08T10:08:50Z
2016-09-08T10:08:41Z
NONE
null
I have a very simple program in python that works perfectly within Spyder or Eclipse, but fails when executed in the command line after it was pacakged with py2exe. OS is a French Windows 7 and I am using: Python 3.4.1 from Anaconda 2.1.0 (64-bit) Pandas 0.15.2 np19py34_0 cython 0.21.2 The error I get is the following one: ``` Parent module '' not loaded, cannot perform relative import Traceback (most recent call last): File "Main.py", line 2, in <module> File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible File "C:\Anaconda3\lib\site-packages\zipextimporter.py", line 86, in load_module return zipimport.zipimporter.load_module(self, fullname) File "C:\Anaconda3\lib\site-packages\pandas\__init__.py", line 7, in <module> from . import hashtable, tslib, lib File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible File "C:\Anaconda3\lib\site-packages\zipextimporter.py", line 109, in load_module self.get_data) File "pandas\hashtable.pyx", line 9, in init pandas.hashtable (pandas\hashtable.c:23000) SystemError: Parent module '' not loaded, cannot perform relative import ``` Here is the main.py coding: ``` # -*- coding: utf-8 -*- import pandas data = pandas.read_hdf ("C:/temp/test.h5", "MainData") file = open ("C:/temp/log.txt", "a+") strMessage = "" for arg in data.columns: strMessage += str (arg) + "\n" file.write (strMessage) file.close() ``` and the setup.py: ``` # -*- coding: utf-8 -*- from distutils.core import setup import py2exe excludes = ['tkinter'] opts = {'py2exe': {'excludes':excludes, 'bundle_files': 1, 'compressed': True, 'optimize':2}} setup(name='Core', version='1.0', description = "Core Engine", console = [{"script": "Main.py", "dest_base": "Core"}], options = opts) ``` I'm executing the following command line to build my executable file: python setup.py py2exe Note that it works fine if I remove the 'bundle_files' and 'optimize' options and I downgrade pandas to version 0.14.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/9474/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9474/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9475
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9475/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9475/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9475/events
https://github.com/pandas-dev/pandas/pull/9475
57,484,076
MDExOlB1bGxSZXF1ZXN0MjkxOTM3ODY=
9,475
BUG: binary operator method alignment with integer level (GH9463)
{ "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" } ]
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-02-12T16:34:48Z
2015-02-23T11:46:54Z
2015-02-23T11:46:54Z
MEMBER
null
Closes #9463 @jreback also related to #6682 (I removed 'join compat' introduced in that PR, as this worked only for level names, and passing `level=level` works for both level names and integer level numbers)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9475/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9475/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9475.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9475", "merged_at": "2015-02-23T11:46:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9475.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9475" }
https://api.github.com/repos/pandas-dev/pandas/issues/9476
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9476/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9476/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9476/events
https://github.com/pandas-dev/pandas/issues/9476
57,487,052
MDU6SXNzdWU1NzQ4NzA1Mg==
9,476
Py2exe error: Parent module '' not loaded, cannot perform relative import
{ "avatar_url": "https://avatars.githubusercontent.com/u/7153514?v=4", "events_url": "https://api.github.com/users/Zenadix/events{/privacy}", "followers_url": "https://api.github.com/users/Zenadix/followers", "following_url": "https://api.github.com/users/Zenadix/following{/other_user}", "gists_url": "https://api.github.com/users/Zenadix/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Zenadix", "id": 7153514, "login": "Zenadix", "node_id": "MDQ6VXNlcjcxNTM1MTQ=", "organizations_url": "https://api.github.com/users/Zenadix/orgs", "received_events_url": "https://api.github.com/users/Zenadix/received_events", "repos_url": "https://api.github.com/users/Zenadix/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Zenadix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zenadix/subscriptions", "type": "User", "url": "https://api.github.com/users/Zenadix" }
[ { "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-02-12T16:54:37Z
2015-02-12T17:54:11Z
2015-02-12T17:53:11Z
NONE
null
Dupe of #9474 --- Py2exe error: Parent module '' not loaded, cannot perform relative import I am using Windows, Python 3.3.5, pandas 0.15.2, and py2exe 0.9.2.2. I used py2exe to generate a single-file executable from a Python script that uses pandas 0.15.2. When I tried to run it, I got the following error: `Parent module '' not loaded, cannot perform relative import`. This is how it happened. I created a file named `test.py` with the following content. ``` import pandas print(pandas.__version__) ``` For py2exe, I created a file called `setup.py`, with the following content. ``` import py2exe import sys from distutils.core import setup sys.argv.append('py2exe') setup( options={ 'py2exe': { 'bundle_files': 0, 'excludes': [ 'tkinter'] } }, console=['test.py'], zipfile=None, ) ``` I ran `python setup.py`. I verified that the file `dist/test.exe` had been generated. When I tried to run `test.exe`, I got the following traceback: ``` C:\mac\des\ide\test\panbug\dist>test OMP: Warning #178: Function GetModuleHandleEx failed: OMP: System error #126: No se puede encontrar el m¾dulo especificado. Parent module '' not loaded, cannot perform relative import Traceback (most recent call last): File "test.py", line 1, in <module> File "<frozen importlib._bootstrap>", line 1565, in _find_and_load File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked File "C:\mac\des\WinPython-32bit-3.3.5.0\python-3.3.5\lib\site-packages\zipextimporter.py", line 86, in load_module return zipimport.zipimporter.load_module(self, fullname) File "C:\mac\des\WinPython-32bit-3.3.5.0\python-3.3.5\lib\site-packages\pandas\__init__.py", line 7, in <module> from . import hashtable, tslib, lib File "<frozen importlib._bootstrap>", line 1565, in _find_and_load File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked File "C:\mac\des\WinPython-32bit-3.3.5.0\python-3.3.5\lib\site-packages\zipextimporter.py", line 109, in load_module self.get_data) File "pandas\hashtable.pyx", line 9, in init pandas.hashtable (pandas\hashtable.c:23000) SystemError: Parent module '' not loaded, cannot perform relative import ``` There is a workaround that consists on downgrading to pandas 0.14.1 **and** removing the `bundle_files` option (which generates a folder with a bunch of files instead of a single-file executable). However, I need a single-file executable, and would also like to use the latest pandas version. Also, I know that I'm not the only one facing this issue. There is a [related question](http://stackoverflow.com/questions/28433559/pandas-py2exe-error-parent-module-not-loaded-cannot-perform-relative-impo) on StackOverflow.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9476/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9476/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9477
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9477/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9477/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9477/events
https://github.com/pandas-dev/pandas/issues/9477
57,514,661
MDU6SXNzdWU1NzUxNDY2MQ==
9,477
.apply converting string to date
{ "avatar_url": "https://avatars.githubusercontent.com/u/3426091?v=4", "events_url": "https://api.github.com/users/ashishsingal1/events{/privacy}", "followers_url": "https://api.github.com/users/ashishsingal1/followers", "following_url": "https://api.github.com/users/ashishsingal1/following{/other_user}", "gists_url": "https://api.github.com/users/ashishsingal1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ashishsingal1", "id": 3426091, "login": "ashishsingal1", "node_id": "MDQ6VXNlcjM0MjYwOTE=", "organizations_url": "https://api.github.com/users/ashishsingal1/orgs", "received_events_url": "https://api.github.com/users/ashishsingal1/received_events", "repos_url": "https://api.github.com/users/ashishsingal1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ashishsingal1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashishsingal1/subscriptions", "type": "User", "url": "https://api.github.com/users/ashishsingal1" }
[ { "color": "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-02-12T20:27:08Z
2015-02-24T13:49:22Z
2015-02-24T13:49:22Z
CONTRIBUTOR
null
The .apply on DataFrame is converting my string to a date. I have posted this on StackOverflow: http://stackoverflow.com/questions/28487105/pandas-on-apply-passing-wrong-value I'm not sure if I'm doing something wrong or it is a bug, but it seems quite strange behavior. Example [here](http://stackoverflow.com/questions/28550339/interesting-pandas-loc-behavior?noredirect=1#comment45415876_28550339) ``` In [8]: df = pd.DataFrame({'wing1':wing1, 'wing2':wing2, 'mat':mat}, index=belly) In [9]: df Out[9]: mat wing1 wing2 216 2016-01-22 2T15 416 3T19 2019-09-07 4H19 4T20 In [17]: df.loc['3T19'] Out[17]: mat 2019-09-07 00:00:00 wing1 2015-02-16 04:19:00 wing2 2015-04-20 00:00:00 Name: 3T19, dtype: datetime64[ns] In [18]: df.loc['216'] Out[18]: mat 2016-01-22 00:00:00 wing1 2T15 wing2 416 Name: 216, 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/9477/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9477/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9478
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9478/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9478/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9478/events
https://github.com/pandas-dev/pandas/issues/9478
57,519,652
MDU6SXNzdWU1NzUxOTY1Mg==
9,478
DateTimeIndex values are assigned across entire df when using .loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/2933165?v=4", "events_url": "https://api.github.com/users/alan-wong/events{/privacy}", "followers_url": "https://api.github.com/users/alan-wong/followers", "following_url": "https://api.github.com/users/alan-wong/following{/other_user}", "gists_url": "https://api.github.com/users/alan-wong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alan-wong", "id": 2933165, "login": "alan-wong", "node_id": "MDQ6VXNlcjI5MzMxNjU=", "organizations_url": "https://api.github.com/users/alan-wong/orgs", "received_events_url": "https://api.github.com/users/alan-wong/received_events", "repos_url": "https://api.github.com/users/alan-wong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alan-wong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alan-wong/subscriptions", "type": "User", "url": "https://api.github.com/users/alan-wong" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2015-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-02-12T21:07:53Z
2015-02-13T21:02:07Z
2015-02-13T20:22:23Z
NONE
null
I posted a 2-part answer to this question on SO: http://stackoverflow.com/questions/28482553/pandas-set-value-of-column-to-value-of-index-based-on-condtion What I noticed is that if your index is a datetimeindex then assigning the values is not respecting the column selection and is blatting all rows. I am using pandas 0.15.2 using numpy 1.9.1 and python 3.4 64-bit example: ``` In [46]: rows = 3 df = pd.DataFrame(np.random.randn(rows,2), columns=list('AB'), index=pd.date_range('1/1/2000', periods=rows, freq='1H')) print(df) df.loc[df.A > 0.5, 'LAST_TIME_A_ABOVE_X'] = df.loc[df.A > 0.5].index df A B 2000-01-01 00:00:00 -0.761643 0.969167 2000-01-01 01:00:00 0.050335 -1.346953 2000-01-01 02:00:00 0.663857 -0.272247 Out[46]: A B \ 2000-01-01 00:00:00 1970-01-01 1970-01-01 00:00:00 2000-01-01 01:00:00 1970-01-01 1969-12-31 23:59:59.999999999 2000-01-01 02:00:00 1970-01-01 1970-01-01 00:00:00 LAST_TIME_A_ABOVE_X 2000-01-01 00:00:00 NaT 2000-01-01 01:00:00 NaT 2000-01-01 02:00:00 2000-01-01 02:00:00 ``` If the index is an Int64 type then this doesn't happen. If you reset the index and then assign the values using .loc then it works correctly
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9478/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9478/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9479
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9479/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9479/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9479/events
https://github.com/pandas-dev/pandas/pull/9479
57,529,876
MDExOlB1bGxSZXF1ZXN0MjkyMjI4NjU=
9,479
BUG: bug in partial setting of with a DatetimeIndex (GH9478)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "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
[]
{ "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-02-12T22:29:18Z
2015-02-13T20:22:24Z
2015-02-13T20:22:23Z
CONTRIBUTOR
null
closes #9478
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9479/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9479/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9479.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9479", "merged_at": "2015-02-13T20:22:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9479.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9479" }
https://api.github.com/repos/pandas-dev/pandas/issues/9480
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9480/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9480/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9480/events
https://github.com/pandas-dev/pandas/pull/9480
57,538,094
MDExOlB1bGxSZXF1ZXN0MjkyMjgwNzg=
9,480
BUG: bug in sort for grouping with a categorical columns (GH8868)
{ "avatar_url": "https://avatars.githubusercontent.com/u/223276?v=4", "events_url": "https://api.github.com/users/cottrell/events{/privacy}", "followers_url": "https://api.github.com/users/cottrell/followers", "following_url": "https://api.github.com/users/cottrell/following{/other_user}", "gists_url": "https://api.github.com/users/cottrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cottrell", "id": 223276, "login": "cottrell", "node_id": "MDQ6VXNlcjIyMzI3Ng==", "organizations_url": "https://api.github.com/users/cottrell/orgs", "received_events_url": "https://api.github.com/users/cottrell/received_events", "repos_url": "https://api.github.com/users/cottrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cottrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cottrell/subscriptions", "type": "User", "url": "https://api.github.com/users/cottrell" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
null
3
2015-02-12T23:44:58Z
2015-02-21T13:03:58Z
2015-02-18T11:27:50Z
CONTRIBUTOR
null
Closes #8868 hack. I can add tests if this passes the CI and we think this should be taken further.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9480/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9480/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9480.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9480", "merged_at": "2015-02-18T11:27:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9480.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9480" }
https://api.github.com/repos/pandas-dev/pandas/issues/9481
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9481/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9481/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9481/events
https://github.com/pandas-dev/pandas/issues/9481
57,567,582
MDU6SXNzdWU1NzU2NzU4Mg==
9,481
Implement high performance rolling_rank
{ "avatar_url": "https://avatars.githubusercontent.com/u/10988803?v=4", "events_url": "https://api.github.com/users/PH82/events{/privacy}", "followers_url": "https://api.github.com/users/PH82/followers", "following_url": "https://api.github.com/users/PH82/following{/other_user}", "gists_url": "https://api.github.com/users/PH82/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PH82", "id": 10988803, "login": "PH82", "node_id": "MDQ6VXNlcjEwOTg4ODAz", "organizations_url": "https://api.github.com/users/PH82/orgs", "received_events_url": "https://api.github.com/users/PH82/received_events", "repos_url": "https://api.github.com/users/PH82/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PH82/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PH82/subscriptions", "type": "User", "url": "https://api.github.com/users/PH82" }
[ { "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": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
20
2015-02-13T07:18:16Z
2021-09-14T13:07:58Z
2021-09-14T13:07:58Z
NONE
null
xref SO issue [here](http://stackoverflow.com/questions/29391787/rolling-argmax-in-pandas/29423104#29423104) Im looking to set the rolling rank on a dataframe. Having posted, discussed and analysed the code it looks like the suggested way would be to use the pandas Series.rank function as an argument in rolling_apply. However on large datasets the performance is particularly poor. I have tried different implementations and using bottlenecks rank method orders of magnitude faster, but that only offers the average option for ties. It is also still some way off the performance of rolling_mean. I have previously implemented a rolling rank function which monitors changes on a moving window (in a similar way to algos.roll_mean I believe) rather that recalculating the rank from scratch on each window. Below is an example to highlight the performance, it should be possible to implement a rolling rank with comparable performance to rolling_mean. python: 2.7.3 pandas: 0.15.2 scipy: 0.10.1 bottleneck: 0.7.0 `````` python rollWindow = 240 df = pd.DataFrame(np.random.randn(100000,4), columns=list('ABCD'), index=pd.date_range('1/1/2000', periods=100000, freq='1H')) df.iloc[-3:-1]['A'] = 7.5 df.iloc[-1]['A'] = 5.5 df["SER_RK"] = pd.rolling_apply(df["A"], rollWindow, rollingRankOnSeries) #28.9secs (allows competition/min ranking for ties) df["SCIPY_RK"] = pd.rolling_apply(df["A"], rollWindow, rollingRankSciPy) #70.89secs (allows competition/min ranking for ties) df["BNECK_RK"] = pd.rolling_apply(df["A"], rollWindow, rollingRankBottleneck) #3.64secs (only provides average ranking for ties) df["ASRT_RK"] = pd.rolling_apply(df["A"], rollWindow, rollingRankArgSort) #3.56secs (only provides competition/min ranking for ties, not necessarily correct result) df["MEAN"] = pd.rolling_mean(df['A'], window=rollWindow) #0.008secs def rollingRankOnSeries (array): s = pd.Series(array) return s.rank(method='min', ascending=False)[len(s)-1] def rollingRankSciPy (array): return array.size + 1 - sc.rankdata(array)[-1] def rollingRankBottleneck (array): return array.size + 1 - bd.rankdata(array)[-1] def rollingRankArgSort (array): return array.size - array.argsort().argsort()[-1] ```python I think this is likely to be a common request for users looking to use pandas for analysis on large datasets and thought it would be a useful addition to the pandas moving statistics/moments suite? ``````
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9481/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9481/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9482
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9482/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9482/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9482/events
https://github.com/pandas-dev/pandas/issues/9482
57,621,818
MDU6SXNzdWU1NzYyMTgxOA==
9,482
CLN: make sure that we don't have extraneous imports
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "color": "0052cc", "default": false, "description": "pandas-gbq compatability", "id": 57351315, "name": "IO Google", "node_id": "MDU6TGFiZWw1NzM1MTMxNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google" }, { "color": "006b75", "default": false, "description": "read_html, to_html, Styler.apply, Styler.applymap", "id": 57395487, "name": "IO HTML", "node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML" }, { "color": "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" }
1
2015-02-13T16:41:00Z
2015-02-24T11:14:34Z
2015-02-24T11:14:34Z
CONTRIBUTOR
null
xref #9394 xref #7282 `numexpr/bottleneck` are ok by default you can check with something like this: ``` [jreback-~/pandas] python -v -c 'import pandas' > & out [jreback-~/pandas] grep 'import ' out | more ``` - [x] ~~`matplotlib` (not sure if this is possible to remove by default)~~ The converters are set, not so easy to remove. - [x] `io/packers.py` imports `blosc` and possibly other things, #9482 - [x] `io/gbq.py` import a lot of things (e.g. `apiclient/googleapiclient/oauth2client/gflags`), #9482 - [x] ~~`xlsxwriter`~~ this is set in `core/config_init.py` for the default engine. Not easy to remove. - [x] `html5lib/bs4` (from `io/html.py`), #9482 These should be done on first usage of the library, and not on general import like in `io/pytables.py` (e.g. the `_tables()`) call.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9482/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9482/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9483
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9483/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9483/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9483/events
https://github.com/pandas-dev/pandas/issues/9483
57,622,901
MDU6SXNzdWU1NzYyMjkwMQ==
9,483
crash with TypeError when repeatedly appending to HDFStore
{ "avatar_url": "https://avatars.githubusercontent.com/u/8416950?v=4", "events_url": "https://api.github.com/users/migdard/events{/privacy}", "followers_url": "https://api.github.com/users/migdard/followers", "following_url": "https://api.github.com/users/migdard/following{/other_user}", "gists_url": "https://api.github.com/users/migdard/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/migdard", "id": 8416950, "login": "migdard", "node_id": "MDQ6VXNlcjg0MTY5NTA=", "organizations_url": "https://api.github.com/users/migdard/orgs", "received_events_url": "https://api.github.com/users/migdard/received_events", "repos_url": "https://api.github.com/users/migdard/repos", "site_admin": false, "starred_url": "https://api.github.com/users/migdard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/migdard/subscriptions", "type": "User", "url": "https://api.github.com/users/migdard" }
[ { "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
[]
{ "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" }
11
2015-02-13T16:49:04Z
2016-07-11T13:24:33Z
2016-07-11T13:24:28Z
NONE
null
When merging HDF5 files and thus appending to a Series stored in a node, I get the following stacktrace from time to time, with no really clear reproducer. By no clear reproducer, I meaning it happens always at the same place after having looped over several 'to merge' files but it does not appear if I run a sequence of separate processes for each file. My pseudocode is as follows: ``` def merge_stores(out_store, in_store_files): open(out_store, 'a') for in_store_file in in_store_files: in_store = pd.HDFStore(in_store_file, 'r') for key in in_store.keys(): out_store.put(key, in_store.get(key), format='t', append=True, min_itemsize=48) ``` And here is the stack trace I have at the put: /opt/anaconda/lib/python2.7/site-packages/tables/group.py:1156: UserWarning: problems loading leaf `/PC40102D/table`:: `````` Attribute chunksize exists in node PC40102D, but can't get it. The leaf will become an ``UnImplemented`` node. % (self._g_join(childname), exc)) !!!!!!!!!!!!!!!!!! Uncaught exception !!!!!!!!!!!!!!!!!! Traceback (most recent call last): File "mergehdf5.py", line 100, in <module> main() File "mergehdf5.py", line 95, in main merge_files(options.outputfile, files, delete=False, append=options.append) File "mergehdf5.py", line 81, in merge_files out_store_keys = merge_file(out_store, in_store, out_store_keys, append=append) File "mergehdf5.py", line 52, in merge_file out_store.put(key, to_merge_in, format='t', append=True, min_itemsize=STR_SIZE) File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 818, in put self._write_to_group(key, value, append=append, **kwargs) File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 1270, in _write_to_group s.write(obj=value, append=append, complib=complib, **kwargs) File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 3891, in write obj=obj, data_columns=obj.columns, **kwargs) File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 3605, in write **kwargs) File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 3136, in create_axes if self.infer_axes(): File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 2137, in infer_axes s = self.storable File "/opt/anaconda/lib/python2.7/site-packages/pandas/io/pytables.py", line 2832, in storable return getattr(self.group, 'table', None) File "/opt/anaconda/lib/python2.7/site-packages/tables/group.py", line 811, in __getattr__ return self._f_get_child(name) File "/opt/anaconda/lib/python2.7/site-packages/tables/group.py", line 684, in _f_get_child return self._v_file._get_node(childpath) File "/opt/anaconda/lib/python2.7/site-packages/tables/file.py", line 1562, in _get_node node = self._node_manager.get_node(nodepath) File "/opt/anaconda/lib/python2.7/site-packages/tables/file.py", line 436, in get_node node = self.node_factory(key) File "/opt/anaconda/lib/python2.7/site-packages/tables/group.py", line 1158, in _g_load_child return UnImplemented(self, childname) File "/opt/anaconda/lib/python2.7/site-packages/tables/unimplemented.py", line 69, in __init__ super(UnImplemented, self).__init__(parentnode, name) File "/opt/anaconda/lib/python2.7/site-packages/tables/leaf.py", line 262, in __init__ super(Leaf, self).__init__(parentnode, name, _log) File "/opt/anaconda/lib/python2.7/site-packages/tables/node.py", line 271, in __init__ self._v_objectid = self._g_open() File "/opt/anaconda/lib/python2.7/site-packages/tables/unimplemented.py", line 72, in _g_open (self.shape, self.byteorder, object_id) = self._open_unimplemented() File "hdf5extension.pyx", line 2095, in tables.hdf5extension.UnImplemented._open_unimplemented (tables/hdf5extension.c:19140) TypeError: argument 2 to map() must support iteration DEBUG MODE Closing remaining open files:/var/engdata/hdf5output/hdf5/M002-20150104-comp.hdf5...done/tmp/M002-201501-comp.hdf5...done``` ``````
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9483/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9483/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9484
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9484/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9484/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9484/events
https://github.com/pandas-dev/pandas/pull/9484
57,643,943
MDExOlB1bGxSZXF1ZXN0MjkyOTI2NDE=
9,484
Default values for dropna to "False" (issue 9382)
{ "avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4", "events_url": "https://api.github.com/users/nickeubank/events{/privacy}", "followers_url": "https://api.github.com/users/nickeubank/followers", "following_url": "https://api.github.com/users/nickeubank/following{/other_user}", "gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nickeubank", "id": 9683693, "login": "nickeubank", "node_id": "MDQ6VXNlcjk2ODM2OTM=", "organizations_url": "https://api.github.com/users/nickeubank/orgs", "received_events_url": "https://api.github.com/users/nickeubank/received_events", "repos_url": "https://api.github.com/users/nickeubank/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions", "type": "User", "url": "https://api.github.com/users/nickeubank" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "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
18
2015-02-13T19:40:00Z
2015-06-03T00:09:00Z
2015-05-09T16:00:02Z
CONTRIBUTOR
null
PLEASE REVIEW: This is my commit to a major project, and would appreciate a quick once over! As per discussion in Issue 9382, changes all HDF functions from having default of dropping all rows with NA in all non-index rows. closes #9382
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9484/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9484/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9484.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9484", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9484.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9484" }
https://api.github.com/repos/pandas-dev/pandas/issues/9485
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9485/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9485/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9485/events
https://github.com/pandas-dev/pandas/issues/9485
57,653,717
MDU6SXNzdWU1NzY1MzcxNw==
9,485
Unexpected output of table pivoting when there is little data; a TimeGrouper object is in the index.
{ "avatar_url": "https://avatars.githubusercontent.com/u/273420?v=4", "events_url": "https://api.github.com/users/alep/events{/privacy}", "followers_url": "https://api.github.com/users/alep/followers", "following_url": "https://api.github.com/users/alep/following{/other_user}", "gists_url": "https://api.github.com/users/alep/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alep", "id": 273420, "login": "alep", "node_id": "MDQ6VXNlcjI3MzQyMA==", "organizations_url": "https://api.github.com/users/alep/orgs", "received_events_url": "https://api.github.com/users/alep/received_events", "repos_url": "https://api.github.com/users/alep/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alep/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alep/subscriptions", "type": "User", "url": "https://api.github.com/users/alep" }
[ { "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": "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" }
4
2015-02-13T21:03:29Z
2017-07-08T22:18:32Z
2017-07-08T22:18:26Z
NONE
null
``` python # coding: utf-8 import pandas as pd import numpy as np frame = pd.read_csv("table.csv", engine="python", parse_dates=['since']) print frame d = pd.pivot_table(frame, index=pd.TimeGrouper(key='since', freq='1d'), values=["value"], columns=['id'], aggfunc=np.sum, fill_value=0) print d print "^that is not what I expected" frame = pd.read_csv("table2.csv", engine="python", parse_dates=['since']) # add some values to a day print frame d = pd.pivot_table(frame, index=pd.TimeGrouper(key='since', freq='1d'), values=["value"], columns=['id'], aggfunc=np.sum, fill_value=0) print d ``` The following data is the contents of `table.csv` ``` "id","since","value" "81","2015-01-31 07:00:00+00:00","2200.0000" "81","2015-02-01 07:00:00+00:00","2200.0000" ``` This is `table2.csv`: ``` "id","since","value" "81","2015-01-31 07:00:00+00:00","2200.0000" "81","2015-01-31 08:00:00+00:00","2200.0000" "81","2015-01-31 09:00:00+00:00","2200.0000" "81","2015-02-01 07:00:00+00:00","2200.0000" ``` The output of print after pivoting `table.csv` ``` id value <pandas.tseries.resample.TimeGrouper object at 0x7fc595f96c10> 81 2200 id 81 2200 ``` I would expect something like this: ``` value id 81 since 2015-01-31 2200 2015-02-01 2200 ``` I can trace the problem to here: https://github.com/pydata/pandas/blob/62529cca28e9c8652ddf7cca3aa6d41d4e30bc0e/pandas/tools/pivot.py#L114 the index created by groupby already has the object there. I can't figure anything else. What is the problem, any fixes? 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/9485/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9485/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9486
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9486/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9486/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9486/events
https://github.com/pandas-dev/pandas/pull/9486
57,656,372
MDExOlB1bGxSZXF1ZXN0MjkzMDA1OTI=
9,486
Updated whatsnew for 16.0 for change to hdf dropna default
{ "avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4", "events_url": "https://api.github.com/users/nickeubank/events{/privacy}", "followers_url": "https://api.github.com/users/nickeubank/followers", "following_url": "https://api.github.com/users/nickeubank/following{/other_user}", "gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nickeubank", "id": 9683693, "login": "nickeubank", "node_id": "MDQ6VXNlcjk2ODM2OTM=", "organizations_url": "https://api.github.com/users/nickeubank/orgs", "received_events_url": "https://api.github.com/users/nickeubank/received_events", "repos_url": "https://api.github.com/users/nickeubank/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions", "type": "User", "url": "https://api.github.com/users/nickeubank" }
[]
closed
false
null
[]
null
1
2015-02-13T21:27:46Z
2015-03-13T03:49:22Z
2015-02-13T21:37:12Z
CONTRIBUTOR
null
Document changes from issue 9382
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9486/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9486/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9486.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9486", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9486.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9486" }
https://api.github.com/repos/pandas-dev/pandas/issues/9487
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9487/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9487/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9487/events
https://github.com/pandas-dev/pandas/pull/9487
57,666,511
MDExOlB1bGxSZXF1ZXN0MjkzMDcyNjM=
9,487
CLN: import packers/gbq/html only on-demand (GH9482)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "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-02-13T23:09:53Z
2015-02-24T11:14:35Z
2015-02-24T11:14:34Z
CONTRIBUTOR
null
closes #9482 so a 30% reduction in import time ``` [jreback-~/pandas] time python -c 'import pandas' 0.788u 0.120s 0:00.91 98.9% 0+0k 0+7io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.782u 0.115s 0:00.91 97.8% 0+0k 0+0io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.790u 0.121s 0:00.91 100.0% 0+0k 0+0io 0pf+0w ``` ``` [jreback-~/pandas] time python -c 'import pandas' 0.270u 0.091s 0:00.37 97.2% 0+0k 10+20io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.262u 0.087s 0:00.35 97.1% 0+0k 0+0io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.264u 0.088s 0:00.36 94.4% 0+0k 0+0io 0pf+0w ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9487/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9487/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9487.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9487", "merged_at": "2015-02-24T11:14:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9487.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9487" }
https://api.github.com/repos/pandas-dev/pandas/issues/9488
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9488/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9488/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9488/events
https://github.com/pandas-dev/pandas/issues/9488
57,669,690
MDU6SXNzdWU1NzY2OTY5MA==
9,488
3D ndarray (NxNxN) to DataFrame (NxNxN rows and 4 columns = 3 indices + 1 value)
{ "avatar_url": "https://avatars.githubusercontent.com/u/755287?v=4", "events_url": "https://api.github.com/users/anderflash/events{/privacy}", "followers_url": "https://api.github.com/users/anderflash/followers", "following_url": "https://api.github.com/users/anderflash/following{/other_user}", "gists_url": "https://api.github.com/users/anderflash/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anderflash", "id": 755287, "login": "anderflash", "node_id": "MDQ6VXNlcjc1NTI4Nw==", "organizations_url": "https://api.github.com/users/anderflash/orgs", "received_events_url": "https://api.github.com/users/anderflash/received_events", "repos_url": "https://api.github.com/users/anderflash/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anderflash/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anderflash/subscriptions", "type": "User", "url": "https://api.github.com/users/anderflash" }
[ { "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
8
2015-02-13T23:49:27Z
2015-02-16T15:18:57Z
2015-02-16T15:02:28Z
NONE
null
I have a ndarray (between 4 or 6 dimensions), but let's talk about 3D data. so if I have an index like: ``` python data[i,j,k] = 30 ``` How can I create a excel sheet where the first 3 colunns are the indices like: ``` python >>> frame i j k X 0 0 0 1023 ... 0 0 255 3 ... 0 1 0 34 ... 255 255 255 23 ``` So, if I have a 256x256x256 ndarray cube, I would like 256x256x256 rows, and 4 columns (3 for indices and 1 for value). I tried to use `Panel`, `to_frame` and `to_csv`, but the third dimension are the columns. 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/9488/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9488/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9489
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9489/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9489/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9489/events
https://github.com/pandas-dev/pandas/issues/9489
57,691,232
MDU6SXNzdWU1NzY5MTIzMg==
9,489
Strange behaviour with nested "groupby"s
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "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-02-14T12:13:15Z
2015-02-15T23:12:35Z
2015-02-15T23:12:35Z
MEMBER
null
If I execute the following code: ``` import pandas df = pandas.DataFrame([['test', -2], ['b', -2], ['b', -2]], columns=['surname', 'new_id']) def process_by_last_name(group): if len(group) == 1: if "%" in str(group['new_id']): import ipdb; ipdb.set_trace() return group['new_id'] group['colour'] = range(len(group)) useless = group.groupby('new_id').apply(lambda *x : -1) return group['new_id'] df.groupby('surname').apply(process_by_last_name) ``` I get dropped to an ipdb shell, where curious things happen: ``` ipdb> group surname new_id colour 0 test -2 0 -2 1 ipdb> group.new_id 0 -2 %s %s Name: new_id, dtype: int64 ipdb> group.shape (1, 3) ipdb> group.values.shape *** ValueError: could not broadcast input array from shape (2,2) into shape (2,1) ipdb> group.new_id.shape (1,) ipdb> group.new_id.values.shape (2,) ``` As far as I can judge, my code is weird but does not do "forbidden" things: in particular, the return values are coherent across groups. Even more confusingly to me, I am unable to reproduce with a simpler example.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9489/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9489/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9490
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9490/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9490/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9490/events
https://github.com/pandas-dev/pandas/issues/9490
57,691,948
MDU6SXNzdWU1NzY5MTk0OA==
9,490
Allow method keyword for DataFrame.corrwith()
{ "avatar_url": "https://avatars.githubusercontent.com/u/2330659?v=4", "events_url": "https://api.github.com/users/rhkarls/events{/privacy}", "followers_url": "https://api.github.com/users/rhkarls/followers", "following_url": "https://api.github.com/users/rhkarls/following{/other_user}", "gists_url": "https://api.github.com/users/rhkarls/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhkarls", "id": 2330659, "login": "rhkarls", "node_id": "MDQ6VXNlcjIzMzA2NTk=", "organizations_url": "https://api.github.com/users/rhkarls/orgs", "received_events_url": "https://api.github.com/users/rhkarls/received_events", "repos_url": "https://api.github.com/users/rhkarls/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhkarls/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhkarls/subscriptions", "type": "User", "url": "https://api.github.com/users/rhkarls" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "006b75", "default": false, "description": "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" } ]
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-02-14T12:42:47Z
2021-04-12T05:18:36Z
null
NONE
null
Now it is not possible to choose method when using corrwith() function, which defaults to pearson (I assume). Would be great to see the same methods that are allowed in corr().
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9490/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9490/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9491
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9491/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9491/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9491/events
https://github.com/pandas-dev/pandas/pull/9491
57,694,413
MDExOlB1bGxSZXF1ZXN0MjkzMjA2NDU=
9,491
BUG: unstack with nulls & Timedelta/DateTime index
{ "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" }
5
2015-02-14T14:21:58Z
2015-03-06T02:53:33Z
2015-02-16T12:30:41Z
CONTRIBUTOR
null
xref https://github.com/pydata/pandas/pull/9292#discussion_r24620887 on branch: ``` >>> df a b c 0 2014-02-01 -1 days 100 1 NaT NaT 101 2 2014-02-03 1 days 102 3 NaT 2 days 103 4 2014-02-05 NaT 104 5 2014-02-06 4 days 105 >>> df.pivot('a', 'b', 'c').fillna('-') b NaT -1 days 1 days 2 days 4 days a NaT 101 - - 103 - 2014-02-01 - 100 - - - 2014-02-03 - - 102 - - 2014-02-05 104 - - - - 2014-02-06 - - - - 105 >>> df.pivot('b', 'a', 'c').fillna('-') a NaT 2014-02-01 2014-02-03 2014-02-05 2014-02-06 b NaT 101 - - 104 - -1 days - 100 - - - 1 days - - 102 - - 2 days 103 - - - - 4 days - - - - 105 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9491/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9491/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9491.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9491", "merged_at": "2015-02-16T12:30:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9491.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9491" }
https://api.github.com/repos/pandas-dev/pandas/issues/9492
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9492/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9492/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9492/events
https://github.com/pandas-dev/pandas/pull/9492
57,698,725
MDExOlB1bGxSZXF1ZXN0MjkzMjIzNjY=
9,492
WIP/TST: Added test of unstacking two levels with NaN.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[]
closed
false
null
[]
null
6
2015-02-14T16:52:17Z
2015-02-16T00:30:51Z
2015-02-15T23:14:46Z
CONTRIBUTOR
null
Added a test to `test_unstack_nan_index()` for unstacking two levels simultaneously when one of them contains a `NaN`. Should delete the `print()` statements before merging... This is the output I get: ``` ====================================================================== FAIL: test_unstack_nan_index (pandas.tests.test_frame.TestDataFrame) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\seth\github\pandas2\build\lib.win-amd64-3.4\pandas\tests\test_frame.py", line 12439, in test_unstack_nan_index assert_series_equal(left, right) File "c:\Users\seth\github\pandas2\build\lib.win-amd64-3.4\pandas\util\testing.py", line 674, in assert_series_equal assert_almost_equal(left.values, right.values, check_less_precise) File "das\src\testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas\src\testing.c:2745) File "das\src\testing.pyx", line 93, in pandas._testing.assert_almost_equal (pandas\src\testing.c:1830) File "das\src\testing.pyx", line 135, in pandas._testing.assert_almost_equal (pandas\src\testing.c:2514) nose.proxy.AssertionError: (very low values) expected 3.00000 but got 0.00000, with decimal 5 -------------------- >> begin captured stdout << --------------------- dfs= C A B a 0 0 1 1 2 2 NaN 3 b 4 4 5 5 6 6 7 7 left= A B C a 1 0 2 1 4 2 0 3 b 6 4 7 5 a 0 6 1 7 dtype: int32 right= A B C a NaN 3 0 0 1 1 2 2 b 4 4 5 5 6 6 7 7 dtype: int32 --------------------- >> end captured stdout << ---------------------- ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9492/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9492/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9492.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9492", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/9492.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9492" }
https://api.github.com/repos/pandas-dev/pandas/issues/9493
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9493/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9493/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9493/events
https://github.com/pandas-dev/pandas/pull/9493
57,717,476
MDExOlB1bGxSZXF1ZXN0MjkzMjk5MjA=
9,493
ENH Read Stata dta file incrementally
{ "avatar_url": "https://avatars.githubusercontent.com/u/2666691?v=4", "events_url": "https://api.github.com/users/kshedden/events{/privacy}", "followers_url": "https://api.github.com/users/kshedden/followers", "following_url": "https://api.github.com/users/kshedden/following{/other_user}", "gists_url": "https://api.github.com/users/kshedden/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kshedden", "id": 2666691, "login": "kshedden", "node_id": "MDQ6VXNlcjI2NjY2OTE=", "organizations_url": "https://api.github.com/users/kshedden/orgs", "received_events_url": "https://api.github.com/users/kshedden/received_events", "repos_url": "https://api.github.com/users/kshedden/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kshedden/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kshedden/subscriptions", "type": "User", "url": "https://api.github.com/users/kshedden" }
[ { "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" }
16
2015-02-15T04:30:17Z
2015-11-12T23:44:19Z
2015-03-05T23:26:19Z
CONTRIBUTOR
null
This PR adds a get_chunk method to StataReader to allow files to be read incrementally. This is quite useful when processing large files that can barely fit into memory. The interface is modeled after the analogous method in TextFileReader. There are some limitations when incrementally converting categoricals in pre 117 version files. I have a work-around that involves reading the file through once to get the label information, then re-reading and converting using a new function called convert_categoricals. In a fair amount of testing, I always get identical results using get_chunk and reading the file completely. I left the existing data(...) method for reading the complete file intact. Potentially it could be changed to simply call get_chunk. A few additional issues: 1. The PR fixes an apparent bug in _stata_elapsed_date_to_datetime_vec, in all three of the nested convert_xxx functions. In some execution paths, a new Series is created without using the index of the series passed as an argument. This can cause incorrect NA detection when the result is indexed using bad_locs. 2. A modest performance improvement (~40% for me) is obtained by using partition inside of _null_terminate in place of index/slice operations. 3. Different date object types may be returned during date conversions, according to the execution path. These can represent identical dates but test as being different using assert_frame_equal. So there's a bit of extra care required in some of the tests. 4. It would be easy to add an iterator to read the chunks, but I didn't do that. You need to call get_chunk directly. 5. Some dtypes may change from chunk-to-chunk. For example, I believe that pandas promotes integers to floats when there are missing values. In a chunk with no missing values the dtype would be int, but become float when there are missing values. 6. A comment separate from this PR, the slowest step for reading the big data files I work with is string decoding and truncation (millions of calls to _null_terminate). Other than the modest gain using partition, I tried and failed to find a good optimization for this.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9493/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9493/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9493.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9493", "merged_at": "2015-03-05T23:26:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9493.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9493" }
https://api.github.com/repos/pandas-dev/pandas/issues/9494
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9494/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9494/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9494/events
https://github.com/pandas-dev/pandas/issues/9494
57,743,907
MDU6SXNzdWU1Nzc0MzkwNw==
9,494
Chainable Series.set_name()
{ "avatar_url": "https://avatars.githubusercontent.com/u/1017726?v=4", "events_url": "https://api.github.com/users/wavexx/events{/privacy}", "followers_url": "https://api.github.com/users/wavexx/followers", "following_url": "https://api.github.com/users/wavexx/following{/other_user}", "gists_url": "https://api.github.com/users/wavexx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wavexx", "id": 1017726, "login": "wavexx", "node_id": "MDQ6VXNlcjEwMTc3MjY=", "organizations_url": "https://api.github.com/users/wavexx/orgs", "received_events_url": "https://api.github.com/users/wavexx/received_events", "repos_url": "https://api.github.com/users/wavexx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wavexx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wavexx/subscriptions", "type": "User", "url": "https://api.github.com/users/wavexx" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2016-03-12T16:19:08Z", "closed_issues": 469, "created_at": "2015-07-19T20:18:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-03-13T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/36", "id": 1214851, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels", "node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==", "number": 36, "open_issues": 0, "state": "closed", "title": "0.18.0", "updated_at": "2016-12-06T21:34:41Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36" }
11
2015-02-15T20:12:25Z
2016-02-11T13:09:26Z
2016-02-11T02:42:04Z
NONE
null
It's sometimes convenient to assign/replace the name of a Series, especially if the result is going to be a DataFrame column, for example: ``` df.groupby([]).size().set_name('GRP_SIZE').reset_index() ``` This should be as simple as: ``` def set_name(self, name): self.name = name return self ``` Comments?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9494/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9494/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9495
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9495/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9495/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9495/events
https://github.com/pandas-dev/pandas/issues/9495
57,744,468
MDU6SXNzdWU1Nzc0NDQ2OA==
9,495
Horizontal barplot
{ "avatar_url": "https://avatars.githubusercontent.com/u/1017726?v=4", "events_url": "https://api.github.com/users/wavexx/events{/privacy}", "followers_url": "https://api.github.com/users/wavexx/followers", "following_url": "https://api.github.com/users/wavexx/following{/other_user}", "gists_url": "https://api.github.com/users/wavexx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wavexx", "id": 1017726, "login": "wavexx", "node_id": "MDQ6VXNlcjEwMTc3MjY=", "organizations_url": "https://api.github.com/users/wavexx/orgs", "received_events_url": "https://api.github.com/users/wavexx/received_events", "repos_url": "https://api.github.com/users/wavexx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wavexx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wavexx/subscriptions", "type": "User", "url": "https://api.github.com/users/wavexx" }
[]
closed
false
null
[]
null
3
2015-02-15T20:26:22Z
2015-02-16T14:16:06Z
2015-02-16T13:17:13Z
NONE
null
I just want to flip the direction of the bars in a barplot, but currently, the orientation of a barplot cannot be set to 'horizontal': ``` pd.Series([1,2], index=pd.Index([1,2], name='x')).plot(kind='bar', orientation='horizontal') ``` yelds an: ``` AssertionError: incompatible sizes: argument 'left' must be length 1 or scalar ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9495/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9495/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9496
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9496/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9496/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9496/events
https://github.com/pandas-dev/pandas/issues/9496
57,746,742
MDU6SXNzdWU1Nzc0Njc0Mg==
9,496
CLN: consolidate Iterator interface
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "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": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 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-02-15T21:24:45Z
2020-05-02T04:08:38Z
2020-05-02T04:08:37Z
CONTRIBUTOR
null
In several of the IO interfaces, we allow `chunksize=` and `iterator` to allow chunk reading. These all use sepearate non-conforming base classes. We should create a base class `core/base.py/Iterator` that inherits from `collections.Iterator`. Then incorporate as much of this combined functionaility into this base class. To have them each have a similar interface. - [x] `read_stata` #9493, #12173 - [ ] `read_hdf` [here](https://github.com/pydata/pandas/blob/master/pandas/io/pytables.py#L1276) - [x] `read_csv` #12173 - [ ] `read_msgpack` [here](https://github.com/pydata/pandas/blob/master/pandas/io/packers.py#L599)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 3, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9496/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9496/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9497
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9497/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9497/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9497/events
https://github.com/pandas-dev/pandas/issues/9497
57,753,602
MDU6SXNzdWU1Nzc1MzYwMg==
9,497
BUG: DataFrame.unstack() with two levels containing NaN
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "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" }
1
2015-02-16T00:19:15Z
2015-03-05T23:25:33Z
2015-03-05T23:25:33Z
CONTRIBUTOR
null
With latest master code (including #9061 and #9292), `DataFrame.unstack()` produces incorrect results when `level` contains two levels one of which contains `NaN`: ``` df = pd.DataFrame({'A': list('aaaabbbb'),'B':range(8), 'C':range(8)}) df.iloc[3, 1] = np.NaN dfs = df.set_index(['A', 'B']) left = dfs.unstack([0, 1) data = [3, 0, 1, 2, 4, 5, 6, 7] idx = MultiIndex(levels=[['C'], ['a', 'b'], [0, 1, 2, 4, 5, 6, 7]], labels=[[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1], [-1, 0, 1, 2, 3, 4, 5, 6]], names=[None, 'A', 'B']) right = Series(data, index=idx, dtype=dfs.dtypes[0]) print("dfs=") print(dfs) print("\nleft=") print(left) print("\nright=") print(right) assert_series_equal(left, right) ``` produces: ``` ====================================================================== FAIL: test_unstack_nan_index (pandas.tests.test_frame.TestDataFrame) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\seth\github\pandas2\build\lib.win-amd64-3.4\pandas\tests\test_frame.py", line 12439, in test_unstack_nan_index assert_series_equal(left, right) File "c:\Users\seth\github\pandas2\build\lib.win-amd64-3.4\pandas\util\testing.py", line 674, in assert_series_equal assert_almost_equal(left.values, right.values, check_less_precise) File "das\src\testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas\src\testing.c:2745) File "das\src\testing.pyx", line 93, in pandas._testing.assert_almost_equal (pandas\src\testing.c:1830) File "das\src\testing.pyx", line 135, in pandas._testing.assert_almost_equal (pandas\src\testing.c:2514) nose.proxy.AssertionError: (very low values) expected 3.00000 but got 0.00000, with decimal 5 -------------------- >> begin captured stdout << --------------------- dfs= C A B a 0 0 1 1 2 2 NaN 3 b 4 4 5 5 6 6 7 7 left= A B C a 1 0 2 1 4 2 0 3 b 6 4 7 5 a 0 6 1 7 dtype: int32 right= A B C a NaN 3 0 0 1 1 2 2 b 4 4 5 5 6 6 7 7 dtype: int32 --------------------- >> end captured stdout << ---------------------- ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9497/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9497/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/9498
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9498/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9498/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9498/events
https://github.com/pandas-dev/pandas/pull/9498
57,754,856
MDExOlB1bGxSZXF1ZXN0MjkzNDQ3Njk=
9,498
Promote some code consistency in type testing methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "fbca04", "default": false, "description": "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": "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" }
0
2015-02-16T00:52:53Z
2015-02-16T00:53:41Z
2015-02-16T00:53:41Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9498/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9498/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9498.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9498", "merged_at": "2015-02-16T00:53:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9498.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9498" }
https://api.github.com/repos/pandas-dev/pandas/issues/9499
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9499/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9499/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9499/events
https://github.com/pandas-dev/pandas/pull/9499
57,813,404
MDExOlB1bGxSZXF1ZXN0MjkzNzgyODE=
9,499
TST: fix read_pickle for win32 compat
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "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-02-16T14:55:58Z
2015-02-16T15:37:45Z
2015-02-16T15:37:45Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9499/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9499/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9499.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9499", "merged_at": "2015-02-16T15:37:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9499.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9499" }
https://api.github.com/repos/pandas-dev/pandas/issues/9500
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9500/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9500/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9500/events
https://github.com/pandas-dev/pandas/pull/9500
57,856,421
MDExOlB1bGxSZXF1ZXN0Mjk0MDM2NTE=
9,500
BLD: revise setup.py to clean properly on windows platforms
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
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-02-16T22:03:01Z
2015-02-16T22:43:57Z
2015-02-16T22:43:57Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9500/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9500/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9500.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9500", "merged_at": "2015-02-16T22:43:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9500.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9500" }
https://api.github.com/repos/pandas-dev/pandas/issues/9501
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/9501/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/9501/comments
https://api.github.com/repos/pandas-dev/pandas/issues/9501/events
https://github.com/pandas-dev/pandas/pull/9501
57,865,335
MDExOlB1bGxSZXF1ZXN0Mjk0MDgzNDI=
9,501
BUG: Incorrect dtypes inferred on datetimelike looking series & on xs slices (GH9477)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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" }
0
2015-02-16T23:44:53Z
2015-02-24T13:49:22Z
2015-02-24T13:49:22Z
CONTRIBUTOR
null
closes #9477
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/9501/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/9501/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/9501.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/9501", "merged_at": "2015-02-24T13:49:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/9501.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9501" }