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/14208
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14208/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14208/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14208/events
https://github.com/pandas-dev/pandas/pull/14208
176,455,774
MDExOlB1bGxSZXF1ZXN0ODQ5MjUwNTg=
14,208
ENH: Add divmod to series.
{ "avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4", "events_url": "https://api.github.com/users/llllllllll/events{/privacy}", "followers_url": "https://api.github.com/users/llllllllll/followers", "following_url": "https://api.github.com/users/llllllllll/following{/other_user}", "gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/llllllllll", "id": 3064397, "login": "llllllllll", "node_id": "MDQ6VXNlcjMwNjQzOTc=", "organizations_url": "https://api.github.com/users/llllllllll/orgs", "received_events_url": "https://api.github.com/users/llllllllll/received_events", "repos_url": "https://api.github.com/users/llllllllll/repos", "site_admin": false, "starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions", "type": "User", "url": "https://api.github.com/users/llllllllll" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
9
2016-09-12T18:58:01Z
2016-09-19T21:09:27Z
2016-09-19T21:07:02Z
CONTRIBUTOR
null
- [x] closes #8174 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry edit: in the issue it said this is uncommon; however, I recently ran into an issue where I was doing arithmetic with fiscal quarters and using divmod seemed more natural.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14208/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14208/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14208.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14208", "merged_at": "2016-09-19T21:07:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14208.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14208" }
https://api.github.com/repos/pandas-dev/pandas/issues/14209
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14209/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14209/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14209/events
https://github.com/pandas-dev/pandas/pull/14209
176,528,356
MDExOlB1bGxSZXF1ZXN0ODQ5NzM1NjY=
14,209
WIP/API: add magic 'X' for selection
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
null
6
2016-09-13T01:51:32Z
2016-10-30T14:59:50Z
2016-10-30T14:59:50Z
CONTRIBUTOR
null
- [ ] could close #13133 - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry This is very WIP, but wanted to put it up and show the general direction. This adds essentially a modified version of `pandas_ply` that produces plain callables that can be passed to the existing `[]`/`assign` methods. Short demo below. One thing that's tricky is figuring out when an expression is "complete." `pandas_ply` and `dplython` don't have to do this because they use a special method to instantiate the selection, but I'd prefer not to do this if possible, so this doesn't touch any pandas internals. There's one example below (`X.c.str.upper()`) that shows where the current heuristic is failing. cc @shoyer, @jreback, @joshuahhh @dodger487, welcome any thoughts ``` df = pd.DataFrame({'a':[1,2,3], 'b':[1.5, 2.5, 3.4], 'c':['abc', 'def', 'efg'], 'd':pd.to_datetime(['2014-01-01', '2014-01-02', '2014-01-03'])}) from pandas import X df[X.a > 1] Out[3]: a b c d 1 2 2.5 def 2014-01-02 2 3 3.4 efg 2014-01-03 df[X.d.dt.day == 2] Out[4]: a b c d 1 2 2.5 def 2014-01-02 df.assign(e=X.a+1) Out[5]: a b c d e 0 1 1.5 abc 2014-01-01 2 1 2 2.5 def 2014-01-02 3 2 3 3.4 efg 2014-01-03 4 df.assign(e=X.b.pipe(np.exp)) Out[6]: a b c d e 0 1 1.5 abc 2014-01-01 4.481689 1 2 2.5 def 2014-01-02 12.182494 2 3 3.4 efg 2014-01-03 29.964100 # this should work, but doesn't df.assign(e=X.c.str.upper()) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-7-65b030f82188> in <module>() ----> 1 df.assign(e=X.c.str.upper()) # this can't work, but need to give a good error msg df.assign(e=np.log(X.a)) --------------------------------------------------------------------------- TypeError: pandas `X` is a deferred object that cannot be passed into functions. The object was attempted to be converted to a numpy array which is invalid. To pass a deferred Series into a function, use the .pipe function, for example, X.a.pipe(np.log), instead np.log(df.a) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14209/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14209/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14209.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14209", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14209.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14209" }
https://api.github.com/repos/pandas-dev/pandas/issues/14210
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14210/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14210/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14210/events
https://github.com/pandas-dev/pandas/issues/14210
176,531,961
MDU6SXNzdWUxNzY1MzE5NjE=
14,210
Option to Raise Exception on Unmapped Value in Series.map
{ "avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4", "events_url": "https://api.github.com/users/cancan101/events{/privacy}", "followers_url": "https://api.github.com/users/cancan101/followers", "following_url": "https://api.github.com/users/cancan101/following{/other_user}", "gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cancan101", "id": 51059, "login": "cancan101", "node_id": "MDQ6VXNlcjUxMDU5", "organizations_url": "https://api.github.com/users/cancan101/orgs", "received_events_url": "https://api.github.com/users/cancan101/received_events", "repos_url": "https://api.github.com/users/cancan101/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cancan101/subscriptions", "type": "User", "url": "https://api.github.com/users/cancan101" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
open
false
null
[]
null
4
2016-09-13T02:22:20Z
2021-05-01T23:41:07Z
null
CONTRIBUTOR
null
Add a flag (or extend `na_action`) to raise an exception in `Series.map` if a value is not successfully mapped (ie in the case where `arg` is a dict.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14210/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14210/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14211
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14211/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14211/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14211/events
https://github.com/pandas-dev/pandas/pull/14211
176,577,846
MDExOlB1bGxSZXF1ZXN0ODUwMDMwNTY=
14,211
DOC: fix incorrect example in unstack docstring (GH14206)
{ "avatar_url": "https://avatars.githubusercontent.com/u/6025419?v=4", "events_url": "https://api.github.com/users/sudk1896/events{/privacy}", "followers_url": "https://api.github.com/users/sudk1896/followers", "following_url": "https://api.github.com/users/sudk1896/following{/other_user}", "gists_url": "https://api.github.com/users/sudk1896/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sudk1896", "id": 6025419, "login": "sudk1896", "node_id": "MDQ6VXNlcjYwMjU0MTk=", "organizations_url": "https://api.github.com/users/sudk1896/orgs", "received_events_url": "https://api.github.com/users/sudk1896/received_events", "repos_url": "https://api.github.com/users/sudk1896/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sudk1896/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sudk1896/subscriptions", "type": "User", "url": "https://api.github.com/users/sudk1896" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
5
2016-09-13T08:13:44Z
2016-09-14T04:39:58Z
2016-09-13T23:00:15Z
NONE
null
- [x] closes #14206 The following PR closes #14206 and corrects the Docs as suggested in the issue thread. @jorisvandenbossche Kindly review.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14211/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14211/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14211.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14211", "merged_at": "2016-09-13T23:00:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14211.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14211" }
https://api.github.com/repos/pandas-dev/pandas/issues/14212
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14212/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14212/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14212/events
https://github.com/pandas-dev/pandas/issues/14212
176,593,453
MDU6SXNzdWUxNzY1OTM0NTM=
14,212
to_sql doesn't support decimal types - stored as text in database
{ "avatar_url": "https://avatars.githubusercontent.com/u/3305775?v=4", "events_url": "https://api.github.com/users/seanv507/events{/privacy}", "followers_url": "https://api.github.com/users/seanv507/followers", "following_url": "https://api.github.com/users/seanv507/following{/other_user}", "gists_url": "https://api.github.com/users/seanv507/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seanv507", "id": 3305775, "login": "seanv507", "node_id": "MDQ6VXNlcjMzMDU3NzU=", "organizations_url": "https://api.github.com/users/seanv507/orgs", "received_events_url": "https://api.github.com/users/seanv507/received_events", "repos_url": "https://api.github.com/users/seanv507/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seanv507/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seanv507/subscriptions", "type": "User", "url": "https://api.github.com/users/seanv507" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-13T09:33:26Z
2016-09-13T10:00:56Z
2016-09-13T09:58:53Z
NONE
null
I am using postgresql database #### Code Sample, a copy-pastable example if possible a=pd.DataFrame({'a':[decimal.Decimal('0.1'), decimal.Decimal('0.1'), decimal.Decimal('0.1'), decimal.Decimal('0.3')]}) #### Expected Output conn is sql alchemy connection a.to_sql('testdec',conn) what is produced: CREATE TABLE testdec ( index bigint, a text ) I would have expected the use of decimal type? #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: de_DE pandas: 0.18.0 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.5.1 (dt dec pq3 ext) jinja2: 2.8 boto: 2.39.0
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14212/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14212/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14213
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14213/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14213/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14213/events
https://github.com/pandas-dev/pandas/pull/14213
176,689,319
MDExOlB1bGxSZXF1ZXN0ODUwODIyNDk=
14,213
BUG: loffset not applied when using resample with agg() (GH13218)
{ "avatar_url": "https://avatars.githubusercontent.com/u/13247590?v=4", "events_url": "https://api.github.com/users/wcwagner/events{/privacy}", "followers_url": "https://api.github.com/users/wcwagner/followers", "following_url": "https://api.github.com/users/wcwagner/following{/other_user}", "gists_url": "https://api.github.com/users/wcwagner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wcwagner", "id": 13247590, "login": "wcwagner", "node_id": "MDQ6VXNlcjEzMjQ3NTkw", "organizations_url": "https://api.github.com/users/wcwagner/orgs", "received_events_url": "https://api.github.com/users/wcwagner/received_events", "repos_url": "https://api.github.com/users/wcwagner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wcwagner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wcwagner/subscriptions", "type": "User", "url": "https://api.github.com/users/wcwagner" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
9
2016-09-13T16:32:56Z
2016-12-31T16:58:13Z
2016-12-31T16:56:53Z
CONTRIBUTOR
null
- [x] closes #13218 and #15002 (continuation of closed PR https://github.com/pydata/pandas/pull/13861) - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry _apply_loffset is called in resampler's downsample and groupby_and_agg methods, defined [here](https://github.com/pydata/pandas/blob/master/pandas/tseries/resample.py#L535) and [here](https://github.com/pydata/pandas/blob/master/pandas/tseries/resample.py#L545) When a `str` is passed into `aggregate`, the above methods are called [here](https://github.com/pydata/pandas/blob/master/pandas/core/base.py#L431), and consequently the loffset is applied. **However**, if anything other than a `str` is passed into `aggregate`, then a different path will be taken and **the loffset must be applied**. So a simple check in `aggregate` will apply the loffset correctly. note: my last PR was closed, and I can't reopen it by a force push, hence the new one
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14213/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14213/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14213.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14213", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14213.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14213" }
https://api.github.com/repos/pandas-dev/pandas/issues/14214
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14214/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14214/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14214/events
https://github.com/pandas-dev/pandas/pull/14214
176,724,593
MDExOlB1bGxSZXF1ZXN0ODUxMDcxNzA=
14,214
add check for infinity in __call__ of EngFormatter
{ "avatar_url": "https://avatars.githubusercontent.com/u/251611?v=4", "events_url": "https://api.github.com/users/swfiua/events{/privacy}", "followers_url": "https://api.github.com/users/swfiua/followers", "following_url": "https://api.github.com/users/swfiua/following{/other_user}", "gists_url": "https://api.github.com/users/swfiua/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/swfiua", "id": 251611, "login": "swfiua", "node_id": "MDQ6VXNlcjI1MTYxMQ==", "organizations_url": "https://api.github.com/users/swfiua/orgs", "received_events_url": "https://api.github.com/users/swfiua/received_events", "repos_url": "https://api.github.com/users/swfiua/repos", "site_admin": false, "starred_url": "https://api.github.com/users/swfiua/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/swfiua/subscriptions", "type": "User", "url": "https://api.github.com/users/swfiua" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
4
2016-09-13T19:09:55Z
2016-09-13T23:18:07Z
2016-09-13T22:00:08Z
CONTRIBUTOR
null
EngFormatter throws an exception if passed 'inf' as below. This patch checks for infinity and just returns 'inf' in that case. The fix is analagous to the recent fix for NaN: https://github.com/pydata/pandas/commit/d0734ba4d0f4c228110dc3974943ce4ec2adeea4 ``` python import pandas import pandas.core.format as fmt ef = fmt.EngFormatter() ef(pandas.np.inf) ... ``` --- OverflowError Traceback (most recent call last) <ipython-input-17-c4aa659346ee> in <module>() 3 4 ef = fmt.EngFormatter() ----> 5 ef(pandas.np.inf) /usr/lib/python3/dist-packages/pandas/core/format.py in **call**(self, num) 2485 2486 if dnum != 0: -> 2487 pow10 = decimal.Decimal(int(math.floor(dnum.log10() / 3) \* 3)) 2488 else: 2489 pow10 = decimal.Decimal(0) OverflowError: cannot convert Infinity to integer
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14214/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14214/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14214.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14214", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14214.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14214" }
https://api.github.com/repos/pandas-dev/pandas/issues/14215
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14215/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14215/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14215/events
https://github.com/pandas-dev/pandas/issues/14215
176,733,423
MDU6SXNzdWUxNzY3MzM0MjM=
14,215
BUG: Panel.at[] bug with DatetimeIndex
{ "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-13T19:52:01Z
2018-07-06T20:21:10Z
2017-07-10T21:04:40Z
CONTRIBUTOR
null
``` In [1]: import pandas as pd In [2]: import datetime as dt In [3]: p = pd.Panel(0., items=list('abc'), major_axis=pd.date_range(dt.date(2000, 1, 1), periods=3), minor_axis=list('xyz'), dtype=floa In [4]: p.ix['c', dt.date(2000, 1, 2), 'z'] += 2. In [5]: p.loc['c', dt.date(2000, 1, 2), 'z'] += 3. In [6]: p.at['c', dt.date(2000, 1, 2), 'z'] += 4. --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-ec4d00dae6ba> in <module>() ----> 1 p.at['c', dt.date(2000, 1, 2), 'z'] += 4. c:\python27\lib\site-packages\pandas\core\indexing.pyc in __getitem__(self, key) 1647 1648 key = self._convert_key(key) -> 1649 return self.obj.get_value(*key, takeable=self._takeable) 1650 1651 def __setitem__(self, key, value): c:\python27\lib\site-packages\pandas\core\panel.pyc in get_value(self, *args, **kwargs) 502 lower = self._get_item_cache(args[0]) 503 --> 504 return lower.get_value(*args[1:], takeable=takeable) 505 506 def set_value(self, *args, **kwargs): c:\python27\lib\site-packages\pandas\core\frame.pyc in get_value(self, index, col, takeable) 1836 series = self._get_item_cache(col) 1837 engine = self.index._engine -> 1838 return engine.get_value(series.get_values(), index) 1839 1840 def set_value(self, index, col, value, takeable=False): pandas\index.pyx in pandas.index.IndexEngine.get_value (pandas\index.c:3234)() pandas\index.pyx in pandas.index.IndexEngine.get_value (pandas\index.c:2931)() pandas\index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11064)() pandas\index.pyx in pandas.index.DatetimeEngine._date_check_type (pandas\index.c:11232)() KeyError: datetime.date(2000, 1, 2) In [7]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 27.1.2 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.3.0 numexpr: 2.6.1 matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.15 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: None boto: None pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14215/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14215/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14216
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14216/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14216/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14216/events
https://github.com/pandas-dev/pandas/issues/14216
176,776,804
MDU6SXNzdWUxNzY3NzY4MDQ=
14,216
Inconsistent type casting between DataFrame and Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/2512762?v=4", "events_url": "https://api.github.com/users/dwyatte/events{/privacy}", "followers_url": "https://api.github.com/users/dwyatte/followers", "following_url": "https://api.github.com/users/dwyatte/following{/other_user}", "gists_url": "https://api.github.com/users/dwyatte/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dwyatte", "id": 2512762, "login": "dwyatte", "node_id": "MDQ6VXNlcjI1MTI3NjI=", "organizations_url": "https://api.github.com/users/dwyatte/orgs", "received_events_url": "https://api.github.com/users/dwyatte/received_events", "repos_url": "https://api.github.com/users/dwyatte/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dwyatte/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dwyatte/subscriptions", "type": "User", "url": "https://api.github.com/users/dwyatte" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
7
2016-09-13T23:28:06Z
2017-09-12T15:43:22Z
2016-09-14T10:23:44Z
NONE
null
There is an inconsistency between how Series and DataFrames export types to dicts. The issue only manifests if the dataframe has multiple columns with different types. I think the issue is probably pretty far under the surface with differences between Series and DataFrame dtypes and just happened to be uncovered by export to dict. #### Code Sample, a copy-pastable example if possible ``` import pandas as pd orig_dict = [{0: 'a', 1: 1}] # does not happen with # orig_dict =[{0: 0, 1: 1}] print 'Original dict' for k in orig_dict[0]: print type(orig_dict[0][k]) print df = pd.DataFrame(orig_dict) dict_exported_from_dataframe = [df.loc[[x]].to_dict(orient='records')[0] for x in df.index] dict_exported_from_series = [df.loc[x].to_dict() for x in df.index] print 'Dict exported from DataFrame' for k in dict_exported_from_dataframe[0]: print type(dict_exported_from_dataframe[0][k]) print print 'Dict exported from Series' for k in dict_exported_from_series[0]: print type(dict_exported_from_series[0][k]) print ``` #### Expected Output ``` Original dict <type 'str'> <type 'int'> Dict exported from DataFrame <type 'str'> <type 'int'> Dict exported from Series <type 'str'> <type 'int'> ``` OR ``` Original dict <type 'str'> <type 'int'> Dict exported from DataFrame <type 'str'> <type 'numpy.int64'> Dict exported from Series <type 'str'> <type 'numpy.int64'> ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 14.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.2.0 Cython: None numpy: 1.11.1 scipy: 0.13.0b1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14216/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14216/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14217
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14217/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14217/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14217/events
https://github.com/pandas-dev/pandas/issues/14217
176,779,851
MDU6SXNzdWUxNzY3Nzk4NTE=
14,217
BUG: Copying columns containing lists
{ "avatar_url": "https://avatars.githubusercontent.com/u/5368504?v=4", "events_url": "https://api.github.com/users/lzoeckle/events{/privacy}", "followers_url": "https://api.github.com/users/lzoeckle/followers", "following_url": "https://api.github.com/users/lzoeckle/following{/other_user}", "gists_url": "https://api.github.com/users/lzoeckle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lzoeckle", "id": 5368504, "login": "lzoeckle", "node_id": "MDQ6VXNlcjUzNjg1MDQ=", "organizations_url": "https://api.github.com/users/lzoeckle/orgs", "received_events_url": "https://api.github.com/users/lzoeckle/received_events", "repos_url": "https://api.github.com/users/lzoeckle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lzoeckle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lzoeckle/subscriptions", "type": "User", "url": "https://api.github.com/users/lzoeckle" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-13T23:50:04Z
2016-09-14T08:04:03Z
2016-09-14T01:48:19Z
NONE
null
## BRIEF EXPLANATION Copying a column using df.apply() will fail if that column contains lists and the first item in that column is a list of length exactly two. ## CODE SAMPLE ``` import pandas as pd def list_to_list(df): return df['list'] check = pd.DataFrame({'id': [0,1], 'list':[['1','2'], ['1', '2']]}) check['new_list'] = check.apply(list_to_list, axis = 1) ``` Running the code above results in the following error message: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-48-02b4161cb08e> in <module>() 1 check = pd.DataFrame({'id': [0,1], 'list':[['1','2'], ['1', '2']]}) ----> 2 check['new_list'] = check.apply(list_to_list, axis = 1) /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in __setitem__(self, key, value) 2297 else: 2298 # set column -> 2299 self._set_item(key, value) 2300 2301 def _setitem_slice(self, key, value): /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _set_item(self, key, value) 2365 self._ensure_valid_index(value) 2366 value = self._sanitize_column(key, value) -> 2367 NDFrame._set_item(self, key, value) 2368 2369 # check if we are modifying a copy /anaconda/lib/python2.7/site-packages/pandas/core/generic.pyc in _set_item(self, key, value) 1206 1207 def _set_item(self, key, value): -> 1208 self._data.set(key, value) 1209 self._clear_item_cache() 1210 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in set(self, item, value, check) 3332 except KeyError: 3333 # This item wasn't present, just insert at end -> 3334 self.insert(len(self.items), item, value) 3335 return 3336 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in insert(self, loc, item, value, allow_duplicates) 3434 block = make_block(values=value, 3435 ndim=self.ndim, -> 3436 placement=slice(loc, loc+1)) 3437 3438 for blkno, count in _fast_count_smallints(self._blknos[loc:]): /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in make_block(values, placement, klass, ndim, dtype, fastpath) 2452 2453 return klass(values, ndim=ndim, fastpath=fastpath, -> 2454 placement=placement) 2455 2456 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in __init__(self, values, ndim, fastpath, placement, **kwargs) 1626 super(ObjectBlock, self).__init__(values, ndim=ndim, 1627 fastpath=fastpath, -> 1628 placement=placement, **kwargs) 1629 1630 @property /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in __init__(self, values, placement, ndim, fastpath) 85 raise ValueError('Wrong number of items passed %d,' 86 ' placement implies %d' % ( ---> 87 len(self.values), len(self.mgr_locs))) 88 89 @property ValueError: Wrong number of items passed 2, placement implies 1 ``` ``` check1 = pd.DataFrame({'id': [0,1], 'list':[['1','2'], ['1', '2', '3']]}) check1['new_list'] = check1.apply(list_to_list, axis = 1) ``` Running the code above results in the following error message: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-49-571835e7c0cb> in <module>() 1 check1 = pd.DataFrame({'id': [0,1], 'list':[['1','2'], ['1', '2', '3']]}) ----> 2 check1['new_list'] = check1.apply(list_to_list, axis = 1) /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in apply(self, func, axis, broadcast, raw, reduce, args, **kwds) 3970 if reduce is None: 3971 reduce = True -> 3972 return self._apply_standard(f, axis, reduce=reduce) 3973 else: 3974 return self._apply_broadcast(f, axis) /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _apply_standard(self, func, axis, ignore_failures, reduce) 4079 index = None 4080 -> 4081 result = self._constructor(data=results, index=index) 4082 result.columns = res_index 4083 /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy) 224 dtype=dtype, copy=copy) 225 elif isinstance(data, dict): --> 226 mgr = self._init_dict(data, index, columns, dtype=dtype) 227 elif isinstance(data, ma.MaskedArray): 228 import numpy.ma.mrecords as mrecords /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype) 361 362 return _arrays_to_mgr(arrays, data_names, index, columns, --> 363 dtype=dtype) 364 365 def _init_ndarray(self, values, index, columns, dtype=None, /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5166 axes = [_ensure_index(columns), _ensure_index(index)] 5167 -> 5168 return create_block_manager_from_arrays(arrays, arr_names, axes) 5169 5170 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in create_block_manager_from_arrays(arrays, names, axes) 3914 return mgr 3915 except (ValueError) as e: -> 3916 construction_error(len(arrays), arrays[0].shape, axes, e) 3917 3918 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in construction_error(tot_items, block_shape, axes, e) 3878 implied = tuple(map(int, [len(ax) for ax in axes])) 3879 if passed == implied and e is not None: -> 3880 raise e 3881 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( 3882 passed,implied)) ValueError: could not broadcast input array from shape (3) into shape (2) ``` Increasing the number of items in the second list increases the number associated with the first "shape" in the error message ``` check2 = pd.DataFrame({'id': [0,1], 'list':[['1','2'], []]}) check2['new_list'] = check2.apply(list_to_list, axis = 1) ``` Running the code above results in the following error message: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-50-a4f4e0227671> in <module>() 1 check2 = pd.DataFrame({'id': [0,1], 'list':[['1','2'], []]}) ----> 2 check2['new_list'] = check2.apply(list_to_list, axis = 1) /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in apply(self, func, axis, broadcast, raw, reduce, args, **kwds) 3970 if reduce is None: 3971 reduce = True -> 3972 return self._apply_standard(f, axis, reduce=reduce) 3973 else: 3974 return self._apply_broadcast(f, axis) /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _apply_standard(self, func, axis, ignore_failures, reduce) 4079 index = None 4080 -> 4081 result = self._constructor(data=results, index=index) 4082 result.columns = res_index 4083 /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy) 224 dtype=dtype, copy=copy) 225 elif isinstance(data, dict): --> 226 mgr = self._init_dict(data, index, columns, dtype=dtype) 227 elif isinstance(data, ma.MaskedArray): 228 import numpy.ma.mrecords as mrecords /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype) 361 362 return _arrays_to_mgr(arrays, data_names, index, columns, --> 363 dtype=dtype) 364 365 def _init_ndarray(self, values, index, columns, dtype=None, /anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5166 axes = [_ensure_index(columns), _ensure_index(index)] 5167 -> 5168 return create_block_manager_from_arrays(arrays, arr_names, axes) 5169 5170 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in create_block_manager_from_arrays(arrays, names, axes) 3914 return mgr 3915 except (ValueError) as e: -> 3916 construction_error(len(arrays), arrays[0].shape, axes, e) 3917 3918 /anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in construction_error(tot_items, block_shape, axes, e) 3878 implied = tuple(map(int, [len(ax) for ax in axes])) 3879 if passed == implied and e is not None: -> 3880 raise e 3881 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( 3882 passed,implied)) ValueError: Shape of passed values is (2, 0), indices imply (2, 2) ``` ## EXPECTED OUTPUT In each case, I would expect the 'new_list' column to be created without errors, and with lists of the specified length. ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-573.22.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.17.1 nose: 1.3.7 pip: 8.0.3 setuptools: 20.1.1 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 IPython: 4.0.3 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.4.6 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.5.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.11 pymysql: 0.6.7.None psycopg2: None Jinja2: 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/14217/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14217/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14218
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14218/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14218/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14218/events
https://github.com/pandas-dev/pandas/issues/14218
176,875,524
MDU6SXNzdWUxNzY4NzU1MjQ=
14,218
DEPR: deprecate .ix
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
22
2016-09-14T10:50:22Z
2018-07-20T13:47:07Z
2017-01-18T16:12:00Z
CONTRIBUTOR
null
enough said.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 5, "laugh": 0, "rocket": 0, "total_count": 5, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14218/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14218/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14219
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14219/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14219/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14219/events
https://github.com/pandas-dev/pandas/issues/14219
176,876,042
MDU6SXNzdWUxNzY4NzYwNDI=
14,219
ENH: options for controlling features
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
4
2016-09-14T10:52:58Z
2019-09-12T18:45:39Z
2019-09-12T18:45:39Z
CONTRIBUTOR
null
Various feature changes in the future might be invasive to the long-term support (LTS) concept. IOW, having a deprecation warning for Panel. So allow an option to control this. - Deprecate `Panel`, #13563 - Deprecate `.ix`: https://github.com/pydata/pandas/issues/14218 something like: `options.features.panel = 'warn' | 'raise' | 'ignore'` `options.features.ix = 'warn' | 'raise' | 'ignore'` These would default to `warn`, but can then be user settable. Normally don't like changes to global state, but if you _are_ using a 'deprecated' feature, easiest to silence things like 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/14219/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14219/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14220
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14220/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14220/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14220/events
https://github.com/pandas-dev/pandas/issues/14220
176,876,419
MDU6SXNzdWUxNzY4NzY0MTk=
14,220
DEPR: 0.21 deprecations master issue
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
null
10
2016-09-14T10:55:06Z
2018-07-13T14:51:50Z
2018-07-13T14:51:49Z
CONTRIBUTOR
null
Contemplated deprecations for 0.20.0 - [x] Deprecate `Panel`, #13563 (#15601) (0.20.0) - [x] Deprecate `.ix`: https://github.com/pydata/pandas/issues/14218 (#15113) (0.20.0) - [ ] Deprecate `.filter` & `.select` https://github.com/pydata/pandas/issues/12401 (#17633, 0.21.0) - [ ] Deprecate `.between` https://github.com/pydata/pandas/issues/13027 - [x] Deprecate `.sortlevel` #14279 (#15099) (0.20.0) - [ ] remove things in #6581 in 0.17.0 - [x] top-level namespace cleanup #13790 (0.20.0) - [x] `TimeSeries` class (#15098) (0.20.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/14220/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14220/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14221
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14221/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14221/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14221/events
https://github.com/pandas-dev/pandas/issues/14221
176,879,696
MDU6SXNzdWUxNzY4Nzk2OTY=
14,221
Question / Possibly a Feature request: comparison machinery for unit tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/4407787?v=4", "events_url": "https://api.github.com/users/rs2/events{/privacy}", "followers_url": "https://api.github.com/users/rs2/followers", "following_url": "https://api.github.com/users/rs2/following{/other_user}", "gists_url": "https://api.github.com/users/rs2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rs2", "id": 4407787, "login": "rs2", "node_id": "MDQ6VXNlcjQ0MDc3ODc=", "organizations_url": "https://api.github.com/users/rs2/orgs", "received_events_url": "https://api.github.com/users/rs2/received_events", "repos_url": "https://api.github.com/users/rs2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rs2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rs2/subscriptions", "type": "User", "url": "https://api.github.com/users/rs2" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-09-14T11:12:51Z
2016-09-14T11:51:32Z
2016-09-14T11:15:35Z
CONTRIBUTOR
null
When it comes to writing unit tests that return a `DataFrame` or a `TimeSeries` there's a clear need to compare the output to the expected result. The comparison can be strict, or relaxed in terms of the order of columns and/or order of rows, and could also be forgiving for floats. I'm thinking of an approach implemented in https://pythonhosted.org/toytable/toytable.table.html#table-literals, i.e. defining a table as ``` python >>> pokedex = table_literal(""" ... | Pokemon (str) | Level (int) | Owner (str) | Type (str) | ... | Pikchu | 12 | Ash Ketchum | Electric | ... | Bulbasaur | 16 | Ash Ketchum | Grass | ... | Charmander | 19 | Ash Ketchum | Fire | ... | Raichu | 23 | Lt. Surge | Electric | ... """) ``` and subsequently invoking `self.assertTableEqual` or `self.assertTableContentsEqual`. Does anything similar exist in pandas (I could not find), and can the above approach be upvoted please?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14221/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14221/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14222
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14222/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14222/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14222/events
https://github.com/pandas-dev/pandas/issues/14222
176,934,459
MDU6SXNzdWUxNzY5MzQ0NTk=
14,222
read_csv(compression='gzip') fails while reading compressed file from s3
{ "avatar_url": "https://avatars.githubusercontent.com/u/6325708?v=4", "events_url": "https://api.github.com/users/mandarup/events{/privacy}", "followers_url": "https://api.github.com/users/mandarup/followers", "following_url": "https://api.github.com/users/mandarup/following{/other_user}", "gists_url": "https://api.github.com/users/mandarup/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mandarup", "id": 6325708, "login": "mandarup", "node_id": "MDQ6VXNlcjYzMjU3MDg=", "organizations_url": "https://api.github.com/users/mandarup/orgs", "received_events_url": "https://api.github.com/users/mandarup/received_events", "repos_url": "https://api.github.com/users/mandarup/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mandarup/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mandarup/subscriptions", "type": "User", "url": "https://api.github.com/users/mandarup" }
[ { "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": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-14T15:12:09Z
2016-09-15T17:23:59Z
2016-09-15T12:15:06Z
NONE
null
#### reading gzipped csv from s3 bucket (private) ``` import pandas as pd import boto3 session = boto3.Session() s3client = session.client('s3') obj = s3client.get_object(Bucket=bucket_name, Key=objkey) df = pd.read_csv(obj['Body'], compression='gzip', nrows=5, engine='python') ``` #### Error ``` File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 562, in parser_f return _read(filepath_or_buffer, kwds) File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 315, in _read parser = TextFileReader(filepath_or_buffer, **kwds) File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 645, in __init__ self._make_engine(self.engine) File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 805, in _make_engine self._engine = klass(self.f, **self.options) File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 1608, in __init__ self.columns, self.num_original_columns = self._infer_columns() File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 1823, in _infer_columns line = self._buffered_line() File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 1975, in _buffered_line return self._next_line() File "/Users/username/anaconda/lib/python2.7/site-packages/pandas/io/parsers.py", line 2006, in _next_line orig_line = next(self.data) File "/Users/username/anaconda/lib/python2.7/gzip.py", line 464, in readline c = self.read(readsize) File "/Users/username/anaconda/lib/python2.7/gzip.py", line 268, in read self._read(readsize) File "/Users/username/anaconda/lib/python2.7/gzip.py", line 295, in _read pos = self.fileobj.tell() # Save current position AttributeError: 'StreamingBody' object has no attribute 'tell' ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 15.4.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.4.5 patsy: 0.4.0 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14222/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14222/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14223
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14223/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14223/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14223/events
https://github.com/pandas-dev/pandas/issues/14223
176,940,406
MDU6SXNzdWUxNzY5NDA0MDY=
14,223
ENH: add "by" attribute to all plot methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/8660305?v=4", "events_url": "https://api.github.com/users/dacoex/events{/privacy}", "followers_url": "https://api.github.com/users/dacoex/followers", "following_url": "https://api.github.com/users/dacoex/following{/other_user}", "gists_url": "https://api.github.com/users/dacoex/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dacoex", "id": 8660305, "login": "dacoex", "node_id": "MDQ6VXNlcjg2NjAzMDU=", "organizations_url": "https://api.github.com/users/dacoex/orgs", "received_events_url": "https://api.github.com/users/dacoex/received_events", "repos_url": "https://api.github.com/users/dacoex/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dacoex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dacoex/subscriptions", "type": "User", "url": "https://api.github.com/users/dacoex" }
[]
closed
false
null
[]
null
2
2016-09-14T15:33:18Z
2016-09-14T22:07:09Z
2016-09-14T22:07:09Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible - boxplot has a grouby attribute "by" which makes it easy to plot all months of a year in a facet grid of subplots: http://stackoverflow.com/a/37687386 - It would be greta to have this also for other plot types such as scatter, line, historgram I checked and other isssues on subplot & grouby are rather related to histogramms. This here aims for a quick method how to create subplot facet grid for the same variable(s) on different sections or intervals of the dataframe: - 1 plot for every year of a multi-year timeseries - 1 plot for each average day of a full year series In theory, this would a facet grid of subplots where each plot is made from a column of a 2-d pivot table, e.g. a table with teh 12 months on x-axis and values on x-axis. #### Expected Output - https://plot.ly/~MattSundquist/11035.png from http://blog.plot.ly/post/117105992082/time-series-graphs-eleven-stunning-ways-you-can & http://nbviewer.jupyter.org/gist/mkcor/0ee7c73d9ba4c68ddc1a/ - http://i.stack.imgur.com/dGhai.png from http://stackoverflow.com/a/37126436 Similar functionality is provided by [calmap](https://github.com/martijnvermaat/calmap) ==> I hope this suggestion is not beyond the scope of pandas. --> similar functonality but with less convenience is provided by seaborn http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.FacetGrid.html
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14223/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14223/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14224
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14224/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14224/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14224/events
https://github.com/pandas-dev/pandas/issues/14224
176,972,433
MDU6SXNzdWUxNzY5NzI0MzM=
14,224
sum() does not honor skipna argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/5934035?v=4", "events_url": "https://api.github.com/users/amillb/events{/privacy}", "followers_url": "https://api.github.com/users/amillb/followers", "following_url": "https://api.github.com/users/amillb/following{/other_user}", "gists_url": "https://api.github.com/users/amillb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amillb", "id": 5934035, "login": "amillb", "node_id": "MDQ6VXNlcjU5MzQwMzU=", "organizations_url": "https://api.github.com/users/amillb/orgs", "received_events_url": "https://api.github.com/users/amillb/received_events", "repos_url": "https://api.github.com/users/amillb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amillb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amillb/subscriptions", "type": "User", "url": "https://api.github.com/users/amillb" }
[ { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-14T17:40:01Z
2016-09-14T21:11:14Z
2016-09-14T20:58:36Z
NONE
null
sum() is giving 0.0 as the total, rather than NaN, when the entire row/column is NaN. Note that this bug does not arise in pandas 17.1 with numpy 1.11.0, running on Ubuntu. #### Code Sample, a copy-pastable example if possible ``` import numpy as np df = pd.DataFrame([[np.nan,np.nan,np.nan,np.nan], [1,np.nan,np.nan,np.nan],[2,2,2,np.nan]],columns=['a','b','c','d']) df.sum(skipna=True) # should be true by default. Same result if argument is omitted ``` #### Actual Output a 3.0 b 2.0 c 2.0 d 0.0 #### Expected Output a 3.0 b 2.0 c 2.0 d NaN #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.1.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: None patsy: 0.4.1 dateutil: 2.2 pytz: 2014.7 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.4 xlrd: 0.9.4 xlwt: None xlsxwriter: None lxml: 3.6.0 bs4: 4.4.1 html5lib: 0.999 httplib2: 0.8 apiclient: 1.2 sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.5.4 (dt dec pq3 ext) jinja2: 2.7.2 boto: 2.40.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14224/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14224/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14225
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14225/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14225/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14225/events
https://github.com/pandas-dev/pandas/pull/14225
177,068,946
MDExOlB1bGxSZXF1ZXN0ODUzMzQ5OTg=
14,225
BUG: GH13629 Binned groupby median function calculates median on empt…
{ "avatar_url": "https://avatars.githubusercontent.com/u/3327564?v=4", "events_url": "https://api.github.com/users/paul-mannino/events{/privacy}", "followers_url": "https://api.github.com/users/paul-mannino/followers", "following_url": "https://api.github.com/users/paul-mannino/following{/other_user}", "gists_url": "https://api.github.com/users/paul-mannino/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/paul-mannino", "id": 3327564, "login": "paul-mannino", "node_id": "MDQ6VXNlcjMzMjc1NjQ=", "organizations_url": "https://api.github.com/users/paul-mannino/orgs", "received_events_url": "https://api.github.com/users/paul-mannino/received_events", "repos_url": "https://api.github.com/users/paul-mannino/repos", "site_admin": false, "starred_url": "https://api.github.com/users/paul-mannino/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paul-mannino/subscriptions", "type": "User", "url": "https://api.github.com/users/paul-mannino" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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
2016-09-15T01:57:41Z
2016-09-18T15:57:27Z
2016-09-18T15:57:27Z
CONTRIBUTOR
null
- [ x] closes #13629 - [ x] tests added / passed - [ x] passes `git diff upstream/master | flake8 --diff` - [x ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14225/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14225/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14225.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14225", "merged_at": "2016-09-18T15:57:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14225.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14225" }
https://api.github.com/repos/pandas-dev/pandas/issues/14226
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14226/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14226/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14226/events
https://github.com/pandas-dev/pandas/issues/14226
177,097,516
MDU6SXNzdWUxNzcwOTc1MTY=
14,226
Conditionally styling by HTML classes
{ "avatar_url": "https://avatars.githubusercontent.com/u/338235?v=4", "events_url": "https://api.github.com/users/dov/events{/privacy}", "followers_url": "https://api.github.com/users/dov/followers", "following_url": "https://api.github.com/users/dov/following{/other_user}", "gists_url": "https://api.github.com/users/dov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dov", "id": 338235, "login": "dov", "node_id": "MDQ6VXNlcjMzODIzNQ==", "organizations_url": "https://api.github.com/users/dov/orgs", "received_events_url": "https://api.github.com/users/dov/received_events", "repos_url": "https://api.github.com/users/dov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dov/subscriptions", "type": "User", "url": "https://api.github.com/users/dov" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "006b75", "default": false, "description": "read_html, to_html, Styler.apply, Styler.applymap", "id": 57395487, "name": "IO HTML", "node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
5
2016-09-15T06:14:22Z
2021-02-08T06:56:18Z
2021-02-08T06:56:18Z
NONE
null
Currently the `DataFrame.Styler` class provides for adding of css key/value attribute pairs. But it is sometimes preferable to add a HTML class to a cell instead, and then let the styling be done by an external css file. As an example consider the following DataFrame: ``` df = pd.DataFrame([[1,2], [-5,1]], columns=['A','B']) ``` As an example, we would like to attach the class "negative" to the -5 and receive the following HTML: ``` <html><table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>1</td> <td>2</td> </tr> <tr> <th>1</th> <td class="negative">-5</td> <td>1</td> </tr> </tbody> </table></html> ``` Regarding how to implement this, here are a couple of ideas: 1. Add a flag `by_class` to `apply()` and `applymap()` that instructs the styler that the "function" will return a classes instead of css strings. 2. Add new functions apply_class() and applymap_class(). 3. Create a new class StyleClass() and use `isinstance(ret,StyleClass)` to determine whether to modify the style directly or by adding additional classes. IMO, I believe that it would be a better interface of styler that apply and applymap were to return classes by default and then optionally provide a css style sheet that can be resolved when turning the style into html. Such an approach would also be easier to adapt to additional backends, e.g. LaTeX. The disadvantage though is that it would break backwards compatibility, and that it would make styling for iPython (the main usecase?) more complicated.
{ "+1": 8, "-1": 0, "confused": 0, "eyes": 0, "heart": 3, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 11, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14226/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14226/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14227
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14227/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14227/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14227/events
https://github.com/pandas-dev/pandas/issues/14227
177,205,198
MDU6SXNzdWUxNzcyMDUxOTg=
14,227
Labels mismatch when adding series with repeated index values in 0.19rc1
{ "avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4", "events_url": "https://api.github.com/users/mrocklin/events{/privacy}", "followers_url": "https://api.github.com/users/mrocklin/followers", "following_url": "https://api.github.com/users/mrocklin/following{/other_user}", "gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mrocklin", "id": 306380, "login": "mrocklin", "node_id": "MDQ6VXNlcjMwNjM4MA==", "organizations_url": "https://api.github.com/users/mrocklin/orgs", "received_events_url": "https://api.github.com/users/mrocklin/received_events", "repos_url": "https://api.github.com/users/mrocklin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions", "type": "User", "url": "https://api.github.com/users/mrocklin" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
7
2016-09-15T15:15:12Z
2016-09-30T21:23:51Z
2016-09-30T21:23:35Z
CONTRIBUTOR
null
This showed up in the dask.dataframe test suite when testing against the 0.19 release candidate. I'm unsure if this was an intended change or not: ### Pandas 0.18 ``` python In [1]: import pandas as pd In [2]: a = pd.Series([1, 2], index=[1, 1]) In [3]: b = pd.Series([10, 10], index=[1, 2]) In [4]: a Out[4]: 1 1 1 2 dtype: int64 In [5]: b Out[5]: 1 10 2 10 dtype: int64 In [6]: a + b Out[6]: 1 11.0 1 12.0 2 NaN dtype: float64 ``` ### Pandas 0.19rc1 ``` python In [1]: import pandas as pd In [2]: a = pd.Series([1, 2], index=[1, 1]) In [3]: b = pd.Series([10, 10], index=[1, 2]) In [4]: a Out[4]: 1 1 1 2 dtype: int64 In [5]: b Out[5]: 1 10 2 10 dtype: int64 In [6]: a + b --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-6-f96fb8f649b6> in <module>() ----> 1 a + b /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/ops.py in wrapper(left, right, name, na_op) 671 return NotImplemented 672 --> 673 left, right = _align_method_SERIES(left, right) 674 675 converted = _Op.get_op(left, right, name, na_op) /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/ops.py in _align_method_SERIES(left, right, align_asobject) 613 return_indexers=True) 614 # if DatetimeIndex have different tz, convert to UTC --> 615 left.index = index 616 right.index = index 617 /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/generic.py in __setattr__(self, name, value) 2754 try: 2755 object.__getattribute__(self, name) -> 2756 return object.__setattr__(self, name, value) 2757 except AttributeError: 2758 pass pandas/src/properties.pyx in pandas.lib.AxisProperty.__set__ (pandas/lib.c:44336)() /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/series.py in _set_axis(self, axis, labels, fastpath) 306 object.__setattr__(self, '_index', labels) 307 if not fastpath: --> 308 self._data.set_axis(axis, labels) 309 310 def _set_subtyp(self, is_all_dates): /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/internals.py in set_axis(self, axis, new_labels) 2774 raise ValueError('Length mismatch: Expected axis has %d elements, ' 2775 'new values have %d elements' % -> 2776 (old_len, new_len)) 2777 2778 self.axes[axis] = new_labels ValueError: Length mismatch: Expected axis has 3 elements, new values have 5 elements ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14227/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14227/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14228
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14228/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14228/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14228/events
https://github.com/pandas-dev/pandas/pull/14228
177,228,108
MDExOlB1bGxSZXF1ZXN0ODU0Mzk1Njg=
14,228
DOC: #14195. to_csv warns regarding quoting behaviour for floats
{ "avatar_url": "https://avatars.githubusercontent.com/u/20444824?v=4", "events_url": "https://api.github.com/users/tom-bird/events{/privacy}", "followers_url": "https://api.github.com/users/tom-bird/followers", "following_url": "https://api.github.com/users/tom-bird/following{/other_user}", "gists_url": "https://api.github.com/users/tom-bird/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tom-bird", "id": 20444824, "login": "tom-bird", "node_id": "MDQ6VXNlcjIwNDQ0ODI0", "organizations_url": "https://api.github.com/users/tom-bird/orgs", "received_events_url": "https://api.github.com/users/tom-bird/received_events", "repos_url": "https://api.github.com/users/tom-bird/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tom-bird/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tom-bird/subscriptions", "type": "User", "url": "https://api.github.com/users/tom-bird" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
6
2016-09-15T16:45:57Z
2016-10-06T16:04:58Z
2016-10-06T16:04:57Z
CONTRIBUTOR
null
- [x] closes #14195 - [ ] passes `git diff upstream/master | flake8 --diff` Added a small warning that if `float_format` is set then floats will be quoted even if csv.QUOTE_NONNUMERIC is set
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14228/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14228/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14228.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14228", "merged_at": "2016-10-06T16:04:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14228.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14228" }
https://api.github.com/repos/pandas-dev/pandas/issues/14229
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14229/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14229/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14229/events
https://github.com/pandas-dev/pandas/issues/14229
177,231,645
MDU6SXNzdWUxNzcyMzE2NDU=
14,229
Bug in timezone conversion when datetime index has duplicates?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8282510?v=4", "events_url": "https://api.github.com/users/randomgambit/events{/privacy}", "followers_url": "https://api.github.com/users/randomgambit/followers", "following_url": "https://api.github.com/users/randomgambit/following{/other_user}", "gists_url": "https://api.github.com/users/randomgambit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/randomgambit", "id": 8282510, "login": "randomgambit", "node_id": "MDQ6VXNlcjgyODI1MTA=", "organizations_url": "https://api.github.com/users/randomgambit/orgs", "received_events_url": "https://api.github.com/users/randomgambit/received_events", "repos_url": "https://api.github.com/users/randomgambit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/randomgambit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randomgambit/subscriptions", "type": "User", "url": "https://api.github.com/users/randomgambit" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-15T17:03:07Z
2016-09-15T17:18:33Z
2016-09-15T17:15:22Z
NONE
null
Hello the Pandas team, I ran this morning into some nasty bug with Pandas 18.1. I was not able to find whether you are aware of it or not. Here it is ``` idx=[pd.to_datetime('2012-02-27 14:23:00') , pd.to_datetime('2012-08-27 14:33:00'), pd.to_datetime('2012-02-27 14:23:00')] test=pd.DataFrame({'A':['one','two', 'three']},index=idx) test['alt']=test.index.tz_localize('UTC').tz_convert('US/Eastern').tz_localize(None) ``` ``` Out[9]: A alt 2012-02-27 14:23:00 one 2012-02-27 09:23:00 2012-08-27 14:33:00 two 2012-08-27 10:33:00 2012-02-27 14:23:00 three 2012-02-27 10:23:00 ``` where the third column is obviously wrong. What have I done wrong here? Are indices not meant to work with duplicate values? 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/14229/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14229/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14230
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14230/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14230/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14230/events
https://github.com/pandas-dev/pandas/pull/14230
177,243,525
MDExOlB1bGxSZXF1ZXN0ODU0NTAwOTc=
14,230
BUG: fix alignment in series ops (GH14227)
{ "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": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
5
2016-09-15T17:55:24Z
2016-09-30T21:23:56Z
2016-09-30T21:23:35Z
MEMBER
null
- [x] closes #14227 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14230/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14230/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14230.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14230", "merged_at": "2016-09-30T21:23:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14230.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14230" }
https://api.github.com/repos/pandas-dev/pandas/issues/14231
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14231/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14231/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14231/events
https://github.com/pandas-dev/pandas/issues/14231
177,311,330
MDU6SXNzdWUxNzczMTEzMzA=
14,231
DOC: Series.map na_action confusion
{ "avatar_url": "https://avatars.githubusercontent.com/u/7305354?v=4", "events_url": "https://api.github.com/users/shawnheide/events{/privacy}", "followers_url": "https://api.github.com/users/shawnheide/followers", "following_url": "https://api.github.com/users/shawnheide/following{/other_user}", "gists_url": "https://api.github.com/users/shawnheide/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shawnheide", "id": 7305354, "login": "shawnheide", "node_id": "MDQ6VXNlcjczMDUzNTQ=", "organizations_url": "https://api.github.com/users/shawnheide/orgs", "received_events_url": "https://api.github.com/users/shawnheide/received_events", "repos_url": "https://api.github.com/users/shawnheide/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shawnheide/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shawnheide/subscriptions", "type": "User", "url": "https://api.github.com/users/shawnheide" }
[]
closed
false
null
[]
null
0
2016-09-15T23:03:52Z
2016-09-16T23:20:39Z
2016-09-16T23:20:39Z
CONTRIBUTOR
null
A user on [stackoverflow](http://stackoverflow.com/questions/39461328/in-pandas-what-does-the-na-action-parameter-to-series-map-do/39461948?noredirect=1#comment66278752_39461948) was confused about the use of na_action in Series.map and so I came up with a simple example to explain it. @jorisvandenbossche asked me to submit a PR, so I created this issue to log the issue and will submit a PR now.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14231/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14231/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14232
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14232/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14232/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14232/events
https://github.com/pandas-dev/pandas/pull/14232
177,313,109
MDExOlB1bGxSZXF1ZXN0ODU0OTY4OTU=
14,232
DOC: added example to Series.map showing use of na_action parameter (GH14231)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7305354?v=4", "events_url": "https://api.github.com/users/shawnheide/events{/privacy}", "followers_url": "https://api.github.com/users/shawnheide/followers", "following_url": "https://api.github.com/users/shawnheide/following{/other_user}", "gists_url": "https://api.github.com/users/shawnheide/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shawnheide", "id": 7305354, "login": "shawnheide", "node_id": "MDQ6VXNlcjczMDUzNTQ=", "organizations_url": "https://api.github.com/users/shawnheide/orgs", "received_events_url": "https://api.github.com/users/shawnheide/received_events", "repos_url": "https://api.github.com/users/shawnheide/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shawnheide/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shawnheide/subscriptions", "type": "User", "url": "https://api.github.com/users/shawnheide" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
2
2016-09-15T23:16:35Z
2016-09-16T23:20:51Z
2016-09-16T23:20:39Z
CONTRIBUTOR
null
- [x] closes #14231 - [x] tests passed - [x] passes `git diff upstream/master | flake8 --diff` Added example to Series.map showing use of na_action parameter.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14232/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14232/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14232.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14232", "merged_at": "2016-09-16T23:20:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14232.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14232" }
https://api.github.com/repos/pandas-dev/pandas/issues/14233
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14233/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14233/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14233/events
https://github.com/pandas-dev/pandas/issues/14233
177,326,687
MDU6SXNzdWUxNzczMjY2ODc=
14,233
BUG: KeyError from resample().median() with duplicate column names
{ "avatar_url": "https://avatars.githubusercontent.com/u/1348834?v=4", "events_url": "https://api.github.com/users/patricktokeeffe/events{/privacy}", "followers_url": "https://api.github.com/users/patricktokeeffe/followers", "following_url": "https://api.github.com/users/patricktokeeffe/following{/other_user}", "gists_url": "https://api.github.com/users/patricktokeeffe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/patricktokeeffe", "id": 1348834, "login": "patricktokeeffe", "node_id": "MDQ6VXNlcjEzNDg4MzQ=", "organizations_url": "https://api.github.com/users/patricktokeeffe/orgs", "received_events_url": "https://api.github.com/users/patricktokeeffe/received_events", "repos_url": "https://api.github.com/users/patricktokeeffe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/patricktokeeffe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/patricktokeeffe/subscriptions", "type": "User", "url": "https://api.github.com/users/patricktokeeffe" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-09-16T01:16:44Z
2017-01-24T18:46:27Z
2017-01-24T18:46:27Z
CONTRIBUTOR
null
I start with a dataframe (`df`) containing staggered measurements (select->copy->`from_clipboard()`): ``` CO2 CO2 CO2 CO2 2016-09-08 00:00:00 1581.0 2016-09-08 00:00:01 1415.0 2016-09-08 00:00:03 1455.0 1446.0 2016-09-08 00:00:05 1581.0 2016-09-08 00:00:06 1415.0 2016-09-08 00:00:08 1456.0 1445.0 2016-09-08 00:00:10 1581.0 2016-09-08 00:00:11 1415.0 2016-09-08 00:00:13 1456.0 1445.0 2016-09-08 00:00:15 1581.0 2016-09-08 00:00:17 1415.0 2016-09-08 00:00:18 1456.0 1445.0 2016-09-08 00:00:20 1581.0 2016-09-08 00:00:22 1415.0 2016-09-08 00:00:23 1456.0 1445.0 2016-09-08 00:00:25 1581.0 2016-09-08 00:00:27 1415.0 2016-09-08 00:00:28 1457.0 1444.0 2016-09-08 00:00:30 1581.0 2016-09-08 00:00:32 1415.0 2016-09-08 00:00:33 1456.0 1444.0 2016-09-08 00:00:35 1581.0 2016-09-08 00:00:37 1415.0 2016-09-08 00:00:38 1456.0 1444.0 2016-09-08 00:00:40 1580.0 2016-09-08 00:00:42 1415.0 2016-09-08 00:00:44 1456.0 1444.0 2016-09-08 00:00:45 1580.0 2016-09-08 00:00:47 1415.0 2016-09-08 00:00:49 1456.0 1445.0 2016-09-08 00:00:50 1579.0 2016-09-08 00:00:52 1415.0 2016-09-08 00:00:54 1456.0 1445.0 2016-09-08 00:00:55 1579.0 2016-09-08 00:00:57 1415.0 2016-09-08 00:00:59 1456.0 1445.0 ``` When I try to aggregate measurements into 5-second intervals using `df.resample('5s').median()`, I get this traceback: ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in median(self) 980 try: --> 981 return self._cython_agg_general('median') 982 except GroupByError: C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in _cython_agg_general(self, how, numeric_only) 3047 new_items, new_blocks = self._cython_agg_blocks( -> 3048 how, numeric_only=numeric_only) 3049 return self._wrap_agged_blocks(new_items, new_blocks) C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in _cython_agg_blocks(self, how, numeric_only) 3084 result, _ = self.grouper.aggregate( -> 3085 block.values, how, axis=agg_axis) 3086 C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in aggregate(self, values, how, axis) 1821 def aggregate(self, values, how, axis=0): -> 1822 return self._cython_operation('aggregate', values, how, axis) 1823 C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in _cython_operation(self, kind, values, how, axis) 1757 func, dtype_str = self._get_cython_function( -> 1758 kind, how, values, is_numeric) 1759 except NotImplementedError: C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in _get_cython_function(self, kind, how, values, is_numeric) 1698 -> 1699 ftype = self._cython_functions[kind][how] 1700 KeyError: 'median' During handling of the above exception, another exception occurred: AssertionError Traceback (most recent call last) <ipython-input-55-c17a77e187f3> in <module>() 1 df = chamber_k30['20160908':'20160908T0000'] ----> 2 df.resample('5s').median() C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\tseries\resample.py in f(self, _method) 508 509 def f(self, _method=method): --> 510 return self._downsample(_method) 511 f.__doc__ = getattr(GroupBy, method).__doc__ 512 setattr(Resampler, method, f) C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\tseries\resample.py in _downsample(self, how, **kwargs) 661 # we want to call the actual grouper method here 662 result = obj.groupby( --> 663 self.grouper, axis=self.axis).aggregate(how, **kwargs) 664 665 result = self._apply_loffset(result) C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in aggregate(self, arg, *args, **kwargs) 3595 @Appender(SelectionMixin._agg_doc) 3596 def aggregate(self, arg, *args, **kwargs): -> 3597 return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs) 3598 3599 agg = aggregate C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in aggregate(self, arg, *args, **kwargs) 3112 3113 _level = kwargs.pop('_level', None) -> 3114 result, how = self._aggregate(arg, _level=_level, *args, **kwargs) 3115 if how is None: 3116 return result C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\base.py in _aggregate(self, arg, *args, **kwargs) 426 _level = kwargs.pop('_level', None) 427 if isinstance(arg, compat.string_types): --> 428 return getattr(self, arg)(*args, **kwargs), None 429 430 if isinstance(arg, dict): C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in median(self) 990 x = Series(x) 991 return x.median(axis=self.axis) --> 992 return self._python_agg_general(f) 993 994 @Substitution(name='groupby') C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in _python_agg_general(self, func, *args, **kwargs) 775 for name, obj in self._iterate_slices(): 776 try: --> 777 result, counts = self.grouper.agg_series(obj, f) 778 output[name] = self._try_cast(result, obj) 779 except TypeError: C:\Users\pokeeffe\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\groupby.py in agg_series(self, obj, func) 2063 dummy = obj[:0] 2064 grouper = lib.SeriesBinGrouper(obj, func, self.bins, dummy) -> 2065 return grouper.get_result() 2066 2067 # ---------------------------------------------------------------------- pandas\src\reduce.pyx in pandas.lib.SeriesBinGrouper.get_result (pandas\lib.c:35367)() pandas\src\reduce.pyx in pandas.lib.Slider.__init__ (pandas\lib.c:40335)() AssertionError: ``` The other documented dispatching methods (`sum`, `mean`, `std`, `sem`, `max`, `min`, `first`, `last`) work just fine (except for `ohlc`, which produces an `InvalidIndexError`). I can work around the problem like so: `df.resample('5s').apply(lambda x: x.median())`. But it seems like dispatching should work here... #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.0 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.0 sphinx: 1.3.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14233/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14233/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14234
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14234/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14234/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14234/events
https://github.com/pandas-dev/pandas/pull/14234
177,341,375
MDExOlB1bGxSZXF1ZXN0ODU1MTY0MDg=
14,234
ENH: Allow usecols to accept callable (GH14154)
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
11
2016-09-16T04:08:04Z
2017-12-12T15:39:47Z
2016-12-06T11:38:06Z
MEMBER
null
- [ X] closes #14154 - [ X] tests added / passed - [ X] passes `git diff upstream/master | flake8 --diff` - [X ] whatsnew entry <img width="1515" alt="asv_bench" src="https://cloud.githubusercontent.com/assets/609873/18575075/942a9240-7ba1-11e6-9dca-bab8b9987f31.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/14234/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14234/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14234.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14234", "merged_at": "2016-12-06T11:38:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14234.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14234" }
https://api.github.com/repos/pandas-dev/pandas/issues/14235
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14235/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14235/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14235/events
https://github.com/pandas-dev/pandas/issues/14235
177,359,949
MDU6SXNzdWUxNzczNTk5NDk=
14,235
BUG: Python operator 'in' behaves in two different ways on Series object
{ "avatar_url": "https://avatars.githubusercontent.com/u/7665678?v=4", "events_url": "https://api.github.com/users/griai/events{/privacy}", "followers_url": "https://api.github.com/users/griai/followers", "following_url": "https://api.github.com/users/griai/following{/other_user}", "gists_url": "https://api.github.com/users/griai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/griai", "id": 7665678, "login": "griai", "node_id": "MDQ6VXNlcjc2NjU2Nzg=", "organizations_url": "https://api.github.com/users/griai/orgs", "received_events_url": "https://api.github.com/users/griai/received_events", "repos_url": "https://api.github.com/users/griai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/griai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/griai/subscriptions", "type": "User", "url": "https://api.github.com/users/griai" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
open
false
null
[]
null
3
2016-09-16T07:19:11Z
2021-07-22T07:42:35Z
null
NONE
null
The python operator 'in' acting on a pandas.Series object behaves in two different ways. When iterating over the series it acts on the list of values. But for membership testing it acts on the index. Is this the desired behavior? ``` import pandas as pd s = pd.Series([1, 2, 3]) for v in s: print v # prints 1 2 3, i.e. 'in' is acting on the values for v in [1, 2, 3]: print v in s # prints True True False, i.e. the latter 'in' is acting on the index ``` This behavior also leads to peculiar behavior when working with DataFrames. ``` df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}) df # a b # 0 1 4 # 1 2 5 # 2 3 6 for value in df['a']: print value, if value in df['b']: print 'also in column b' # 1 also in column b # 2 also in column b # 3 ``` This is not what one would naively expect from that code snippet and it can potentially lead to errors that might be difficult to spot. This is the behavior that is also mentioned in the docs (in a pretty hidden way -- one has to actively search for it), but I suggest that this should not be the desired behavior. Instead, I'd find it much more natural, if 'in' worked always on the values and never on the index. If needed one can always use 'in s.index', but the standard way should be acting on the values always. pandas version 0.18.1
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14235/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14235/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14236
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14236/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14236/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14236/events
https://github.com/pandas-dev/pandas/pull/14236
177,495,281
MDExOlB1bGxSZXF1ZXN0ODU2MjIxNjU=
14,236
BUG: set_levels set illegal levels.
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
9
2016-09-16T18:53:30Z
2016-10-10T12:30:37Z
2016-10-10T12:30:22Z
CONTRIBUTOR
null
- [x] closes #13754 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry `MultiIndex.set_levels`, when given illegal level values, raises an error. When `inplace=True`, though, the illegal level values are still accepted. This commit fixes that behavior by checking that the proposed level values are legal before setting them.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14236/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14236/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14236.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14236", "merged_at": "2016-10-10T12:30:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14236.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14236" }
https://api.github.com/repos/pandas-dev/pandas/issues/14237
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14237/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14237/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14237/events
https://github.com/pandas-dev/pandas/pull/14237
177,497,810
MDExOlB1bGxSZXF1ZXN0ODU2MjM5NTQ=
14,237
BUG: Check for overflow in TimedeltaIndex addition.
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
53
2016-09-16T19:05:55Z
2016-09-28T22:17:31Z
2016-09-27T10:43:45Z
MEMBER
null
Title is self-explanatory. Closes #14068.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14237/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14237/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14237.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14237", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14237.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14237" }
https://api.github.com/repos/pandas-dev/pandas/issues/14238
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14238/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14238/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14238/events
https://github.com/pandas-dev/pandas/issues/14238
177,547,066
MDU6SXNzdWUxNzc1NDcwNjY=
14,238
Faulty nogil assumption in _Py_HashDouble
{ "avatar_url": "https://avatars.githubusercontent.com/u/840385?v=4", "events_url": "https://api.github.com/users/deepankarsharma/events{/privacy}", "followers_url": "https://api.github.com/users/deepankarsharma/followers", "following_url": "https://api.github.com/users/deepankarsharma/following{/other_user}", "gists_url": "https://api.github.com/users/deepankarsharma/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/deepankarsharma", "id": 840385, "login": "deepankarsharma", "node_id": "MDQ6VXNlcjg0MDM4NQ==", "organizations_url": "https://api.github.com/users/deepankarsharma/orgs", "received_events_url": "https://api.github.com/users/deepankarsharma/received_events", "repos_url": "https://api.github.com/users/deepankarsharma/repos", "site_admin": false, "starred_url": "https://api.github.com/users/deepankarsharma/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepankarsharma/subscriptions", "type": "User", "url": "https://api.github.com/users/deepankarsharma" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2016-09-17T01:00:50Z
2016-09-17T20:07:23Z
2016-09-17T01:09:59Z
NONE
null
Pandas uses _Py_HashDouble as the hash function for hashing floats. () in the 0.17.x and 0.18.x releases. This hash function is used within nogil sections within hashtable.pyx on both these releases. However the definition of this function as implemented on Python 2.x can call into the Python api depending on the values being hashed. This causes crashes if there is another thread using holding the GIL which is executing simultaneously. I see that master no longer uses this hash function. But can this fix be backported for the 0.17.x / 0.18.x branches?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14238/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14238/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14239
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14239/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14239/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14239/events
https://github.com/pandas-dev/pandas/issues/14239
177,562,335
MDU6SXNzdWUxNzc1NjIzMzU=
14,239
PERF: Spearman correlation
{ "avatar_url": "https://avatars.githubusercontent.com/u/1903672?v=4", "events_url": "https://api.github.com/users/tantrev/events{/privacy}", "followers_url": "https://api.github.com/users/tantrev/followers", "following_url": "https://api.github.com/users/tantrev/following{/other_user}", "gists_url": "https://api.github.com/users/tantrev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tantrev", "id": 1903672, "login": "tantrev", "node_id": "MDQ6VXNlcjE5MDM2NzI=", "organizations_url": "https://api.github.com/users/tantrev/orgs", "received_events_url": "https://api.github.com/users/tantrev/received_events", "repos_url": "https://api.github.com/users/tantrev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tantrev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tantrev/subscriptions", "type": "User", "url": "https://api.github.com/users/tantrev" }
[ { "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": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
7
2016-09-17T07:45:24Z
2019-09-10T21:42:06Z
2019-09-10T20:12:10Z
NONE
null
I'm trying to compute Spearman correlation for a relatively small DataFrame (~500x~8000), but the calculation appears to be orders of magnitude slower than Pearson correlation. Any help to make Spearman's speed comparable to Pearson's would be greatly appreciated.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14239/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14239/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14240
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14240/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14240/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14240/events
https://github.com/pandas-dev/pandas/pull/14240
177,567,578
MDExOlB1bGxSZXF1ZXN0ODU2NzAxNzg=
14,240
TST/TEMP: fix pyqt to 4.x for plotting tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "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
2016-09-17T10:05:09Z
2016-09-18T09:39:00Z
2016-09-18T09:39:00Z
MEMBER
null
To fix breaking tests (latest travis build on master broken, and also all recent PR builds), see https://github.com/matplotlib/matplotlib/issues/7124
{ "+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/14240/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14240/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14240.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14240", "merged_at": "2016-09-18T09:39:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14240.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14240" }
https://api.github.com/repos/pandas-dev/pandas/issues/14241
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14241/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14241/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14241/events
https://github.com/pandas-dev/pandas/issues/14241
177,616,036
MDU6SXNzdWUxNzc2MTYwMzY=
14,241
DataFrame Query Rounding Error
{ "avatar_url": "https://avatars.githubusercontent.com/u/3916546?v=4", "events_url": "https://api.github.com/users/wisefool769/events{/privacy}", "followers_url": "https://api.github.com/users/wisefool769/followers", "following_url": "https://api.github.com/users/wisefool769/following{/other_user}", "gists_url": "https://api.github.com/users/wisefool769/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wisefool769", "id": 3916546, "login": "wisefool769", "node_id": "MDQ6VXNlcjM5MTY1NDY=", "organizations_url": "https://api.github.com/users/wisefool769/orgs", "received_events_url": "https://api.github.com/users/wisefool769/received_events", "repos_url": "https://api.github.com/users/wisefool769/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wisefool769/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wisefool769/subscriptions", "type": "User", "url": "https://api.github.com/users/wisefool769" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
1
2016-09-17T22:57:06Z
2016-09-22T10:20:26Z
2016-09-22T10:20:26Z
NONE
null
#### Code Sample, a copy-pastable example if possible import pandas as pd df = pd.DataFrame([{"A": 1000000000.0099}]) cutoff = 1000000000.006 local_res = "works" if df.query("A < @cutoff").empty else "fails" print("query by local var %s" % local_res) explicit_res = "works" if df.query("A < %.3f" % cutoff).empty else "fails" print("explicit query %s" % explicit_res) #### Expected Output query by local var works explicit query fails #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.2.0-42-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: 1.3.5 patsy: 0.4.1 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.1.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext) jinja2: 2.8 boto: 2.39.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14241/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14241/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14242
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14242/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14242/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14242/events
https://github.com/pandas-dev/pandas/issues/14242
177,640,712
MDU6SXNzdWUxNzc2NDA3MTI=
14,242
Recoding as numerical categories with multiple columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/4278485?v=4", "events_url": "https://api.github.com/users/lesshaste/events{/privacy}", "followers_url": "https://api.github.com/users/lesshaste/followers", "following_url": "https://api.github.com/users/lesshaste/following{/other_user}", "gists_url": "https://api.github.com/users/lesshaste/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lesshaste", "id": 4278485, "login": "lesshaste", "node_id": "MDQ6VXNlcjQyNzg0ODU=", "organizations_url": "https://api.github.com/users/lesshaste/orgs", "received_events_url": "https://api.github.com/users/lesshaste/received_events", "repos_url": "https://api.github.com/users/lesshaste/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lesshaste/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lesshaste/subscriptions", "type": "User", "url": "https://api.github.com/users/lesshaste" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-18T09:10:59Z
2016-09-18T10:48:28Z
2016-09-18T10:48:27Z
NONE
null
#### Code Sample, a copy-pastable example if possible This SO questions asks the simple question of how to recode strings in a data frame as numerical categories http://stackoverflow.com/questions/39475187/how-to-speed-up-recoding-into-integers . The pandas solution x = df.apply(lambda x: x.astype('category').cat.codes) Is by far the fastest. However it doesn't give a consistent answer if the data frame has more than one column. E.g. g,k a,h c,i j,e d,i i,h b,b d,d i,a d,h gets recoded to: 0 1 0 4 6 1 0 4 2 2 5 3 6 3 4 3 5 5 5 4 6 1 1 7 3 2 8 5 0 9 3 4 Notice that 'd' is mapped to 3 in the first column but 2 in the second. It would be great if pandas could do this recoding consistently. #### Expected Output #### output of `pd.show_versions()`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14242/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14242/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14243
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14243/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14243/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14243/events
https://github.com/pandas-dev/pandas/pull/14243
177,641,973
MDExOlB1bGxSZXF1ZXN0ODU3MDQ0NjE=
14,243
Revert "TST/TEMP: fix pyqt to 4.x for plotting tests"
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2016-09-18T09:39:40Z
2018-09-13T14:19:38Z
2016-11-25T16:19:02Z
MEMBER
null
Reverts pydata/pandas#14240 For when https://github.com/ContinuumIO/anaconda-issues/issues/1068 is solved
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14243/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14243/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14243.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14243", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14243.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14243" }
https://api.github.com/repos/pandas-dev/pandas/issues/14244
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14244/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14244/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14244/events
https://github.com/pandas-dev/pandas/issues/14244
177,654,937
MDU6SXNzdWUxNzc2NTQ5Mzc=
14,244
TST: Some nose generator tests not running
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
1
2016-09-18T14:29:02Z
2016-09-19T20:11:32Z
2016-09-19T20:11:32Z
CONTRIBUTOR
null
e.g. pandas/computation/tests/test_eval.py:TestTypeCasting ``` bash nosetests pandas/computation/tests/test_eval.py:TestTypeCasting -vs -x --with-id #431 test_binop_typecasting (pandas.computation.tests.test_eval.TestTypeCasting) ... ok ``` The obvious difference is that `TestTypeCasting` inherits from `tm.TestCase`. I _thought_ nose was supposed to run these still, but apparently not. EDIT: OK, nose [doesn't support those](http://nose.readthedocs.io/en/latest/writing_tests.html#test-classes): > Test classes that do not descend from unittest.TestCase may also include generator methods and class-level fixtures This came up as part of verifying that https://github.com/pydata/pandas/pull/13856 isn't dropping any tests.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14244/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14244/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14245
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14245/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14245/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14245/events
https://github.com/pandas-dev/pandas/pull/14245
177,655,430
MDExOlB1bGxSZXF1ZXN0ODU3MTIwNDg=
14,245
TST: Fix generator tests to run
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
2
2016-09-18T14:38:51Z
2017-04-05T02:08:32Z
2016-09-19T20:11:32Z
CONTRIBUTOR
null
Closes #14244 This class inheriting from TestCase caused the tests the yield fixture tests to not actually run. The new output is ``` nosetests pandas/computation/tests/test_eval.py:TestTypeCasting ........................................ ---------------------------------------------------------------------- Ran 40 tests in 0.264s OK ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14245/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14245/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14245.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14245", "merged_at": "2016-09-19T20:11:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14245.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14245" }
https://api.github.com/repos/pandas-dev/pandas/issues/14246
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14246/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14246/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14246/events
https://github.com/pandas-dev/pandas/pull/14246
177,666,031
MDExOlB1bGxSZXF1ZXN0ODU3MTc0MjE=
14,246
Pivot table drops column/index names=nan when dropna=false
{ "avatar_url": "https://avatars.githubusercontent.com/u/8815664?v=4", "events_url": "https://api.github.com/users/OXPHOS/events{/privacy}", "followers_url": "https://api.github.com/users/OXPHOS/followers", "following_url": "https://api.github.com/users/OXPHOS/following{/other_user}", "gists_url": "https://api.github.com/users/OXPHOS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/OXPHOS", "id": 8815664, "login": "OXPHOS", "node_id": "MDQ6VXNlcjg4MTU2NjQ=", "organizations_url": "https://api.github.com/users/OXPHOS/orgs", "received_events_url": "https://api.github.com/users/OXPHOS/received_events", "repos_url": "https://api.github.com/users/OXPHOS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/OXPHOS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OXPHOS/subscriptions", "type": "User", "url": "https://api.github.com/users/OXPHOS" }
[ { "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
[]
null
12
2016-09-18T17:53:08Z
2017-04-26T05:57:13Z
2017-04-26T05:53:04Z
CONTRIBUTOR
null
- [x] closes #14072 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14246/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14246/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14246.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14246", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14246.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14246" }
https://api.github.com/repos/pandas-dev/pandas/issues/14247
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14247/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14247/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14247/events
https://github.com/pandas-dev/pandas/issues/14247
177,716,139
MDU6SXNzdWUxNzc3MTYxMzk=
14,247
COMPAT: numexpr interop of logical operations with non-boolean dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/4516800?v=4", "events_url": "https://api.github.com/users/fj11/events{/privacy}", "followers_url": "https://api.github.com/users/fj11/followers", "following_url": "https://api.github.com/users/fj11/following{/other_user}", "gists_url": "https://api.github.com/users/fj11/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fj11", "id": 4516800, "login": "fj11", "node_id": "MDQ6VXNlcjQ1MTY4MDA=", "organizations_url": "https://api.github.com/users/fj11/orgs", "received_events_url": "https://api.github.com/users/fj11/received_events", "repos_url": "https://api.github.com/users/fj11/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fj11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fj11/subscriptions", "type": "User", "url": "https://api.github.com/users/fj11" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-09-19T07:04:47Z
2020-04-10T03:47:36Z
null
NONE
null
``` #### Code Sample, a copy-pastable example if possible # encoding: UTF-8 import pandas as pd import numpy as np data1 = {"x": np.random.randint(2, size=6000), "y":np.random.randint(2, size=6000), } df1 = pd.DataFrame(data1) data2 = {"x": np.random.randint(2, size=6000), "y":np.random.randint(2, size=6000), } df2 = pd.DataFrame(data2) df = df1&df2 print df #### Expected Output Print the dataframe fill with 0 or 1 #### output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit: None python: 2.7.11.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: None setuptools: None Cython: None numpy: 1.11.1 scipy: 0.16.1 statsmodels: None xarray: None IPython: 4.1.2 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: 2.5.2 matplotlib: 1.4.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14247/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14247/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14248
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14248/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14248/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14248/events
https://github.com/pandas-dev/pandas/issues/14248
177,721,069
MDU6SXNzdWUxNzc3MjEwNjk=
14,248
str.extractall gives ValueError: Length of names must match number of levels in MultiIndex.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1481959?v=4", "events_url": "https://api.github.com/users/lmudge/events{/privacy}", "followers_url": "https://api.github.com/users/lmudge/followers", "following_url": "https://api.github.com/users/lmudge/following{/other_user}", "gists_url": "https://api.github.com/users/lmudge/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lmudge", "id": 1481959, "login": "lmudge", "node_id": "MDQ6VXNlcjE0ODE5NTk=", "organizations_url": "https://api.github.com/users/lmudge/orgs", "received_events_url": "https://api.github.com/users/lmudge/received_events", "repos_url": "https://api.github.com/users/lmudge/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lmudge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lmudge/subscriptions", "type": "User", "url": "https://api.github.com/users/lmudge" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "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" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-19T07:41:38Z
2016-09-19T10:34:01Z
2016-09-19T10:18:32Z
NONE
null
#### Code Sample, a copy-pastable example if possible s = Series(["HCPSS_000_123", "HCPSS_100_1234", "HCPSS_200_1234"], index=["CM_1","CM_2","CM_3"]) module = s.str.extractall("HCPSS_(\d{3})") ## Gives the following error ValueError Traceback (most recent call last) <ipython-input-43-0208f0c2a4e9> in <module>() ----> 1 module = s.str.extractall("HCPSS_(\d{3})") C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\core\strings.pyc in extractall(self, pat, flags) 1619 @copy(str_extractall) 1620 def extractall(self, pat, flags=0): -> 1621 return str_extractall(self._orig, pat, flags=flags) 1622 1623 _shared_docs['find'] = (""" C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\core\strings.pyc in str_extractall(arr, pat, flags) 711 if 0 < len(index_list): 712 index = MultiIndex.from_tuples( --> 713 index_list, names=arr.index.names + ["match"]) 714 else: 715 index = None C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\indexes\multi.pyc in from_tuples(cls, tuples, sortorder, names) 893 arrays = lzip(*tuples) 894 --> 895 return MultiIndex.from_arrays(arrays, sortorder=sortorder, names=names) 896 897 @classmethod C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\indexes\multi.pyc in from_arrays(cls, arrays, sortorder, names) 848 849 return MultiIndex(levels=levels, labels=labels, sortorder=sortorder, --> 850 names=names, verify_integrity=False) 851 852 @classmethod C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\indexes\multi.pyc in **new**(cls, levels, labels, sortorder, names, copy, verify_integrity, _set_identity, name, **kwargs) 95 if names is not None: 96 # handles name validation ---> 97 result._set_names(names) 98 99 if sortorder is not None: C:\Users\lmudge\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\indexes\multi.pyc in _set_names(self, names, level, validate) 450 raise ValueError('Length of names must match length of level.') 451 if validate and level is None and len(names) != self.nlevels: --> 452 raise ValueError('Length of names must match number of levels in ' 453 'MultiIndex.') 454 ValueError: Length of names must match number of levels in MultiIndex. #### Expected Output No error #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14248/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14248/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14249
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14249/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14249/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14249/events
https://github.com/pandas-dev/pandas/issues/14249
177,742,370
MDU6SXNzdWUxNzc3NDIzNzA=
14,249
BUG: NaN in multi-index and to_latex()
{ "avatar_url": "https://avatars.githubusercontent.com/u/972196?v=4", "events_url": "https://api.github.com/users/eXcuvator/events{/privacy}", "followers_url": "https://api.github.com/users/eXcuvator/followers", "following_url": "https://api.github.com/users/eXcuvator/following{/other_user}", "gists_url": "https://api.github.com/users/eXcuvator/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eXcuvator", "id": 972196, "login": "eXcuvator", "node_id": "MDQ6VXNlcjk3MjE5Ng==", "organizations_url": "https://api.github.com/users/eXcuvator/orgs", "received_events_url": "https://api.github.com/users/eXcuvator/received_events", "repos_url": "https://api.github.com/users/eXcuvator/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eXcuvator/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eXcuvator/subscriptions", "type": "User", "url": "https://api.github.com/users/eXcuvator" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" } ]
closed
false
null
[]
{ "closed_at": "2018-05-16T03:09:58Z", "closed_issues": 1645, "created_at": "2017-10-20T10:17:09Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.22", "due_on": "2018-05-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/53", "id": 2853937, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels", "node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==", "number": 53, "open_issues": 0, "state": "closed", "title": "0.23.0", "updated_at": "2018-08-20T06:48:57Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53" }
1
2016-09-19T09:44:29Z
2018-04-25T01:28:01Z
2018-04-25T01:28:01Z
NONE
null
#### Code Sample, a copy-pastable example if possible I was trying to find a small reproducible code for a [larger issue ](http://stackoverflow.com/questions/39569791/pandas-replaces-nan-with-arbitrary-number-when-to-latex)that I wanted to report. On the way there, I stumbled across this (probably related) issue: ``` # test data frame: >>> test Out[36]: robustness value change 0 baseline NaN -14.5 ``` ``` # as expected: >>> test.set_index(['robustness', 'value']).to_csv() Out[34]: 'robustness,value,change\nbaseline,,-14.5\n' ``` And here's what `to_latex()` makes out of it: ``` >>> test.set_index(['robustness', 'value']).to_latex() Traceback (most recent call last): File "/usr/local/anaconda2/envs/myenv2/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-35-901bbd119ed6>", line 1, in <module> test.set_index(['robustness', 'value']).to_latex() File "/usr/local/anaconda2/envs/myenv2/lib/python2.7/site-packages/pandas/core/frame.py", line 1601, in to_latex encoding=encoding) File "/usr/local/anaconda2/envs/myenv2/lib/python2.7/site-packages/pandas/core/format.py", line 638, in to_latex latex_renderer.write_result(self.buf) File "/usr/local/anaconda2/envs/myenv2/lib/python2.7/site-packages/pandas/core/format.py", line 824, in write_result blank = ' ' * len(lev2[0]) IndexError: list index out of range ``` #### Expected Output #### output of `pd.show_versions()` > > > pd.show_versions() ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-36-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.0 nose: None pip: 8.1.1 setuptools: 21.2.1 Cython: None numpy: 1.11.0 scipy: 0.17.0 statsmodels: None xarray: None IPython: 4.1.2 sphinx: None patsy: 0.4.1 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: None tables: None numexpr: 2.5.2 matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14249/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14249/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14250
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14250/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14250/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14250/events
https://github.com/pandas-dev/pandas/issues/14250
177,819,967
MDU6SXNzdWUxNzc4MTk5Njc=
14,250
rename() take datetime.date as a function
{ "avatar_url": "https://avatars.githubusercontent.com/u/7440735?v=4", "events_url": "https://api.github.com/users/fluency03/events{/privacy}", "followers_url": "https://api.github.com/users/fluency03/followers", "following_url": "https://api.github.com/users/fluency03/following{/other_user}", "gists_url": "https://api.github.com/users/fluency03/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fluency03", "id": 7440735, "login": "fluency03", "node_id": "MDQ6VXNlcjc0NDA3MzU=", "organizations_url": "https://api.github.com/users/fluency03/orgs", "received_events_url": "https://api.github.com/users/fluency03/received_events", "repos_url": "https://api.github.com/users/fluency03/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fluency03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fluency03/subscriptions", "type": "User", "url": "https://api.github.com/users/fluency03" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
3
2016-09-19T15:40:46Z
2016-09-20T09:45:51Z
2016-09-20T09:45:51Z
NONE
null
I would like to rename a pd.Series but got two results on two different platforms. For example, if I have a pd.Series as `a` and a datetime.date as `one_date`, and I do: ``` a.rename(one_date) ``` On my own laptop (Window 7, Python 2.7), I got no error. But when I do this on a server (Linux, Python 2.7), I got an error: Traceback (most recent call last): File "as.py", line 626, in <module> run_batch(sys.argv[1:]) File "as.py", line 549, in run_batch analyzer.analyze_batch(one_user, batch_index_user, user_index) File "as.py", line 467, in analyze_batch clicks_one_date) File "as.py", line 434, in analyze_one_date_batch return counts_on_date.rename(one_date) File "/home/xxx/anaconda2/anaconda/lib/python2.7/site-packages/pandas/core/series.py", line 2264, in rename return super(Series, self).rename(index=index, **kwargs) File "/home/xxx/anaconda2/anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 606, in rename result._data = result._data.rename_axis(f, axis=baxis, copy=copy) File "/home/xxx/anaconda2/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 2588, in rename_axis obj.set_axis(axis, _transform_index(self.axes[axis], mapper)) File "/home/xxx/anaconda2/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 4391, in _transform_index items = [func(x) for x in index] TypeError: 'datetime.date' object is not callable --- It seems like the method `rename` take the `one_date` as a function instead of a scalar value. Then it tried to call the `datetime.date` as a function but it is not callable. Anyone has some idea about how to deal with it? 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/14250/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14250/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14251
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14251/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14251/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14251/events
https://github.com/pandas-dev/pandas/issues/14251
177,846,475
MDU6SXNzdWUxNzc4NDY0NzU=
14,251
DataFrame.reset_index(inplace=True) does not return self, harming composability
{ "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "4530B5", "default": false, "description": "Relating to inplace parameter or equivalent", "id": 3498153567, "name": "inplace", "node_id": "LA_kwDOAA0YD87QgZZf", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/inplace" } ]
open
false
null
[]
null
7
2016-09-19T17:29:22Z
2021-10-29T02:01:41Z
null
MEMBER
null
#### Code Sample, a copy-pastable example if possible ``` df = pd.DataFrame({'foo': [1, 2, 3, 4]}, index=pd.Index(['a', 'b', 'c', 'd'], name='names')) df.reset_index(inplace=True) ``` returns None #### Expected Output Same as output of ``` df.reset_index() ``` #### output of `pd.show_versions()` This is on trunk. Caused by the lines in DataFrame.reset_index ``` if not inplace: return new_obj ```
{ "+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/14251/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14251/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14252
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14252/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14252/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14252/events
https://github.com/pandas-dev/pandas/issues/14252
177,847,300
MDU6SXNzdWUxNzc4NDczMDA=
14,252
BUG: keys argument in pandas.concat does not preserve Index name
{ "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
0
2016-09-19T17:32:59Z
2016-10-09T17:38:05Z
2016-10-09T17:38:05Z
MEMBER
null
#### Code Sample, a copy-pastable example if possible ``` df = pd.DataFrame({'foo': [1, 2, 3, 4], 'bar': [0.1, 0.2, 0.3, 0.4]}) index = pd.Index(['a', 'b'], name='baz') concatted = pd.concat([df, df], keys=index) concatted.index.names ## -- End pasted text -- Out[3]: FrozenList([None, None]) ``` #### Expected Output ``` FrozenList(['baz', None]) ``` #### output of `pd.show_versions()` A few days older than master: ``` commit: 5e2f9da6e8e713bd89cfe8760e63583ea7d29879 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14252/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14252/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14253
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14253/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14253/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14253/events
https://github.com/pandas-dev/pandas/issues/14253
177,864,458
MDU6SXNzdWUxNzc4NjQ0NTg=
14,253
Add left_by/right_by and left_index/right_index to merge_asof()
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
4
2016-09-19T18:45:34Z
2016-12-14T16:10:42Z
2016-12-14T16:10:42Z
CONTRIBUTOR
null
The current `merge_asof()` has only one parameter for `by`, assuming that both DataFrames have the same column name. It does have `left_on` and `right_on`, so perhaps something similar for `by` would be helpful. Also, there is no `left_index` or `right_index` parameter in `merge_asof()`. Adding these might be helpful too. For example: ``` pd.merge_asof(df1, df2, left_index=True, right_on='timestamp', left_by='Ticker', right_by='ticker') ```
{ "+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/14253/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14253/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14254
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14254/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14254/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14254/events
https://github.com/pandas-dev/pandas/issues/14254
177,875,086
MDU6SXNzdWUxNzc4NzUwODY=
14,254
QuarterBegin wrong date
{ "avatar_url": "https://avatars.githubusercontent.com/u/3619876?v=4", "events_url": "https://api.github.com/users/postelrich/events{/privacy}", "followers_url": "https://api.github.com/users/postelrich/followers", "following_url": "https://api.github.com/users/postelrich/following{/other_user}", "gists_url": "https://api.github.com/users/postelrich/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/postelrich", "id": 3619876, "login": "postelrich", "node_id": "MDQ6VXNlcjM2MTk4NzY=", "organizations_url": "https://api.github.com/users/postelrich/orgs", "received_events_url": "https://api.github.com/users/postelrich/received_events", "repos_url": "https://api.github.com/users/postelrich/repos", "site_admin": false, "starred_url": "https://api.github.com/users/postelrich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/postelrich/subscriptions", "type": "User", "url": "https://api.github.com/users/postelrich" }
[ { "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": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
16
2016-09-19T19:30:54Z
2016-09-20T15:35:35Z
2016-09-19T19:40:54Z
NONE
null
Would expect this to point to one of (1, 4, 7, 10)... ``` #### Code Sample, a copy-pastable example if possible import pandas as pd pd.Timestamp.today() - pd.tseries.offsets.QuarterBegin() >Timestamp('2016-09-01 15:29:06.556269') #### Expected Output Timestamp('2016-07-01 15:29:06.556269') #### output of ``pd.show_versions()`` In [4]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.6 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: None pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14254/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14254/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14255
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14255/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14255/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14255/events
https://github.com/pandas-dev/pandas/pull/14255
177,934,743
MDExOlB1bGxSZXF1ZXN0ODU4OTM4ODk=
14,255
BUG: float truncation in eval with py 2
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
4
2016-09-20T00:43:22Z
2016-09-22T10:20:37Z
2016-09-22T10:20:26Z
CONTRIBUTOR
null
- [x] closes #14241 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Python 2 only - apparently `str()` rounds shorter than `repr()` ``` In [1]: f = 1000000000.006 In [2]: str(f) Out[2]: '1000000000.01' In [3]: repr(f) Out[3]: '1000000000.006' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14255/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14255/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14255.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14255", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14255.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14255" }
https://api.github.com/repos/pandas-dev/pandas/issues/14256
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14256/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14256/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14256/events
https://github.com/pandas-dev/pandas/issues/14256
178,003,935
MDU6SXNzdWUxNzgwMDM5MzU=
14,256
BUG: to_json with objects causing segfault
{ "avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4", "events_url": "https://api.github.com/users/tjader/events{/privacy}", "followers_url": "https://api.github.com/users/tjader/followers", "following_url": "https://api.github.com/users/tjader/following{/other_user}", "gists_url": "https://api.github.com/users/tjader/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tjader", "id": 4710853, "login": "tjader", "node_id": "MDQ6VXNlcjQ3MTA4NTM=", "organizations_url": "https://api.github.com/users/tjader/orgs", "received_events_url": "https://api.github.com/users/tjader/received_events", "repos_url": "https://api.github.com/users/tjader/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjader/subscriptions", "type": "User", "url": "https://api.github.com/users/tjader" }
[ { "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": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "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" }
14
2016-09-20T08:58:43Z
2018-03-21T16:10:57Z
2017-10-14T14:36:39Z
NONE
null
#### Code Sample, a copy-pastable example if possible Creating an bson objectID, without giving an objectID exclusively is ok. ``` python >>> import bson >>> import pandas as pd >>> pd.DataFrame({'A': [bson.objectid.ObjectId()]}).to_json() Out[4]: '{"A":{"0":{"binary":"W\\u0e32\\u224cug\\u00fcR","generation_time":1474361586000}}}' >>> pd.DataFrame({'A': [bson.objectid.ObjectId()], 'B': [1]}).to_json() Out[5]: '{"A":{"0":{"binary":"W\\u0e4e\\u224cug\\u00fcS","generation_time":1474361614000}},"B":{"0":1}}' ``` However, if you provide an ID explicitly, an exception is raised ``` python >>> pd.DataFrame({'A': [bson.objectid.ObjectId('574b4454ba8c5eb4f98a8f45')]}).to_json() Traceback (most recent call last): File "/auto/energymdl2/anaconda/envs/commod_20160831/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-7-c9a20090d481>", line 1, in <module> pd.DataFrame({'A': [bson.objectid.ObjectId('574b4454ba8c5eb4f98a8f45')]}).to_json() File "/auto/energymdl2/anaconda/envs/commod_20160831/lib/python2.7/site-packages/pandas/core/generic.py", line 1056, in to_json default_handler=default_handler) File "/auto/energymdl2/anaconda/envs/commod_20160831/lib/python2.7/site-packages/pandas/io/json.py", line 36, in to_json date_unit=date_unit, default_handler=default_handler).write() File "/auto/energymdl2/anaconda/envs/commod_20160831/lib/python2.7/site-packages/pandas/io/json.py", line 79, in write default_handler=self.default_handler) OverflowError: Unsupported UTF-8 sequence length when encoding string ``` And worse, if the column is not the only column, the entire process dies. ``` python >>> pd.DataFrame({'A': [bson.objectid.ObjectId('574b4454ba8c5eb4f98a8f45')], 'B': [1]}).to_json() Process finished with exit code 139 ``` #### Expected Output #### output of `pd.show_versions()` ``` pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 26.1.1 Cython: 0.24 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 xarray: 0.7.2 IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.1 dateutil: 2.5.2 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.2 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.3.2 html5lib: 0.999 httplib2: 0.9.2 apiclient: 1.5.0 sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: None ``` pymongo version is 3.3.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/14256/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14256/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14257
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14257/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14257/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14257/events
https://github.com/pandas-dev/pandas/issues/14257
178,076,651
MDU6SXNzdWUxNzgwNzY2NTE=
14,257
Installation issue with --editable option
{ "avatar_url": "https://avatars.githubusercontent.com/u/3446400?v=4", "events_url": "https://api.github.com/users/Eimis/events{/privacy}", "followers_url": "https://api.github.com/users/Eimis/followers", "following_url": "https://api.github.com/users/Eimis/following{/other_user}", "gists_url": "https://api.github.com/users/Eimis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Eimis", "id": 3446400, "login": "Eimis", "node_id": "MDQ6VXNlcjM0NDY0MDA=", "organizations_url": "https://api.github.com/users/Eimis/orgs", "received_events_url": "https://api.github.com/users/Eimis/received_events", "repos_url": "https://api.github.com/users/Eimis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Eimis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Eimis/subscriptions", "type": "User", "url": "https://api.github.com/users/Eimis" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
21
2016-09-20T14:30:24Z
2016-09-21T12:25:32Z
2016-09-20T22:20:18Z
NONE
null
Hello, I'm trying to install pandas on Mac OS X 10.11.6 in a Django project. Pandas library is used with one of the 3rd party libraries that I am using in the project. Since I don't want to switch to different package manager (Anakonda) just for installing pandas (I'm using pip now), in order for me to get the C files compiled, I decided to install pandas by including `--editable git+git://github.com/pydata/[email protected]#egg=pandas` in the `requirements.txt` file and the library is now installed in my `src` dir and there's a symlink in my virtualenv's `site-packages` which points to it. This gets these headers compiled, but causes many strange importing errors in pandas source code itself when it is imported by a third party library that is also installed with `--editable` mode. F. ex. file at `Users/eimantas/Desktop/Projects/WeShareSolar/mijnstroom/virtualenv/src/knmi-py/knmi/parsers.py` has this line `import pandas as pd`. And I had to edit this code block in `virtualenv/src/pandas/pandas/__init__.py` for things to work: ``` try: # XXX: I had to comment this out for things to work: # from pandas import hashtable, tslib, lib import hashtable, tslib, lib except ImportError as e: # pragma: no cover module = str(e).lstrip('cannot import name ') # hack but overkill to use re raise ImportError("C extension: {0} not built. If you want to import " "pandas from the source directory, you may need to run " "'python setup.py build_ext --inplace' to build the C " "extensions first.".format(module)) ``` But then another importing error appears here: `virtualenv/src/pandas/pandas/core/config.py`: ``` File "/Users/eimantas/Desktop/Projects/WeShareSolar/mijnstroom/virtualenv/src/pandas/pandas/core/config.py", line 57, in <module> import pandas.compat as compat AttributeError: 'module' object has no attribute 'compat' ``` What should I do to get these things fixed ? I'd love to be able to use this library with pip and Django.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14257/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14257/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14258
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14258/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14258/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14258/events
https://github.com/pandas-dev/pandas/issues/14258
178,103,848
MDU6SXNzdWUxNzgxMDM4NDg=
14,258
BUG: MultiIndex set_levels is not symmetrical with get_level_values
{ "avatar_url": "https://avatars.githubusercontent.com/u/166006?v=4", "events_url": "https://api.github.com/users/danio/events{/privacy}", "followers_url": "https://api.github.com/users/danio/followers", "following_url": "https://api.github.com/users/danio/following{/other_user}", "gists_url": "https://api.github.com/users/danio/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/danio", "id": 166006, "login": "danio", "node_id": "MDQ6VXNlcjE2NjAwNg==", "organizations_url": "https://api.github.com/users/danio/orgs", "received_events_url": "https://api.github.com/users/danio/received_events", "repos_url": "https://api.github.com/users/danio/repos", "site_admin": false, "starred_url": "https://api.github.com/users/danio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danio/subscriptions", "type": "User", "url": "https://api.github.com/users/danio" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
6
2016-09-20T16:04:31Z
2016-09-22T12:47:23Z
2016-09-20T22:21:21Z
NONE
null
#### Code Sample ``` import pandas as pd import io text = """ A B C 1 1 1 1 2 2 2 1 3 2 2 4 """ df = pd.read_csv(io.StringIO(text), delimiter = ' ') # Note the output of get_level_values is the list of all values [1, 1, 2, 2] print(df.index.get_level_values('A').tolist()) df.set_index(['A','B'], inplace = True) df.index.set_levels(df.index.get_level_values('A').map(lambda x: x * 2), level='A', inplace=True) print(df.index.get_level_values('A').tolist()) # outputs [2, 2, 2, 2] ``` #### Expected Output `[2, 2, 4, 4]` ``` # If I re-order the input as: text = """ A B C 1 1 1 2 1 2 1 2 3 2 2 4 """ # it works as I expected giving [2, 4, 2, 4] ``` Is this a bug or expected behaviour? #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: 0.7.5.None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14258/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14258/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14259
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14259/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14259/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14259/events
https://github.com/pandas-dev/pandas/issues/14259
178,119,219
MDU6SXNzdWUxNzgxMTkyMTk=
14,259
[0.19dev] Time-series aware rolling window with MultiIndex with a time-frequency index fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nfcampos", "id": 56902, "login": "nfcampos", "node_id": "MDQ6VXNlcjU2OTAy", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "repos_url": "https://api.github.com/users/nfcampos/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "type": "User", "url": "https://api.github.com/users/nfcampos" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-09-20T17:08:02Z
2016-09-20T19:50:51Z
2016-09-20T19:27:53Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` dft = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]}, index=pd.date_range('20130101 09:00:00', periods=5, freq='s')) dft['another'] = ['a', 'a', 'c', 'd', 'e'] dft.set_index([dft.index, 'another']) dft.rolling('2s') ``` #### Expected Output Expected to be able to use a time-series aware rolling window, instead got `ValueError: window must be an integer` #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0rc1 nose: None pip: 6.0.8 setuptools: 27.2.0 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14259/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14259/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14260
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14260/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14260/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14260/events
https://github.com/pandas-dev/pandas/issues/14260
178,126,578
MDU6SXNzdWUxNzgxMjY1Nzg=
14,260
Styler.background_gradient needs to handle NaN values
{ "avatar_url": "https://avatars.githubusercontent.com/u/4312421?v=4", "events_url": "https://api.github.com/users/stonebig/events{/privacy}", "followers_url": "https://api.github.com/users/stonebig/followers", "following_url": "https://api.github.com/users/stonebig/following{/other_user}", "gists_url": "https://api.github.com/users/stonebig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stonebig", "id": 4312421, "login": "stonebig", "node_id": "MDQ6VXNlcjQzMTI0MjE=", "organizations_url": "https://api.github.com/users/stonebig/orgs", "received_events_url": "https://api.github.com/users/stonebig/received_events", "repos_url": "https://api.github.com/users/stonebig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stonebig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stonebig/subscriptions", "type": "User", "url": "https://api.github.com/users/stonebig" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "006b75", "default": false, "description": "read_html, to_html, Styler.apply, Styler.applymap", "id": 57395487, "name": "IO HTML", "node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML" } ]
closed
false
null
[]
{ "closed_at": 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" }
19
2016-09-20T17:40:26Z
2019-12-27T22:53:28Z
2019-08-22T17:23:51Z
CONTRIBUTOR
null
This code is ok under Pandas-0.18.1 (from a @jreback demo) ``` %matplotlib inline # Pandas interactive import pandas as pd import numpy as np import seaborn as sns # create a df with random datas np.random.seed(24) df = pd.DataFrame({'A': np.linspace(1, 10, 10)}) df = pd.concat([df, pd.DataFrame(np.random.randn(10, 4), columns=list('BCDE'))], axis=1) df.iloc[0, 2] = np.nan # interactive from IPython.html import widgets @widgets.interact def f(h_neg=(0, 359, 1), h_pos=(0, 359), s=(0., 99.9), l=(0., 99.9)): return (df .style .background_gradient( cmap=sns.palettes.diverging_palette( h_neg=h_neg, h_pos=h_pos, s=s, l=l, as_cmap=True) ).highlight_null() ) ``` With Pandas-0.19rc1, I get a warning: ![matplotlib-20160918a](https://cloud.githubusercontent.com/assets/4312421/18681833/0822f680-7f6a-11e6-8e6c-5bcef707d249.PNG) see https://github.com/matplotlib/matplotlib/issues/7129
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14260/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14260/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14261
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14261/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14261/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14261/events
https://github.com/pandas-dev/pandas/pull/14261
178,129,885
MDExOlB1bGxSZXF1ZXN0ODYwMjQ3OTQ=
14,261
BUG: fix for GH14252
{ "avatar_url": "https://avatars.githubusercontent.com/u/8311342?v=4", "events_url": "https://api.github.com/users/rsmith54/events{/privacy}", "followers_url": "https://api.github.com/users/rsmith54/followers", "following_url": "https://api.github.com/users/rsmith54/following{/other_user}", "gists_url": "https://api.github.com/users/rsmith54/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rsmith54", "id": 8311342, "login": "rsmith54", "node_id": "MDQ6VXNlcjgzMTEzNDI=", "organizations_url": "https://api.github.com/users/rsmith54/orgs", "received_events_url": "https://api.github.com/users/rsmith54/received_events", "repos_url": "https://api.github.com/users/rsmith54/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rsmith54/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rsmith54/subscriptions", "type": "User", "url": "https://api.github.com/users/rsmith54" }
[]
closed
false
null
[]
null
0
2016-09-20T17:54:33Z
2016-09-20T18:39:53Z
2016-09-20T18:39:53Z
NONE
null
- [x] closes #14252 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry This should fix #14252 . It's possible that not every one of these changes is needed, or there is a better way to fix it, but I think this should do 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/14261/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14261/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14261.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14261", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14261.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14261" }
https://api.github.com/repos/pandas-dev/pandas/issues/14262
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14262/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14262/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14262/events
https://github.com/pandas-dev/pandas/issues/14262
178,131,480
MDU6SXNzdWUxNzgxMzE0ODA=
14,262
multiple dispatch problem when comparing pandas Series against numpy scalars
{ "avatar_url": "https://avatars.githubusercontent.com/u/5198764?v=4", "events_url": "https://api.github.com/users/nmmarquez/events{/privacy}", "followers_url": "https://api.github.com/users/nmmarquez/followers", "following_url": "https://api.github.com/users/nmmarquez/following{/other_user}", "gists_url": "https://api.github.com/users/nmmarquez/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nmmarquez", "id": 5198764, "login": "nmmarquez", "node_id": "MDQ6VXNlcjUxOTg3NjQ=", "organizations_url": "https://api.github.com/users/nmmarquez/orgs", "received_events_url": "https://api.github.com/users/nmmarquez/received_events", "repos_url": "https://api.github.com/users/nmmarquez/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nmmarquez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nmmarquez/subscriptions", "type": "User", "url": "https://api.github.com/users/nmmarquez" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-20T18:01:30Z
2016-09-20T18:13:17Z
2016-09-20T18:12:59Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` import pandas as pd import numpy as np # this works pd.Series([7,8,9]) >= np.int64(8) # this doesn't np.int64(8) <= pd.Series([7,8,9]) ``` This happens with all numpy scalar types I tested #### Expected Output I would expect the output should be the same regardless of the order and that neither should fail #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-573.22.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.4 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.21 numpy: 1.10.2 scipy: 0.15.1 statsmodels: 0.6.1 xarray: None IPython: 4.0.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.4.4 matplotlib: 1.4.3 openpyxl: 2.3.2 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.32.1 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14262/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14262/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14263
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14263/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14263/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14263/events
https://github.com/pandas-dev/pandas/issues/14263
178,136,775
MDU6SXNzdWUxNzgxMzY3NzU=
14,263
read_hdf crash python process when use it in multithread code
{ "avatar_url": "https://avatars.githubusercontent.com/u/944507?v=4", "events_url": "https://api.github.com/users/xmseraph/events{/privacy}", "followers_url": "https://api.github.com/users/xmseraph/followers", "following_url": "https://api.github.com/users/xmseraph/following{/other_user}", "gists_url": "https://api.github.com/users/xmseraph/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xmseraph", "id": 944507, "login": "xmseraph", "node_id": "MDQ6VXNlcjk0NDUwNw==", "organizations_url": "https://api.github.com/users/xmseraph/orgs", "received_events_url": "https://api.github.com/users/xmseraph/received_events", "repos_url": "https://api.github.com/users/xmseraph/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xmseraph/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xmseraph/subscriptions", "type": "User", "url": "https://api.github.com/users/xmseraph" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
6
2016-09-20T18:21:59Z
2016-09-21T16:54:57Z
2016-09-20T19:29:03Z
NONE
null
one of my folder contains multiple h5 files, and I tried to load them into dataframes and then concat these df into one. the python process crashes when the num_tasks>1, if I debug thread by thread, it works, in another, it crashes simply when two threads run at the same time, even though they read different files. ``` from multiprocessing.pool import ThreadPool import pandas as pd num_tasks=2 def readjob(x): path = x return pd.read_hdf(path,"df",mode='r') pool = ThreadPool(num_tasks) results = pool.map(readjob,files) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14263/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14263/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14264
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14264/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14264/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14264/events
https://github.com/pandas-dev/pandas/issues/14264
178,138,635
MDU6SXNzdWUxNzgxMzg2MzU=
14,264
to_numeric fails to coerce on TypeError, only works on ValueError
{ "avatar_url": "https://avatars.githubusercontent.com/u/830944?v=4", "events_url": "https://api.github.com/users/JonathanMace/events{/privacy}", "followers_url": "https://api.github.com/users/JonathanMace/followers", "following_url": "https://api.github.com/users/JonathanMace/following{/other_user}", "gists_url": "https://api.github.com/users/JonathanMace/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JonathanMace", "id": 830944, "login": "JonathanMace", "node_id": "MDQ6VXNlcjgzMDk0NA==", "organizations_url": "https://api.github.com/users/JonathanMace/orgs", "received_events_url": "https://api.github.com/users/JonathanMace/received_events", "repos_url": "https://api.github.com/users/JonathanMace/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JonathanMace/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JonathanMace/subscriptions", "type": "User", "url": "https://api.github.com/users/JonathanMace" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-09-20T18:30:02Z
2016-09-20T18:51:23Z
2016-09-20T18:50:42Z
NONE
null
Calling to_numeric with errors='coerce' should coerce all non-numeric values to NaN. However, it only seems to work when ValueError is thrown and not for TypeErrors. #### Code Sample, a copy-pastable example if possible ``` import pandas as pd print "Pandas Version %s\n" % pd.__version__ for badval in ["hello", [], {}]: series = pd.Series([badval]) coerced = pd.to_numeric(series, errors='coerce') try: pd.to_numeric(series) except Exception as e: error = e print "Bad Value: %s error=%s coerced=%s" % (badval, type(error).__name__, coerced.dtype) print "DataFrame:" print coerced print "" ``` #### Expected Output ``` Pandas Version 0.18.1 Bad Value: hello error=ValueError coerced=float64 DataFrame: 0 NaN dtype: float64 Bad Value: [] error=TypeError coerced=object DataFrame: 0 [] dtype: object Bad Value: {} error=TypeError coerced=object DataFrame: 0 {} dtype: object ``` #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.0.9-63_fbk11_3989_g7d5ca22 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.4 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.22 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.4.1 pytz: 2015.2 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.6.1 matplotlib: 1.4.3 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.6.7 lxml: 3.4.2 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.9 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.36.0 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14264/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14264/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14265
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14265/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14265/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14265/events
https://github.com/pandas-dev/pandas/issues/14265
178,141,962
MDU6SXNzdWUxNzgxNDE5NjI=
14,265
astype(np.int32) converts np.inf to int32 min value
{ "avatar_url": "https://avatars.githubusercontent.com/u/830944?v=4", "events_url": "https://api.github.com/users/JonathanMace/events{/privacy}", "followers_url": "https://api.github.com/users/JonathanMace/followers", "following_url": "https://api.github.com/users/JonathanMace/following{/other_user}", "gists_url": "https://api.github.com/users/JonathanMace/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JonathanMace", "id": 830944, "login": "JonathanMace", "node_id": "MDQ6VXNlcjgzMDk0NA==", "organizations_url": "https://api.github.com/users/JonathanMace/orgs", "received_events_url": "https://api.github.com/users/JonathanMace/received_events", "repos_url": "https://api.github.com/users/JonathanMace/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JonathanMace/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JonathanMace/subscriptions", "type": "User", "url": "https://api.github.com/users/JonathanMace" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-09-20T18:42:29Z
2016-12-11T22:23:50Z
2016-12-11T22:23:50Z
NONE
null
It seems that converting np.inf to int32 and int64 using pd.astype converts them to the min int value rather than throwing an exception. Presumably this is because they raise OverflowError and not ValueError #### Code Sample, a copy-pastable example if possible ``` for typ in [np.int32, np.int64]: for badval in [np.nan, np.inf]: # Print the exception thrown by casting to numpy directly try: typ(badval) except Exception as e: print "np.%s(np.%s) throws %s: %s" % (typ.__name__, badval, type(e).__name__, e) # Print the exception or resulting value by casting using pd.astype try: typed = pd.Series([badval]).astype(typ) print "pd.Series([np.%s]).astype(np.%s) returns dataframe containing %s" % (badval, typ.__name__, typed[0]) print "Returned DataFrame:" print typed except Exception as e: print "pd.Series([np.%s]).astype(np.%s) throws %s: %s" % (badval, typ.__name__, type(e).__name__, e) print "" ``` #### Expected Output ``` np.int32(np.nan) throws ValueError: cannot convert float NaN to integer pd.Series([np.nan]).astype(np.int32) throws ValueError: Cannot convert NA to integer np.int32(np.inf) throws OverflowError: cannot convert float infinity to integer pd.Series([np.inf]).astype(np.int32) returns dataframe containing -2147483648 Returned DataFrame: 0 -2147483648 dtype: int32 np.int64(np.nan) throws ValueError: cannot convert float NaN to integer pd.Series([np.nan]).astype(np.int64) throws ValueError: Cannot convert NA to integer np.int64(np.inf) throws OverflowError: cannot convert float infinity to integer pd.Series([np.inf]).astype(np.int64) returns dataframe containing -9223372036854775808 Returned DataFrame: 0 -9223372036854775808 dtype: int64 ``` #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.0.9-63_fbk11_3989_g7d5ca22 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.4 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.22 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.4.1 pytz: 2015.2 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.6.1 matplotlib: 1.4.3 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.6.7 lxml: 3.4.2 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.9 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.36.0 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14265/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14265/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14266
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14266/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14266/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14266/events
https://github.com/pandas-dev/pandas/issues/14266
178,279,682
MDU6SXNzdWUxNzgyNzk2ODI=
14,266
Large Monotonic Index Objects Always Allocate Hash Tables on get_loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4", "events_url": "https://api.github.com/users/ssanderson/events{/privacy}", "followers_url": "https://api.github.com/users/ssanderson/followers", "following_url": "https://api.github.com/users/ssanderson/following{/other_user}", "gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ssanderson", "id": 1588357, "login": "ssanderson", "node_id": "MDQ6VXNlcjE1ODgzNTc=", "organizations_url": "https://api.github.com/users/ssanderson/orgs", "received_events_url": "https://api.github.com/users/ssanderson/received_events", "repos_url": "https://api.github.com/users/ssanderson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions", "type": "User", "url": "https://api.github.com/users/ssanderson" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "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" }
18
2016-09-21T08:28:34Z
2016-09-22T10:03:25Z
2016-09-22T10:03:24Z
CONTRIBUTOR
null
Historically, large monotonically-increasing `Index` objects would attempt to avoid creating a large hash table on `get_loc` calls. In service of this goal, many `IndexEngine` methods have guards like the one in `DatetimeEngine.get_loc`: ``` python if self.over_size_threshold and self.is_monotonic_increasing: if not self.is_unique: val = _to_i8(val) return self._get_loc_duplicates(val) # Do lookup using `searchsorted` # Do lookup using hash table. ``` Since at least 5eecdb2dd94719e1fd097ce3fb046697445a3d7f, `self.is_unique` has been implemented as a property that would force a hash table to be created **unless the index had already been marked as unique**. Until https://github.com/pydata/pandas/pull/10199, the `is_monotonic_increasing` property would perform a check that would [sometimes set `self.unique` to True](https://github.com/pydata/pandas/pull/10199/files#diff-4f3357a9f53e943087e2778134494905L236), which would prevent the large hash table allocation. After the commit linked above, however, the only code path that ever sets `IndexEngine.unique` is in [`IndexEngine.initialize`](https://github.com/pydata/pandas/blob/a7469cf98275a183ad2e4bfafa9706a1ef8d035e/pandas/index.pyx#L269-L270), which [unconditionally creates a hash table before setting the unique flag.](https://github.com/pydata/pandas/blob/a7469cf98275a183ad2e4bfafa9706a1ef8d035e/pandas/index.pyx#L266-L267). #### Code Sample, a copy-pastable example if possible ``` python import os import humanize import psutil import pandas as pd def get_mem_usage(): pid = os.getpid() proc = psutil.Process(pid) return humanize.naturalsize(proc.memory_full_info().uss) print("Pandas Version: " + pd.__version__) print("Before Index Creation: " + get_mem_usage()) # The cutoff for allocating a hash table inside the index is supposed to be #1,000,000 entries in the index. This index is about 10x larger. data = pd.date_range('1990', '2016', freq='min') print("After Index Creation: " + get_mem_usage()) # Trigger a hash of the index's contents. data.get_loc(data[5]) print("After get_loc() call: " + get_mem_usage()) ``` #### Output (Old Pandas): ``` $ python repro.py Pandas Version: 0.16.1 Before Index Creation: 36.8 MB After Index Creation: 146.5 MB After get_loc() call: 146.6 MB ``` #### Output (Pandas 0.18.1) ``` $ python repro.py Pandas Version: 0.18.1 Before Index Creation: 47.6 MB After Index Creation: 157.4 MB After get_loc() call: 698.7 MB ``` For some context, I found this after the internal Jenkins build for Zipline (which makes heavy use of large minutely `DatetimeIndex`es to represent trading calendars) started failing with memory errors after merging https://github.com/quantopian/zipline/pull/1339. Assuming that the memory-saving behavior of older pandas is still desired, I think the right immediate fix for this is to change `IndexEngine._do_unique_check` to actually do a uniqueness check instead of just forcing a hash table creation. Reading through the code, however, there are a bunch of ways that large `Index`es could still hit code paths that trigger hash table allocations. For example, `DatetimeEngine.__contains__` guards against `self.over_size_threshold`, but none of the other `IndexEngine` subclasses do. A more significant refactor is probably needed to provide a meaningful guarantee that indices don't consume too much memory. #### output of `pd.show_versions()` <details> In [4]: pd.show_versions() ## INSTALLED VERSIONS commit: None python: 2.7.10.final.0 python-bits: 64 OS: Linux OS-release: 4.2.0-16-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.16.1 nose: 1.3.7 Cython: 0.22.1 numpy: 1.9.2 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 5.1.0 sphinx: 1.3.4 patsy: 0.4.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 1.0.0 tables: None numexpr: 2.4.6 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.4 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.8 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14266/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14266/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14267
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14267/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14267/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14267/events
https://github.com/pandas-dev/pandas/issues/14267
178,319,078
MDU6SXNzdWUxNzgzMTkwNzg=
14,267
Problem reading HTML tables with colspan
{ "avatar_url": "https://avatars.githubusercontent.com/u/8018354?v=4", "events_url": "https://api.github.com/users/adailsonfilho/events{/privacy}", "followers_url": "https://api.github.com/users/adailsonfilho/followers", "following_url": "https://api.github.com/users/adailsonfilho/following{/other_user}", "gists_url": "https://api.github.com/users/adailsonfilho/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adailsonfilho", "id": 8018354, "login": "adailsonfilho", "node_id": "MDQ6VXNlcjgwMTgzNTQ=", "organizations_url": "https://api.github.com/users/adailsonfilho/orgs", "received_events_url": "https://api.github.com/users/adailsonfilho/received_events", "repos_url": "https://api.github.com/users/adailsonfilho/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adailsonfilho/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adailsonfilho/subscriptions", "type": "User", "url": "https://api.github.com/users/adailsonfilho" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "006b75", "default": false, "description": "read_html, to_html, Styler.apply, Styler.applymap", "id": 57395487, "name": "IO HTML", "node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-21T11:25:57Z
2017-07-23T14:31:37Z
2017-07-23T14:31:26Z
NONE
null
Hi, guys! First of all, thanks for making this open source! =D Keep up the good work! **SCRIPT** ``` import pandas as pd dfs = pd.read_html('https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States') print(dfs[0]) ``` The output we found where there is any colspan is considering only the first column, and the other values are pulled back in relation to the colspan amount, making the values on the tail's row as "NaN" **#### Expected Output** In this web page, there is a colspan in the "capital" and "largest city" columns when they are the same, I think that in a general way we would expect that the value would be duplicate on the following <colspan's amount> columns in the generated DataFrame #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 15 Stepping 13, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 27.2.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: 0.2.1
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14267/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14267/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14268
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14268/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14268/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14268/events
https://github.com/pandas-dev/pandas/pull/14268
178,330,871
MDExOlB1bGxSZXF1ZXN0ODYxNTE3NzU=
14,268
Update Github issue template
{ "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" }
[]
closed
false
null
[]
null
5
2016-09-21T12:22:46Z
2017-04-05T02:08:33Z
2016-09-23T21:38:17Z
CONTRIBUTOR
null
Mostly just using the `details` tag to reduce some clutter in all the issues, e.g. --- #### A small, complete example of the issue ``` python # Your code here def fib(n): return fib(n-1) + fib(n-2) ``` #### Expected Output Nothing #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0rc1+21.ge596cbf nose: 1.3.7 pip: 8.1.2 setuptools: 26.1.1 Cython: 0.25a0 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.8.0rc1 xarray: 0.7.2 IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: 1.4.1 bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.2 openpyxl: 2.3.5 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: None lxml: 3.4.4 bs4: 4.4.1 html5lib: 0.9999999 httplib2: 0.9.2 apiclient: 1.5.1 sqlalchemy: 1.0.12 pymysql: 0.7.6.None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.39.0 pandas_datareader: None </details>
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14268/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14268/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14268.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14268", "merged_at": "2016-09-23T21:38:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14268.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14268" }
https://api.github.com/repos/pandas-dev/pandas/issues/14269
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14269/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14269/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14269/events
https://github.com/pandas-dev/pandas/issues/14269
178,334,362
MDU6SXNzdWUxNzgzMzQzNjI=
14,269
test_expressions.test_integer* fail badly while building on Debian sid amd64 python3.5
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "Unit tests that occasionally fail", "id": 76939933, "name": "Unreliable Test", "node_id": "MDU6TGFiZWw3NjkzOTkzMw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test" }, { "color": "f9c1b1", "default": false, "description": "Linux OS", "id": 1233745380, "name": "Linux", "node_id": "MDU6TGFiZWwxMjMzNzQ1Mzgw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Linux" } ]
closed
false
null
[]
null
3
2016-09-21T12:36:53Z
2021-05-01T23:49:00Z
2021-05-01T23:49:00Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible Here is a sample (full build log and all 4 failures are at http://neuro.debian.net/_files/_buildlogs/pandas/0.18.1+git25-ga7469cf/pandas_0.18.1+git25-ga7469cf-1_amd64.build ) edit 1: it is all fine with python 2.7 ``` ====================================================================== FAIL: test_integer_with_zeros (pandas.tests.test_expressions.TestExpressions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/tests/test_expressions.py", line 244, in test_integer_with_zeros assert_frame_equal) File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/tests/test_expressions.py", line 100, in run_arithmetic_test assert_func(expected, result) File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 1313, in assert_frame_equal obj='DataFrame.iloc[:, {0}]'.format(i)) File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 1181, in assert_series_equal obj='{0}'.format(obj)) File "pandas/src/testing.pyx", line 59, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3783) File "pandas/src/testing.pyx", line 173, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2987) File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: DataFrame.iloc[:, 0] are different DataFrame.iloc[:, 0] values are different (0.57994 %) [left]: [-9223372036854775808, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 10000000000, 1, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, -9223372036854775808, 1, 1, -9223372036854775808, -9223372036854775808, 3125, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, -9223372036854775808, 4, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, -9223372036854775808, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, -9223372036854775808, 387420489, 1, 1, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, 437893890380859392, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, 1, 1, 1, -9223372036854775808, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, 1, 302875106592253, -9223372036854775808, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, 1, -9223372036854775808, 302875106592253, 1, -9223372036854775808, 1, 1, -9223372036854775808, ...] [right]: [-9223372036854775808, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 10000000000, 1, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, -9223372036854775808, 1, 1, -9223372036854775808, -9223372036854775808, 3125, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, -9223372036854775808, 4, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, -9223372036854775808, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, -9223372036854775808, 387420489, 1, 1, -9223372036854775808, 1, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, 437893890380859375, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, 1, 1, 1, -9223372036854775808, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, 1, 302875106592253, -9223372036854775808, 1, -9223372036854775808, -9223372036854775808, -9223372036854775808, -9223372036854775808, 1, 1, -9223372036854775808, 1, 1, 1, -9223372036854775808, 302875106592253, 1, -9223372036854775808, 1, 1, -9223372036854775808, ...] ---------------------------------------------------------------------- Ran 10884 tests in 932.762s FAILED (SKIP=542, failures=4) True WHAT THE <class 'pandas.core.frame.DataFrame'> RangeIndex: 2500 entries, 0 to 2499 Data columns (total 2 columns): int64 2500 non-null int64 category 2500 non-null category dtypes: category(1), int64(1) memory usage: 22.1 KB <class 'pandas.core.frame.DataFrame'> Int64Index: 275 entries, 0 to 2499 Data columns (total 2 columns): int64 275 non-null int64 category 275 non-null category dtypes: category(1), int64(1) memory usage: 4.6 KB zounds! default called array('d', [1.1, 2.2, 3.3]) ext_hook called 123 b'\x9a\x99\x99\x99\x99\x99\xf1?\x9a\x99\x99\x99\x99\x99\x01@ffffff\n@' debian/rules:100: recipe for target 'python-test3.5' failed make[1]: *** [python-test3.5] Error 1 make[1]: Leaving directory '/build/pandas-0.18.1+git25-ga7469cf' debian/rules:48: recipe for target 'binary' failed make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 I: copying local configuration ``` #### output of `pd.show_versions()` ``` shell > PYTHONPATH=lib.linux-x86_64-3.5 python3.5 -c 'import pandas; pandas.show_versions()' INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.8.0-rc5+ machine: x86_64 processor: byteorder: little LC_ALL: C LANG: C LOCALE: None.None pandas: 0.18.1+git25-ga7469cf nose: 1.3.7 pip: None setuptools: 27.1.2 Cython: 0.24.1 numpy: 1.11.1rc1 scipy: 0.18.0 statsmodels: None xarray: None IPython: None sphinx: 1.4.6 patsy: None dateutil: 2.5.3 pytz: 2015.7 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None ``` any clear ideas?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14269/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14269/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14270
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14270/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14270/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14270/events
https://github.com/pandas-dev/pandas/pull/14270
178,341,372
MDExOlB1bGxSZXF1ZXN0ODYxNTg1MTA=
14,270
PERF: use uniqueness_check from monotonic check when possible
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
10
2016-09-21T13:06:43Z
2016-09-22T10:03:25Z
2016-09-22T10:03:25Z
CONTRIBUTOR
null
closes #14266
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14270/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14270/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14270.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14270", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14270.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14270" }
https://api.github.com/repos/pandas-dev/pandas/issues/14271
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14271/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14271/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14271/events
https://github.com/pandas-dev/pandas/pull/14271
178,353,221
MDExOlB1bGxSZXF1ZXN0ODYxNjY0NTg=
14,271
DOC: Typo fix in ordered_merge warning
{ "avatar_url": "https://avatars.githubusercontent.com/u/2850299?v=4", "events_url": "https://api.github.com/users/jerenrich/events{/privacy}", "followers_url": "https://api.github.com/users/jerenrich/followers", "following_url": "https://api.github.com/users/jerenrich/following{/other_user}", "gists_url": "https://api.github.com/users/jerenrich/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jerenrich", "id": 2850299, "login": "jerenrich", "node_id": "MDQ6VXNlcjI4NTAyOTk=", "organizations_url": "https://api.github.com/users/jerenrich/orgs", "received_events_url": "https://api.github.com/users/jerenrich/received_events", "repos_url": "https://api.github.com/users/jerenrich/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jerenrich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jerenrich/subscriptions", "type": "User", "url": "https://api.github.com/users/jerenrich" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
2
2016-09-21T13:52:06Z
2016-09-22T16:39:19Z
2016-09-22T16:39:03Z
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/14271/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14271/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14271.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14271", "merged_at": "2016-09-22T16:39:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14271.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14271" }
https://api.github.com/repos/pandas-dev/pandas/issues/14272
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14272/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14272/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14272/events
https://github.com/pandas-dev/pandas/issues/14272
178,357,777
MDU6SXNzdWUxNzgzNTc3Nzc=
14,272
Please don't drop pandas.rpy.common.convert_robJ
{ "avatar_url": "https://avatars.githubusercontent.com/u/5233801?v=4", "events_url": "https://api.github.com/users/zhangyi-hu/events{/privacy}", "followers_url": "https://api.github.com/users/zhangyi-hu/followers", "following_url": "https://api.github.com/users/zhangyi-hu/following{/other_user}", "gists_url": "https://api.github.com/users/zhangyi-hu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zhangyi-hu", "id": 5233801, "login": "zhangyi-hu", "node_id": "MDQ6VXNlcjUyMzM4MDE=", "organizations_url": "https://api.github.com/users/zhangyi-hu/orgs", "received_events_url": "https://api.github.com/users/zhangyi-hu/received_events", "repos_url": "https://api.github.com/users/zhangyi-hu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zhangyi-hu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangyi-hu/subscriptions", "type": "User", "url": "https://api.github.com/users/zhangyi-hu" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": 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
2016-09-21T14:08:49Z
2017-01-16T20:17:43Z
2017-01-16T15:23:23Z
NONE
null
Currently pandas is the only well-known package supporting conversion from rpy2 object to dictionary. There is warning message for rpy ``` warnings.warn("The pandas.rpy module is deprecated and will be " "removed in a future version. We refer to external packages " "like rpy2. " "\nSee here for a guide on how to port your code to rpy2: " "http://pandas.pydata.org/pandas-docs/stable/r_interface.html", FutureWarning, stacklevel=2) ``` Since the user primarily use rpy2 with pandas dataframe inputs, I strongly recommend keep this conversion functionality publicly available after rpy is retired. We will be very grateful !!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14272/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14272/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14273
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14273/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14273/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14273/events
https://github.com/pandas-dev/pandas/issues/14273
178,396,420
MDU6SXNzdWUxNzgzOTY0MjA=
14,273
Consider extending hashtable-free indexing algorithms for large sorted indexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4", "events_url": "https://api.github.com/users/ssanderson/events{/privacy}", "followers_url": "https://api.github.com/users/ssanderson/followers", "following_url": "https://api.github.com/users/ssanderson/following{/other_user}", "gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ssanderson", "id": 1588357, "login": "ssanderson", "node_id": "MDQ6VXNlcjE1ODgzNTc=", "organizations_url": "https://api.github.com/users/ssanderson/orgs", "received_events_url": "https://api.github.com/users/ssanderson/received_events", "repos_url": "https://api.github.com/users/ssanderson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions", "type": "User", "url": "https://api.github.com/users/ssanderson" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
0
2016-09-21T16:22:32Z
2019-10-21T20:03:54Z
null
CONTRIBUTOR
null
See discussion in https://github.com/pydata/pandas/issues/14266. `IndexEngine.get_loc` currently does lookups without building a hash table for large indices, as does `DatetimeEngine.__contains__`. `get_indexer`, however, still always populates a table, as does `__contains__` on non-datetime indices.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14273/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14273/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14274
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14274/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14274/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14274/events
https://github.com/pandas-dev/pandas/issues/14274
178,446,319
MDU6SXNzdWUxNzg0NDYzMTk=
14,274
bug when filling missing values with transform?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8282510?v=4", "events_url": "https://api.github.com/users/randomgambit/events{/privacy}", "followers_url": "https://api.github.com/users/randomgambit/followers", "following_url": "https://api.github.com/users/randomgambit/following{/other_user}", "gists_url": "https://api.github.com/users/randomgambit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/randomgambit", "id": 8282510, "login": "randomgambit", "node_id": "MDQ6VXNlcjgyODI1MTA=", "organizations_url": "https://api.github.com/users/randomgambit/orgs", "received_events_url": "https://api.github.com/users/randomgambit/received_events", "repos_url": "https://api.github.com/users/randomgambit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/randomgambit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randomgambit/subscriptions", "type": "User", "url": "https://api.github.com/users/randomgambit" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "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": 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" }
16
2016-09-21T19:52:48Z
2021-10-31T02:29:17Z
2021-10-31T02:29:16Z
NONE
null
Hello there, Consider this ``` df = pd.DataFrame({'group' : ['A', 'A', 'A', 'B', 'B', 'B', 'B', 'B'], 'B' : [np.nan,np.nan,np.nan,-4,-2,5,8,7], 'C' : [-5,5,-20,0,np.nan,5,4,-4]}) df Out[13]: B C group 0 NaN -5.0 A 1 NaN 5.0 A 2 NaN -20.0 A 3 -4.0 0.0 B 4 -2.0 NaN B 5 5.0 5.0 B 6 8.0 4.0 B 7 7.0 -4.0 B ``` Now I want to **fill forward** the missing values in `C` for each group ``` df.groupby('group').C.fillna(method ='ffill') Out[11]: 0 -5.0 1 5.0 2 -20.0 3 0.0 4 0.0 5 5.0 6 4.0 7 -4.0 Name: C, dtype: float64 df.groupby('group').C.transform('ffill') Out[12]: 0 -5.0 1 -5.0 2 -5.0 3 5.0 4 5.0 5 5.0 6 5.0 7 5.0 dtype: float64 ``` the transform output is wrong. Is that expected? Pandas 18.1
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14274/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14274/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14275
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14275/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14275/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14275/events
https://github.com/pandas-dev/pandas/issues/14275
178,479,953
MDU6SXNzdWUxNzg0Nzk5NTM=
14,275
TST: 3.5 c-locale
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
1
2016-09-21T22:40:12Z
2016-10-03T08:52:29Z
2016-10-02T11:56:58Z
CONTRIBUTOR
null
https://travis-ci.org/pydata/pandas/jobs/161159736 xref #14114, #12337 ``` ====================================================================== ERROR: test_to_latex_filename (pandas.tests.formats.test_format.TestDataFrameFormatting) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/pydata/pandas/pandas/tests/formats/test_format.py", line 2825, in test_to_latex_filename df.to_latex(path) File "/home/travis/build/pydata/pandas/pandas/core/frame.py", line 1661, in to_latex encoding=encoding) File "/home/travis/build/pydata/pandas/pandas/formats/format.py", line 662, in to_latex latex_renderer.write_result(f) File "/home/travis/build/pydata/pandas/pandas/formats/format.py", line 906, in write_result buf.write(' & '.join(crow)) UnicodeEncodeError: 'ascii' codec can't encode character '\xdf' in position 7: ordinal not in range(128) ---------------------------------------------------------------------- Ran 10273 tests in 375.734s ``` cc @nbonnotte
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14275/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14275/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14276
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14276/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14276/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14276/events
https://github.com/pandas-dev/pandas/issues/14276
178,480,627
MDU6SXNzdWUxNzg0ODA2Mjc=
14,276
TST: 2.7-compat build
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
4
2016-09-21T22:44:42Z
2016-09-25T15:30:12Z
2016-09-25T15:30:11Z
CONTRIBUTOR
null
https://travis-ci.org/pydata/pandas/jobs/161159735 xref #14208 cc @llllllllll `np.full_like` must be newer, can you skip on older builds (this build is with 1.7.1)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14276/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14276/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14277
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14277/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14277/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14277/events
https://github.com/pandas-dev/pandas/pull/14277
178,499,455
MDExOlB1bGxSZXF1ZXN0ODYyNjc0MzI=
14,277
TST: remove usages of np.full_like for numpy<1.8.0 compat
{ "avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4", "events_url": "https://api.github.com/users/llllllllll/events{/privacy}", "followers_url": "https://api.github.com/users/llllllllll/followers", "following_url": "https://api.github.com/users/llllllllll/following{/other_user}", "gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/llllllllll", "id": 3064397, "login": "llllllllll", "node_id": "MDQ6VXNlcjMwNjQzOTc=", "organizations_url": "https://api.github.com/users/llllllllll/orgs", "received_events_url": "https://api.github.com/users/llllllllll/received_events", "repos_url": "https://api.github.com/users/llllllllll/repos", "site_admin": false, "starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions", "type": "User", "url": "https://api.github.com/users/llllllllll" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
2
2016-09-22T01:20:03Z
2016-09-22T10:02:14Z
2016-09-22T10:02:13Z
CONTRIBUTOR
null
- [x] closes ##14276 - [x] passes `git diff upstream/master | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14277/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14277/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14277.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14277", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14277.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14277" }
https://api.github.com/repos/pandas-dev/pandas/issues/14278
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14278/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14278/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14278/events
https://github.com/pandas-dev/pandas/issues/14278
178,551,708
MDU6SXNzdWUxNzg1NTE3MDg=
14,278
Inconsistent use of `_` to separate words in method names
{ "avatar_url": "https://avatars.githubusercontent.com/u/1579723?v=4", "events_url": "https://api.github.com/users/Anaphory/events{/privacy}", "followers_url": "https://api.github.com/users/Anaphory/followers", "following_url": "https://api.github.com/users/Anaphory/following{/other_user}", "gists_url": "https://api.github.com/users/Anaphory/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Anaphory", "id": 1579723, "login": "Anaphory", "node_id": "MDQ6VXNlcjE1Nzk3MjM=", "organizations_url": "https://api.github.com/users/Anaphory/orgs", "received_events_url": "https://api.github.com/users/Anaphory/received_events", "repos_url": "https://api.github.com/users/Anaphory/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Anaphory/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Anaphory/subscriptions", "type": "User", "url": "https://api.github.com/users/Anaphory" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "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
[]
null
1
2016-09-22T08:36:24Z
2020-05-07T03:45:38Z
null
NONE
null
Sometimes, method names contain underscores to separate words (`to_string`) and sometimes not (`tolist`). This catches me of regularly. Particulary annoying are the cases where the same prefix (eg. `to`) sometimes takes an underscore and sometimes not. Is this going to change for future major versions? Example: `dir(Index)` - Without underscore between words, but the compound is well-established: 'argmax', 'argmin', 'argsort', 'nbytes', 'ndim', 'nlevels', 'nunique', 'putmask' - Without underscore: 'astype', 'fillna', 'hasnans', 'isin', 'itemsize', 'searchsorted', 'sortlevel', 'tolist' - With underscore: 'drop_duplicates', 'get_duplicates', 'get_indexer', 'get_indexer_for', 'get_indexer_non_unique', 'get_level_values', 'get_loc', 'get_slice_bound', 'get_value', 'get_values', 'groupby', 'has_duplicates', 'holds_integer', 'inferred_type', 'is_all_dates', 'is_boolean', 'is_categorical', 'is_floating', 'is_integer', 'is_lexsorted_for_tuple', 'is_mixed', 'is_monotonic', 'is_monotonic_decreasing', 'is_monotonic_increasing', 'is_numeric', 'is_object', 'is_type_compatible', 'is_unique', 'memory_usage', 'set_names', 'set_value', 'slice_indexer', 'slice_locs', 'sort_values', 'sym_diff', 'symmetric_difference', 'to_datetime', 'to_native_types', 'to_series', 'value_counts'
{ "+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/14278/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14278/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14279
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14279/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14279/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14279/events
https://github.com/pandas-dev/pandas/issues/14279
178,569,704
MDU6SXNzdWUxNzg1Njk3MDQ=
14,279
DEPR: sortlevel
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-09-22T10:08:46Z
2017-01-11T08:02:34Z
2017-01-11T08:02:34Z
CONTRIBUTOR
null
when `.sort` and co were changed to be `.sort_values`, `sort_index`. IIRC this was changed to make the change less disruptive. This can be directly replaced by `sort_index`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14279/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14279/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14280
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14280/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14280/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14280/events
https://github.com/pandas-dev/pandas/issues/14280
178,603,410
MDU6SXNzdWUxNzg2MDM0MTA=
14,280
(feature request) timeout for pandas.io.json.read_json
{ "avatar_url": "https://avatars.githubusercontent.com/u/12915804?v=4", "events_url": "https://api.github.com/users/altsheets/events{/privacy}", "followers_url": "https://api.github.com/users/altsheets/followers", "following_url": "https://api.github.com/users/altsheets/following{/other_user}", "gists_url": "https://api.github.com/users/altsheets/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/altsheets", "id": 12915804, "login": "altsheets", "node_id": "MDQ6VXNlcjEyOTE1ODA0", "organizations_url": "https://api.github.com/users/altsheets/orgs", "received_events_url": "https://api.github.com/users/altsheets/received_events", "repos_url": "https://api.github.com/users/altsheets/repos", "site_admin": false, "starred_url": "https://api.github.com/users/altsheets/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/altsheets/subscriptions", "type": "User", "url": "https://api.github.com/users/altsheets" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" }, { "color": "e4a5f1", "default": false, "description": "Local or Cloud (AWS, GCS, etc.) IO Issues", "id": 49381477, "name": "IO Network", "node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network" } ]
closed
false
null
[]
null
4
2016-09-22T12:59:59Z
2019-02-08T05:00:49Z
2019-02-08T05:00:49Z
NONE
null
Please allow to set a `timeout` in (all) your internet requests. We have just identified a halting problem in a repeating long runner when using `read_json()`. Example: ``` pandas.io.json.read_json(url, timeout=10.0) ``` My current workaround is to temporarily set `socket.setdefaulttimeout(10.0)` globally (default is `None`!). Which works, but if your read_json had already allowed to set it locally, I would have probably realized much earlier. Thanks a lot for considering this. Thanks for pandas, an amazing tool.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14280/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14280/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14281
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14281/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14281/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14281/events
https://github.com/pandas-dev/pandas/issues/14281
178,629,230
MDU6SXNzdWUxNzg2MjkyMzA=
14,281
Problem using argsort in DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/6831549?v=4", "events_url": "https://api.github.com/users/harikongu/events{/privacy}", "followers_url": "https://api.github.com/users/harikongu/followers", "following_url": "https://api.github.com/users/harikongu/following{/other_user}", "gists_url": "https://api.github.com/users/harikongu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/harikongu", "id": 6831549, "login": "harikongu", "node_id": "MDQ6VXNlcjY4MzE1NDk=", "organizations_url": "https://api.github.com/users/harikongu/orgs", "received_events_url": "https://api.github.com/users/harikongu/received_events", "repos_url": "https://api.github.com/users/harikongu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/harikongu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/harikongu/subscriptions", "type": "User", "url": "https://api.github.com/users/harikongu" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-09-22T14:41:44Z
2016-09-22T19:11:10Z
2016-09-22T19:11:10Z
NONE
null
``` In [90]: df Out[90]: A B C D E 0 0.444939 0.407554 0.460148 0.465239 0.462691 1 0.016545 0.850445 0.817744 0.777962 0.757983 2 0.934829 0.831104 0.879891 0.926879 0.721535 3 0.117642 0.145906 0.199844 0.437564 0.100702 In [91]: df2 = df.apply(lambda row: df.columns[np.argsort(row)], axis=1) In [92]: df2 Out[92]: ``` #### Output ``` A B C D E 0 B A C E D 1 A E D C B 2 E B C D A 3 E A B C D ``` #### Expected Output ``` 1 2 3 4 5 0 B A C E D 1 A E D C B 2 E B C D A 3 B C D E A ``` Last row of the dataframe has different values. But rest of the rows has same value as expected. [http://stackoverflow.com/questions/39605512/twist-dataframe-by-rank/39610093#39610093](url)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14281/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14281/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14282
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14282/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14282/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14282/events
https://github.com/pandas-dev/pandas/issues/14282
178,674,951
MDU6SXNzdWUxNzg2NzQ5NTE=
14,282
Is there a way to append dataframes together more memory-wised efficient?
{ "avatar_url": "https://avatars.githubusercontent.com/u/944507?v=4", "events_url": "https://api.github.com/users/xmseraph/events{/privacy}", "followers_url": "https://api.github.com/users/xmseraph/followers", "following_url": "https://api.github.com/users/xmseraph/following{/other_user}", "gists_url": "https://api.github.com/users/xmseraph/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xmseraph", "id": 944507, "login": "xmseraph", "node_id": "MDQ6VXNlcjk0NDUwNw==", "organizations_url": "https://api.github.com/users/xmseraph/orgs", "received_events_url": "https://api.github.com/users/xmseraph/received_events", "repos_url": "https://api.github.com/users/xmseraph/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xmseraph/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xmseraph/subscriptions", "type": "User", "url": "https://api.github.com/users/xmseraph" }
[ { "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": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-22T17:43:26Z
2016-09-26T17:57:06Z
2016-09-26T17:57:06Z
NONE
null
for example, i want to concat/append two dataframes into one and only use the final dataframe later on: ` import numpy as np import pandas as pd from pandas.util import testing as tm from multiprocessing.pool import ThreadPool num_rows = 100000 def make_df(num_rows=10000): ``` df = pd.DataFrame(np.random.rand(num_rows, 5), columns=list('abcde')) df['foo'] = 'foo' df['bar'] = 'bar' df['baz'] = 'baz' df['date'] = pd.date_range('20000101 09:00:00', periods=num_rows, freq='s') df['int'] = np.arange(num_rows, dtype='int64') return df ``` df1 = make_df(num_rows=num_rows) df2 = make_df(num_rows=num_rows) df = pd.concat([df1,df2]) ` during the last statement execution, the memory usage got doubled due to the copy assignment. is it possible that we have some method like df1.append_but_modify_lvalue(df2,ignore_index=True) , thus we don't need to copy assign return value
{ "+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/14282/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14282/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14283
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14283/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14283/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14283/events
https://github.com/pandas-dev/pandas/issues/14283
178,724,926
MDU6SXNzdWUxNzg3MjQ5MjY=
14,283
Series.to_csv quotechar missing or to_csv wrong behaviour
{ "avatar_url": "https://avatars.githubusercontent.com/u/5380486?v=4", "events_url": "https://api.github.com/users/JoaoAparicio/events{/privacy}", "followers_url": "https://api.github.com/users/JoaoAparicio/followers", "following_url": "https://api.github.com/users/JoaoAparicio/following{/other_user}", "gists_url": "https://api.github.com/users/JoaoAparicio/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JoaoAparicio", "id": 5380486, "login": "JoaoAparicio", "node_id": "MDQ6VXNlcjUzODA0ODY=", "organizations_url": "https://api.github.com/users/JoaoAparicio/orgs", "received_events_url": "https://api.github.com/users/JoaoAparicio/received_events", "repos_url": "https://api.github.com/users/JoaoAparicio/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JoaoAparicio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JoaoAparicio/subscriptions", "type": "User", "url": "https://api.github.com/users/JoaoAparicio" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
null
6
2016-09-22T21:26:49Z
2016-09-28T21:15:20Z
2016-09-28T21:15:20Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` import pandas as pd pd.Series(['x','x,x']).to_csv('my_file.txt', index=False) ``` The result of this code when you open the file `my_file.txt` is: ``` x "x,x" ``` #### Expected Output I think that either A) we decide that `Series.to_csv` doesn't quote and the expected output is ``` x x,x ``` or B) we decide that `Series.to_csv` quotes in the same way as `DataFrame.to_csv` in which case I would expect that `Series.to_csv` can take argument `quotechar`. #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Linux OS-release: 3.19.0-68-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.4 pip: 1.5.6 setuptools: 26.1.1 Cython: None numpy: 1.8.2 scipy: 0.14.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.2 pytz: 2015.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.4.2 openpyxl: 2.3.5 xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: 3.4.2 bs4: 4.3.2 html5lib: 0.999 httplib2: 0.9.2 apiclient: 1.5.3 sqlalchemy: 0.9.8 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.34.0 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14283/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14283/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14284
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14284/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14284/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14284/events
https://github.com/pandas-dev/pandas/pull/14284
178,763,147
MDExOlB1bGxSZXF1ZXN0ODY0NDIyMTM=
14,284
DOC: Expand reference doc for read_json
{ "avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4", "events_url": "https://api.github.com/users/cswarth/events{/privacy}", "followers_url": "https://api.github.com/users/cswarth/followers", "following_url": "https://api.github.com/users/cswarth/following{/other_user}", "gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cswarth", "id": 295428, "login": "cswarth", "node_id": "MDQ6VXNlcjI5NTQyOA==", "organizations_url": "https://api.github.com/users/cswarth/orgs", "received_events_url": "https://api.github.com/users/cswarth/received_events", "repos_url": "https://api.github.com/users/cswarth/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cswarth/subscriptions", "type": "User", "url": "https://api.github.com/users/cswarth" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
null
7
2016-09-23T01:41:01Z
2016-10-17T17:08:39Z
2016-10-17T17:08:39Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] expanded reference document for `pandas.read_json()`, especially concentrating on the `orient` parameter. Also added some example usage code and explicitly mention `to_json()` as a source of valid JSON strings. <div class="section" id="pandas-read-json"> <h1>pandas.read_json<a class="headerlink" href="#pandas-read-json" title="Permalink to this headline">¶</a></h1> <dl class="function"> <dt id="pandas.read_json"> <code class="descclassname">pandas.</code><code class="descname">read_json</code><span class="sig-paren">(</span><em>path_or_buf=None</em>, <em>orient=None</em>, <em>typ='frame'</em>, <em>dtype=True</em>, <em>convert_axes=True</em>, <em>convert_dates=True</em>, <em>keep_default_dates=True</em>, <em>numpy=False</em>, <em>precise_float=False</em>, <em>date_unit=None</em>, <em>encoding=None</em>, <em>lines=False</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/pydata/pandas/blob/master/pandas/io/json.py#L112-L272"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pandas.read_json" title="Permalink to this definition">¶</a></dt> <dd><p>Convert a JSON string to pandas object</p> <table class="docutils field-list" frame="void" rules="none"> <colgroup><col class="field-name"> <col class="field-body"> </colgroup><tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path_or_buf</strong> : a valid JSON string or file-like, default: None</p> <blockquote> <div><p>The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. For instance, a local file could be <code class="docutils literal"><span class="pre">file://localhost/path/to/table.json</span></code></p> </div></blockquote> <p><strong>orient</strong> : string, indicating the expected format of the JSON input.</p> <blockquote> <div><p>The set of allowed orients changes depending on the value of the <code class="docutils literal"><span class="pre">typ</span></code> parameter.</p> <ul class="simple"> <li>when <code class="docutils literal"><span class="pre">typ</span> <span class="pre">==</span> <span class="pre">'series'</span></code>,<ul> <li>allowed orients are <code class="docutils literal"><span class="pre">{'split','records','index'}</span></code></li> <li>default is <code class="docutils literal"><span class="pre">'index'</span></code></li> <li>The Series index must be unique for orient <code class="docutils literal"><span class="pre">'index'</span></code>.</li> </ul> </li> <li>when <code class="docutils literal"><span class="pre">typ</span> <span class="pre">==</span> <span class="pre">'frame'</span></code>,<ul> <li>allowed orients are <code class="docutils literal"><span class="pre">{'split','records','index',</span> <span class="pre">'columns','values'}</span></code></li> <li>default is <code class="docutils literal"><span class="pre">'columns'</span></code></li> <li>The DataFrame index must be unique for orients ‘index’ and ‘columns’.</li> <li>The DataFrame columns must be unique for orients ‘index’, ‘columns’, and ‘records’.</li> </ul> </li> </ul> <p>The value of <code class="docutils literal"><span class="pre">orient</span></code> specifies the expected format of the JSON string. The expected JSON formats are compatible with the strings produced by <code class="docutils literal"><span class="pre">to_json()</span></code> with a corresponding value of <code class="docutils literal"><span class="pre">orient</span></code>.</p> <blockquote> <div><ul class="simple"> <li><code class="docutils literal"><span class="pre">'split'</span></code> : dict like <code class="docutils literal"><span class="pre">{index</span> <span class="pre">-&gt;</span> <span class="pre">[index],</span> <span class="pre">columns</span> <span class="pre">-&gt;</span> <span class="pre">[columns],</span> <span class="pre">data</span> <span class="pre">-&gt;</span> <span class="pre">[values]}</span></code></li> <li><code class="docutils literal"><span class="pre">'records'</span></code> : list like <code class="docutils literal"><span class="pre">[{column</span> <span class="pre">-&gt;</span> <span class="pre">value},</span> <span class="pre">...</span> <span class="pre">,</span> <span class="pre">{column</span> <span class="pre">-&gt;</span> <span class="pre">value}]</span></code></li> <li><code class="docutils literal"><span class="pre">'index'</span></code> : dict like <code class="docutils literal"><span class="pre">{index</span> <span class="pre">-&gt;</span> <span class="pre">{column</span> <span class="pre">-&gt;</span> <span class="pre">value}}</span></code></li> <li><code class="docutils literal"><span class="pre">'columns'</span></code> : dict like <code class="docutils literal"><span class="pre">{column</span> <span class="pre">-&gt;</span> <span class="pre">{index</span> <span class="pre">-&gt;</span> <span class="pre">value}}</span></code></li> <li><code class="docutils literal"><span class="pre">'values'</span></code> : just the values array</li> </ul> </div></blockquote> </div></blockquote> <p><strong>typ</strong> : type of object to recover (series or frame), default ‘frame’</p> <p><strong>dtype</strong> : boolean or dict, default True</p> <blockquote> <div><p>If True, infer dtypes, if a dict of column to dtype, then use those, if False, then don’t infer dtypes at all, applies only to the data.</p> </div></blockquote> <p><strong>convert_axes</strong> : boolean, default True</p> <blockquote> <div><p>Try to convert the axes to the proper dtypes.</p> </div></blockquote> <p><strong>convert_dates</strong> : boolean, default True</p> <blockquote> <div><p>List of columns to parse for dates; If True, then try to parse datelike columns default is True; a column label is datelike if</p> <ul class="simple"> <li>it ends with <code class="docutils literal"><span class="pre">'_at'</span></code>,</li> <li>it ends with <code class="docutils literal"><span class="pre">'_time'</span></code>,</li> <li>it begins with <code class="docutils literal"><span class="pre">'timestamp'</span></code>,</li> <li>it is <code class="docutils literal"><span class="pre">'modified'</span></code>, or</li> <li>it is <code class="docutils literal"><span class="pre">'date'</span></code></li> </ul> </div></blockquote> <p><strong>keep_default_dates</strong> : boolean, default True</p> <blockquote> <div><p>If parsing dates, then parse the default datelike columns</p> </div></blockquote> <p><strong>numpy</strong> : boolean, default False</p> <blockquote> <div><p>Direct decoding to numpy arrays. Supports numeric data only, but non-numeric column and index labels are supported. Note also that the JSON ordering MUST be the same for each term if numpy=True.</p> </div></blockquote> <p><strong>precise_float</strong> : boolean, default False</p> <blockquote> <div><p>Set to enable usage of higher precision (strtod) function when decoding string to double values. Default (False) is to use fast but less precise builtin functionality</p> </div></blockquote> <p><strong>date_unit</strong> : string, default None</p> <blockquote> <div><p>The timestamp unit to detect if converting dates. The default behaviour is to try and detect the correct precision, but if this is not desired then pass one of ‘s’, ‘ms’, ‘us’ or ‘ns’ to force parsing only seconds, milliseconds, microseconds or nanoseconds respectively.</p> </div></blockquote> <p><strong>lines</strong> : boolean, default False</p> <blockquote> <div><p>Read the file as a json object per line.</p> <div class="versionadded"> <p><span class="versionmodified">New in version 0.19.0.</span></p> </div> </div></blockquote> <p><strong>encoding</strong> : str, default is ‘utf-8’</p> <blockquote> <div><p>The encoding to use to decode py3 bytes.</p> <div class="versionadded"> <p><span class="versionmodified">New in version 0.19.0.</span></p> </div> </div></blockquote> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><strong>result</strong> : Series or DataFrame, depending on the value of <code class="docutils literal"><span class="pre">typ</span></code>.</p> </td> </tr> </tbody> </table> <p class="rubric">Examples</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">([[</span><span class="s1">'a'</span><span class="p">,</span> <span class="s1">'b'</span><span class="p">],</span> <span class="p">[</span><span class="s1">'c'</span><span class="p">,</span> <span class="s1">'d'</span><span class="p">]],</span> <span class="go"> index=['row 1', 'row 2'],</span> <span class="go"> columns=['col 1', 'col 2'])</span> <span class="gp">&gt;&gt;&gt; </span><span class="nb">print</span> <span class="n">df</span> <span class="go"> col 1 col 2</span> <span class="go">row 1 a b</span> <span class="go">row 2 c d</span> <span class="gp">&gt;&gt;&gt; </span><span class="k">for</span> <span class="n">orient</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">'split'</span><span class="p">,</span> <span class="s1">'records'</span><span class="p">,</span> <span class="s1">'index'</span><span class="p">]:</span> <span class="go"> str = df.to_json(orient=orient)</span> <span class="go"> print "'{}': '{}'".format(orient, str)</span> <span class="go"> pd.read_json(str, orient=orient)</span> <span class="go">'split':</span> <span class="go">'{"columns":["col 1","col 2"],"index":["row 1","row 2"],"data":[["a","b"],</span> <span class="go">["c","d"]]}'</span> <span class="go">'records':</span> <span class="go">'[{"col 1":"a","col 2":"b"},{"col 1":"c","col 2":"d"}]'</span> <span class="go">'index':</span> <span class="go">'{"row 1":{"col 1":"a","col 2":"b"},"row 2":{"col 1":"c","col 2":"d"}}'</span> </pre></div> </div> </dd></dl> </div>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14284/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14284/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14284.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14284", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14284.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14284" }
https://api.github.com/repos/pandas-dev/pandas/issues/14285
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14285/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14285/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14285/events
https://github.com/pandas-dev/pandas/issues/14285
178,797,807
MDU6SXNzdWUxNzg3OTc4MDc=
14,285
Support reading random rows in `read_csv`
{ "avatar_url": "https://avatars.githubusercontent.com/u/11241531?v=4", "events_url": "https://api.github.com/users/seven7e/events{/privacy}", "followers_url": "https://api.github.com/users/seven7e/followers", "following_url": "https://api.github.com/users/seven7e/following{/other_user}", "gists_url": "https://api.github.com/users/seven7e/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seven7e", "id": 11241531, "login": "seven7e", "node_id": "MDQ6VXNlcjExMjQxNTMx", "organizations_url": "https://api.github.com/users/seven7e/orgs", "received_events_url": "https://api.github.com/users/seven7e/received_events", "repos_url": "https://api.github.com/users/seven7e/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seven7e/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seven7e/subscriptions", "type": "User", "url": "https://api.github.com/users/seven7e" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-23T06:45:37Z
2016-09-23T12:02:15Z
2016-09-23T12:02:15Z
NONE
null
It is very common to read random rows in a large csv file, typically for testing with a small dataset, or fit the limit of memory. The parameter `nrows` is used for read the first n lines, but I didn't find any feature to read random lines. Such parameter might be named `keeprows` (opposite to `skiprows`), which supports: - int, e.g. `keeprows=100` means keep 100 random lines (uniformly) - float in (0, 1), e.g. `keeprows=0.05` means keep 5% of total lines - list of int(or iterable), e.g. `keeprows=[1, 3, 8]` mean to keep line 1, 3, and 8
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14285/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14285/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14286
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14286/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14286/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14286/events
https://github.com/pandas-dev/pandas/issues/14286
178,851,656
MDU6SXNzdWUxNzg4NTE2NTY=
14,286
BUG: column formatting with non-standard objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/1336287?v=4", "events_url": "https://api.github.com/users/languitar/events{/privacy}", "followers_url": "https://api.github.com/users/languitar/followers", "following_url": "https://api.github.com/users/languitar/following{/other_user}", "gists_url": "https://api.github.com/users/languitar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/languitar", "id": 1336287, "login": "languitar", "node_id": "MDQ6VXNlcjEzMzYyODc=", "organizations_url": "https://api.github.com/users/languitar/orgs", "received_events_url": "https://api.github.com/users/languitar/received_events", "repos_url": "https://api.github.com/users/languitar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/languitar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/languitar/subscriptions", "type": "User", "url": "https://api.github.com/users/languitar" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
6
2016-09-23T11:21:05Z
2020-01-20T07:47:42Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ``` frame = pd.DataFrame({('test', 'it'): [42], ('yet', 'again'): [43], ('and', 'more'): [44]}) frame.groupby([('and', 'more'), ('test', 'it')]).mean().unstack() ``` results in: ``` TypeError Traceback (most recent call last) /homes/jwienke/.local/lib/python3.4/site-packages/IPython/core/formatters.py in __call__(self, obj) 670 type_pprinters=self.type_printers, 671 deferred_pprinters=self.deferred_printers) --> 672 printer.pretty(obj) 673 printer.flush() 674 return stream.getvalue() /homes/jwienke/.local/lib/python3.4/site-packages/IPython/lib/pretty.py in pretty(self, obj) 381 if callable(meth): 382 return meth(obj, self, cycle) --> 383 return _default_pprint(obj, self, cycle) 384 finally: 385 self.end_group() /homes/jwienke/.local/lib/python3.4/site-packages/IPython/lib/pretty.py in _default_pprint(obj, p, cycle) 501 if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs: 502 # A user-provided repr. Find newlines and replace them with p.break_() --> 503 _repr_pprint(obj, p, cycle) 504 return 505 p.begin_group(1, '<') /homes/jwienke/.local/lib/python3.4/site-packages/IPython/lib/pretty.py in _repr_pprint(obj, p, cycle) 699 """A pprint that just redirects to the normal repr function.""" 700 # Find newlines and replace them with p.break_() --> 701 output = repr(obj) 702 for idx,output_line in enumerate(output.splitlines()): 703 if idx: /usr/lib/python3/dist-packages/pandas/core/base.py in __repr__(self) 53 Yields Bytestring in Py2, Unicode String in py3. 54 """ ---> 55 return str(self) 56 57 /usr/lib/python3/dist-packages/pandas/core/base.py in __str__(self) 32 33 if compat.PY3: ---> 34 return self.__unicode__() 35 return self.__bytes__() 36 /usr/lib/python3/dist-packages/pandas/core/frame.py in __unicode__(self) 458 width = None 459 self.to_string(buf=buf, max_rows=max_rows, max_cols=max_cols, --> 460 line_width=width, show_dimensions=show_dimensions) 461 462 return buf.getvalue() /usr/lib/python3/dist-packages/pandas/core/frame.py in to_string(self, buf, columns, col_space, colSpace, header, index, na_rep, formatters, float_format, sparsify, nanRep, index_names, justify, force_unicode, line_width, max_rows, max_cols, show_dimensions) 1297 max_cols=max_cols, 1298 show_dimensions=show_dimensions) -> 1299 formatter.to_string() 1300 1301 if buf is None: /usr/lib/python3/dist-packages/pandas/core/format.py in to_string(self, force_unicode) 378 text = info_line 379 else: --> 380 strcols = self._to_str_columns() 381 if self.line_width is None: 382 text = adjoin(1, *strcols) /usr/lib/python3/dist-packages/pandas/core/format.py in _to_str_columns(self) 310 311 # may include levels names also --> 312 str_index = self._get_formatted_index() 313 str_columns = self._get_formatted_column_labels() 314 /usr/lib/python3/dist-packages/pandas/core/format.py in _get_formatted_index(self) 589 # empty space for columns 590 if show_col_names: --> 591 col_header = ['%s' % x for x in self._get_column_name_list()] 592 else: 593 col_header = [''] * columns.nlevels /usr/lib/python3/dist-packages/pandas/core/format.py in <listcomp>(.0) 589 # empty space for columns 590 if show_col_names: --> 591 col_header = ['%s' % x for x in self._get_column_name_list()] 592 else: 593 col_header = [''] * columns.nlevels TypeError: not all arguments converted during string formatting ``` #### Expected Output No exception, just and unstacked data frame where names are somehow generated. #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 3.18.1-tf1-ll machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.13.1 Cython: None numpy: 1.8.2 scipy: 0.13.3 statsmodels: None IPython: 5.1.0 sphinx: None patsy: None scikits.timeseries: None dateutil: 2.0 pytz: 2012c bottleneck: None tables: None numexpr: None matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None sqlalchemy: None lxml: None bs4: None html5lib: 0.999 bq: None apiclient: 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/14286/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14286/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14287
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14287/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14287/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14287/events
https://github.com/pandas-dev/pandas/issues/14287
178,860,073
MDU6SXNzdWUxNzg4NjAwNzM=
14,287
TestTimedeltaIndexOps
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[]
closed
false
null
[]
null
1
2016-09-23T12:07:06Z
2016-09-23T12:07:24Z
2016-09-23T12:07:11Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible #### Expected Output #### output of `pd.show_versions()`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14287/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14287/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14288
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14288/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14288/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14288/events
https://github.com/pandas-dev/pandas/issues/14288
178,861,025
MDU6SXNzdWUxNzg4NjEwMjU=
14,288
multiple tests errors and failures while building 0.18.1+git25-ga7469cf on i386 (ok on amd64)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-23T12:12:08Z
2016-09-23T12:23:05Z
2016-09-23T12:22:24Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ``` shell % grep -2 '^\(FAIL\|ERROR\|[^ ]*Error:\)' pandas_0.18.1+git25-ga7469cf-1~nd90+1_i386.build ====================================================================== ERROR: test_groupby (pandas.tests.test_categorical.TestCategoricalAsBlock) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/groupby.py", line 4433, in _groupby_indices counts = np.bincount(codes[mask], minlength=values.categories.size) TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe' ====================================================================== ERROR: test_get_group_empty_bins (pandas.tests.test_groupby.TestGroupBy) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/groupby.py", line 4433, in _groupby_indices counts = np.bincount(codes[mask], minlength=values.categories.size) TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe' ====================================================================== FAIL: test_nat (pandas.tseries.tests.test_base.TestDatetimeIndexOps) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different Attribute "dtype" are different -- ====================================================================== FAIL: test_nat (pandas.tseries.tests.test_base.TestPeriodIndexOps) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different Attribute "dtype" are different -- ====================================================================== FAIL: test_nat (pandas.tseries.tests.test_base.TestTimedeltaIndexOps) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different Attribute "dtype" are different -- Ran 10942 tests in 1071.084s FAILED (SKIP=284, errors=2, failures=3) True WHAT THE ``` #### output of `pd.show_versions()` all the versions and more info is in the full build log: http://neuro.debian.net/_files/_buildlogs/pandas/0.18.1+git25-ga7469cf/pandas_0.18.1+git25-ga7469cf-1_amd64.build but altogether versions are close/the same as in https://github.com/pydata/pandas/issues/14269#issue-178334362
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14288/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14288/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14289
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14289/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14289/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14289/events
https://github.com/pandas-dev/pandas/issues/14289
178,861,759
MDU6SXNzdWUxNzg4NjE3NTk=
14,289
test_panel4d: on ubuntu 14.04 (amd64 only) -- AssertionError: Did not see expected warning of class 'FutureWarning'
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
null
2
2016-09-23T12:16:16Z
2019-03-10T16:27:41Z
2019-03-10T16:27:41Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ``` % grep -2 '^\(FAIL\|ERROR\|[^ ]*Error:\)' pandas_0.18.1+git25-ga7469cf-1~nd14.04+1_amd64.build | head -20 ====================================================================== FAIL: test_table_mixed_dtypes (pandas.io.tests.test_pytables.TestHDFStore) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 2536, in assert_produces_warning % expected_warning.__name__) AssertionError: Did not see expected warning of class 'FutureWarning'. ====================================================================== FAIL: test_panel4d_concat (pandas.tools.tests.test_concat.TestConcatenate) ---------------------------------------------------------------------- Traceback (most recent call last): -- File "/build/pandas-0.18.1+git25-ga7469cf/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 2536, in assert_produces_warning % expected_warning.__name__) AssertionError: Did not see expected warning of class 'FutureWarning'. ====================================================================== ``` full buildlog with all the versions etc at http://neuro.debian.net/_files/_buildlogs/pandas/0.18.1+git25-ga7469cf/pandas_0.18.1+git25-ga7469cf-1~nd14.04+1_amd64.build
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14289/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14289/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14290
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14290/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14290/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14290/events
https://github.com/pandas-dev/pandas/pull/14290
178,875,860
MDExOlB1bGxSZXF1ZXN0ODY1MTEzODU=
14,290
BUG: set_levels set illegal levels.
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[]
closed
false
null
[]
null
0
2016-09-23T13:20:23Z
2016-09-23T13:37:31Z
2016-09-23T13:37:31Z
CONTRIBUTOR
null
- [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry `MultiIndex.set_levels`, when passed in illegal level values, raises an error. When `inplace=True`, though, the illegal level values are still accepted. This commit fixes that behavior by checking that the proposed level values are legal before setting them. Duplicate of https://github.com/pydata/pandas/pull/14236, which kept failing the build with Qt errors. This is a retry with a fresh Travis build. Assuming it passes, I'll close https://github.com/pydata/pandas/pull/14236 in favor of this PR.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14290/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14290/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14290.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14290", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14290.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14290" }
https://api.github.com/repos/pandas-dev/pandas/issues/14291
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14291/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14291/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14291/events
https://github.com/pandas-dev/pandas/issues/14291
178,886,132
MDU6SXNzdWUxNzg4ODYxMzI=
14,291
BUG: DataFrame.insert with allow_duplicates=True fails when already duplicates present
{ "avatar_url": "https://avatars.githubusercontent.com/u/15201622?v=4", "events_url": "https://api.github.com/users/mbochk/events{/privacy}", "followers_url": "https://api.github.com/users/mbochk/followers", "following_url": "https://api.github.com/users/mbochk/following{/other_user}", "gists_url": "https://api.github.com/users/mbochk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mbochk", "id": 15201622, "login": "mbochk", "node_id": "MDQ6VXNlcjE1MjAxNjIy", "organizations_url": "https://api.github.com/users/mbochk/orgs", "received_events_url": "https://api.github.com/users/mbochk/received_events", "repos_url": "https://api.github.com/users/mbochk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mbochk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mbochk/subscriptions", "type": "User", "url": "https://api.github.com/users/mbochk" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
3
2016-09-23T14:04:17Z
2016-10-24T22:51:29Z
2016-10-24T22:51:28Z
NONE
null
upon DataFrame.insert option allow_duplicates works, but only only once. When i have 2 columns with same name, additon of third throws > ValueError: Wrong number of items passed 2, placement implies 1 #### Code Sample, a copy-pastable example if possible ``` a = pd.DataFrame() a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True) a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True) a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True) ``` #### Expected Output zxc qwe qwe 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 #### output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: ru_RU pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.4 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: 0.7.6.None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None <\details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14291/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14291/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14292
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14292/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14292/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14292/events
https://github.com/pandas-dev/pandas/pull/14292
178,958,587
MDExOlB1bGxSZXF1ZXN0ODY1NzAwNzI=
14,292
BUG: Fix concat key name
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
4
2016-09-23T19:44:46Z
2016-10-09T17:38:30Z
2016-10-09T17:38:05Z
CONTRIBUTOR
null
- [x] closes #14252 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Fixes a bug where `pd.concat` didn't propagate the names of keys used to create a hierarchical 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/14292/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14292/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14292.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14292", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14292.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14292" }
https://api.github.com/repos/pandas-dev/pandas/issues/14293
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14293/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14293/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14293/events
https://github.com/pandas-dev/pandas/issues/14293
178,996,443
MDU6SXNzdWUxNzg5OTY0NDM=
14,293
Performance of pandas.algos.groupby_int64
{ "avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4", "events_url": "https://api.github.com/users/mrocklin/events{/privacy}", "followers_url": "https://api.github.com/users/mrocklin/followers", "following_url": "https://api.github.com/users/mrocklin/following{/other_user}", "gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mrocklin", "id": 306380, "login": "mrocklin", "node_id": "MDQ6VXNlcjMwNjM4MA==", "organizations_url": "https://api.github.com/users/mrocklin/orgs", "received_events_url": "https://api.github.com/users/mrocklin/received_events", "repos_url": "https://api.github.com/users/mrocklin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions", "type": "User", "url": "https://api.github.com/users/mrocklin" }
[ { "color": "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": "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" }
11
2016-09-23T23:55:38Z
2016-09-27T22:10:32Z
2016-09-27T22:10:32Z
CONTRIBUTOR
null
For dask.dataframe shuffle operations (groupby.apply, merge), when running with multiple threads per process, I sometimes find my computations dominated by `pandas.algos.groupby_int64`. Looking at the source code for this it looks like it's using dynamic pure python objects from Cython. I'm curious if there are ways to accelerate this function, particularly in multi-threaded situations (releasing the GIL). One solution that comes to mind would be to do a single pass over `labels`, pre-compute the length of each `members` list in `results` and then pre-allocate these as arrays. This might allow better GIL-releasing behavior. Thoughts?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14293/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14293/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14294
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14294/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14294/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14294/events
https://github.com/pandas-dev/pandas/pull/14294
179,031,329
MDExOlB1bGxSZXF1ZXN0ODY2MTg2OTM=
14,294
PERF: faster grouping
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
8
2016-09-24T13:53:05Z
2016-09-27T22:10:32Z
2016-09-27T22:10:32Z
CONTRIBUTOR
null
closes #14293
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14294/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14294/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14294.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14294", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14294.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14294" }
https://api.github.com/repos/pandas-dev/pandas/issues/14295
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14295/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14295/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14295/events
https://github.com/pandas-dev/pandas/pull/14295
179,043,813
MDExOlB1bGxSZXF1ZXN0ODY2MjU4NTE=
14,295
API: add dtype= option to python parser
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
8
2016-09-24T18:12:19Z
2016-11-26T09:14:54Z
2016-11-26T09:12:22Z
CONTRIBUTOR
null
- [x] part of #12686 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Ultimately I'm working towards #8212 (types in excel parser), which should be pretty straightforward after this. Right now the tests are moved from `c_parser_only.py`, may need to add some more cc @gfyoung
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14295/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14295/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14295.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14295", "merged_at": "2016-11-26T09:12:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14295.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14295" }
https://api.github.com/repos/pandas-dev/pandas/issues/14296
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14296/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14296/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14296/events
https://github.com/pandas-dev/pandas/issues/14296
179,051,952
MDU6SXNzdWUxNzkwNTE5NTI=
14,296
I would like to write a hardcore groupby tutorial
{ "avatar_url": "https://avatars.githubusercontent.com/u/8282510?v=4", "events_url": "https://api.github.com/users/randomgambit/events{/privacy}", "followers_url": "https://api.github.com/users/randomgambit/followers", "following_url": "https://api.github.com/users/randomgambit/following{/other_user}", "gists_url": "https://api.github.com/users/randomgambit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/randomgambit", "id": 8282510, "login": "randomgambit", "node_id": "MDQ6VXNlcjgyODI1MTA=", "organizations_url": "https://api.github.com/users/randomgambit/orgs", "received_events_url": "https://api.github.com/users/randomgambit/received_events", "repos_url": "https://api.github.com/users/randomgambit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/randomgambit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randomgambit/subscriptions", "type": "User", "url": "https://api.github.com/users/randomgambit" }
[]
closed
false
null
[]
null
4
2016-09-24T21:08:29Z
2016-09-25T12:28:12Z
2016-09-25T00:32:29Z
NONE
null
Hello After some thoughts, I think I would be useful for everybody if I wrote some nasty, hardcore groupby tutorial with all the crazy data manipulations I use in my code. I work in a large company, have a phd in finance/economics and many times I pushed Pandas to the limits with 80GB datasets and others. To do the best tutorial possible, I would be nice if someone from the community could review my tutorial and possibly improve it a bit. @TomAugspurger would you like to have a look? Objective: making pandas better! Thanks guys!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14296/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14296/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14297
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14297/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14297/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14297/events
https://github.com/pandas-dev/pandas/issues/14297
179,085,138
MDU6SXNzdWUxNzkwODUxMzg=
14,297
resample interpolate gives unexpected results in 0.18.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/6409820?v=4", "events_url": "https://api.github.com/users/dershow/events{/privacy}", "followers_url": "https://api.github.com/users/dershow/followers", "following_url": "https://api.github.com/users/dershow/following{/other_user}", "gists_url": "https://api.github.com/users/dershow/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dershow", "id": 6409820, "login": "dershow", "node_id": "MDQ6VXNlcjY0MDk4MjA=", "organizations_url": "https://api.github.com/users/dershow/orgs", "received_events_url": "https://api.github.com/users/dershow/received_events", "repos_url": "https://api.github.com/users/dershow/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dershow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dershow/subscriptions", "type": "User", "url": "https://api.github.com/users/dershow" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
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" }
8
2016-09-25T13:03:43Z
2021-05-01T23:51:59Z
null
NONE
null
#### A small, complete example of the issue ``` python a = pd.Series([1.,3.,4.,3.,5.,6.,7.,8.], ['2016-05-25 00:00:35','2016-05-25 00:00:50','2016-05-25 00:01:05','2016-05-25 00:01:35','2016-05-25 00:02:05','2016-05-25 00:03:00','2016-05-25 00:04:00','2016-05-25 00:06:00']) In [79]: a Out[79]: 2016-05-25 00:00:35 1.0 2016-05-25 00:00:50 3.0 2016-05-25 00:01:05 4.0 2016-05-25 00:01:35 3.0 2016-05-25 00:02:05 5.0 2016-05-25 00:03:00 6.0 2016-05-25 00:04:00 7.0 2016-05-25 00:06:00 8.0 dtype: float64 In [80]: a.index = pd.to_datetime(a.index) In [81]: a.resample('15S', base=5).interpolate() ``` #### Expected Output I expect that I would get valid values, based on the input at 2:05 and later. It appears that the data data after 2:05 is ignored. #### Output of `pd.show_versions()` In [146]: pd.show_versions() ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.2 openpyxl: 2.4.0 xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: 3.6.0 bs4: 4.4.1 html5lib: 1.0b3 httplib2: 0.9.2 apiclient: 1.5.0 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None <details> # Paste the output here Out[81]: 2016-05-25 00:00:35 1.0 2016-05-25 00:00:50 3.0 2016-05-25 00:01:05 4.0 2016-05-25 00:01:20 3.5 2016-05-25 00:01:35 3.0 2016-05-25 00:01:50 4.0 2016-05-25 00:02:05 5.0 2016-05-25 00:02:20 5.0 2016-05-25 00:02:35 5.0 2016-05-25 00:02:50 5.0 2016-05-25 00:03:05 5.0 2016-05-25 00:03:20 5.0 2016-05-25 00:03:35 5.0 2016-05-25 00:03:50 5.0 2016-05-25 00:04:05 5.0 2016-05-25 00:04:20 5.0 2016-05-25 00:04:35 5.0 2016-05-25 00:04:50 5.0 2016-05-25 00:05:05 5.0 2016-05-25 00:05:20 5.0 2016-05-25 00:05:35 5.0 2016-05-25 00:05:50 5.0 Freq: 15S, dtype: float64 I was told that this error does not show up in 0.18.0, but I have not confirmed that. This comes from my attempts to interpolate some irregular data as shown in this question: https://stackoverflow.com/questions/39599192/fill-in-time-data-in-pandas </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14297/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14297/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14298
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14298/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14298/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14298/events
https://github.com/pandas-dev/pandas/issues/14298
179,085,721
MDU6SXNzdWUxNzkwODU3MjE=
14,298
.info() fails with CategoricalIndex in the columns
{ "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": "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
1
2016-09-25T13:16:59Z
2016-11-03T11:12:19Z
2016-11-03T11:12:19Z
CONTRIBUTOR
null
Just in the columns, the index doesn't cause any issues. This came up as the output of `pd.get_dummies` can have a CategoricalIndex in the columns. #### A small, complete example of the issue ``` python In [31]: idx = pd.CategoricalIndex(['a', 'b']) In [32]: df = pd.DataFrame(np.zeros((2, 2)), index=idx, columns=idx) In [33]: df.info() ``` ``` pytb --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-33-857958930b27> in <module>() ----> 1 df.info() /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/core/frame.py in info(self, verbose, buf, max_cols, memory_usage, null_counts) 1790 if 'object' in counts or is_object_dtype(self.index): 1791 size_qualifier = '+' -> 1792 mem_usage = self.memory_usage(index=True, deep=deep).sum() 1793 lines.append("memory usage: %s\n" % 1794 _sizeof_fmt(mem_usage, size_qualifier)) /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/core/frame.py in memory_usage(self, index, deep) 1827 if index: 1828 result = Series(self.index.memory_usage(deep=deep), -> 1829 index=['Index']).append(result) 1830 return result 1831 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/core/series.py in append(self, to_append, ignore_index, verify_integrity) 1593 to_concat = [self, to_append] 1594 return concat(to_concat, ignore_index=ignore_index, -> 1595 verify_integrity=verify_integrity) 1596 1597 def _binop(self, other, func, level=None, fill_value=None): /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/tools/merge.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy) 1323 keys=keys, levels=levels, names=names, 1324 verify_integrity=verify_integrity, -> 1325 copy=copy) 1326 return op.get_result() 1327 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/tools/merge.py in __init__(self, objs, axis, join, join_axes, keys, levels, names, ignore_index, verify_integrity, copy) 1462 self.copy = copy 1463 -> 1464 self.new_axes = self._get_new_axes() 1465 1466 def get_result(self): /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/tools/merge.py in _get_new_axes(self) 1550 new_axes[i] = ax 1551 -> 1552 new_axes[self.axis] = self._get_concat_axis() 1553 return new_axes 1554 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/tools/merge.py in _get_concat_axis(self) 1604 1605 if self.keys is None: -> 1606 concat_axis = _concat_indexes(indexes) 1607 else: 1608 concat_axis = _make_concat_multiindex(indexes, self.keys, /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/tools/merge.py in _concat_indexes(indexes) 1622 1623 def _concat_indexes(indexes): -> 1624 return indexes[0].append(indexes[1:]) 1625 1626 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/indexes/base.py in append(self, other) 1425 # if any of the to_concat is category 1426 from pandas.indexes.category import CategoricalIndex -> 1427 return CategoricalIndex._append_same_dtype(self, to_concat, name) 1428 1429 if len(typs) == 1: /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/indexes/category.py in _append_same_dtype(self, to_concat, name) 578 ValueError if other is not in the categories 579 """ --> 580 to_concat = [self._is_dtype_compat(c) for c in to_concat] 581 codes = np.concatenate([c.codes for c in to_concat]) 582 result = self._create_from_codes(codes, name=name) /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas-0.19.0rc1+21.ge596cbf-py3.5-macosx-10.11-x86_64.egg/pandas/indexes/category.py in <listcomp>(.0) 578 ValueError if other is not in the categories 579 """ --> 580 to_concat = [self._is_dtype_compat(c) for c in to_concat] 581 codes = np.concatenate([c.codes for c in to_concat]) 582 result = self._create_from_codes(codes, name=name) AttributeError: 'Index' object has no attribute '_is_dtype_compat' ``` #### Expected Output `df.info()` #### Output of `pd.show_versions()` <details> In [34]: pd.show_versions() ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0rc1+21.ge596cbf nose: 1.3.7 pip: 8.1.2 setuptools: 26.1.1 Cython: 0.25a0 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.8.0rc1 xarray: 0.7.2 IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: 1.4.1 bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.2 openpyxl: 2.3.5 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: None lxml: 3.4.4 bs4: 4.4.1 html5lib: 0.9999999 httplib2: 0.9.2 apiclient: 1.5.1 sqlalchemy: 1.0.12 pymysql: 0.7.6.None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.39.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14298/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14298/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14299
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14299/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14299/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14299/events
https://github.com/pandas-dev/pandas/issues/14299
179,147,243
MDU6SXNzdWUxNzkxNDcyNDM=
14,299
pandas.floor('H') does not work with DST
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-09-26T06:15:15Z
2018-07-29T07:31:46Z
2018-07-29T07:31:46Z
CONTRIBUTOR
null
Using floor on a DatetimeIndex that has a timezone with DST fails when converting the result back to the tz as there may be ambiguous time (see example below). ``` python # create 15' date range with Brussels tz idx = pandas.date_range("2016-01-01","2017-01-01",freq="15T", tz="Europe/Brussels") # transform the index to get rid of minutes idx_h = idx.floor("H") ``` #### Expected Output idx_h rounded to the hour #### Actual Output excepection raised when relocalizing the index after applying the rouding ``` python Traceback (most recent call last): File "...", line 118, in <module> idx_h = idx.floor("H") File "...\lib\site-packages\pandas\tseries\base.py", line 98, in floor return self._round(freq, np.floor) File "...\lib\site-packages\pandas\tseries\base.py", line 89, in _round result = result.tz_localize(self.tz)#, ambiguous=[d.dst() for d in self]) File "...\lib\site-packages\pandas\util\decorators.py", line 91, in wrapper return func(*args, **kwargs) File "...\lib\site-packages\pandas\tseries\index.py", line 1857, in tz_localize ambiguous=ambiguous) File "pandas\tslib.pyx", line 4087, in pandas.tslib.tz_localize_to_utc (pandas\tslib.c:69556) pytz.exceptions.AmbiguousTimeError: Cannot infer dst time from Timestamp('2016-10-30 02:00:00'), try using the 'ambiguous' argument ``` #### Possible solution The code to reconvert to local tz need to have 'ambiguous' defined and can use the original array of dst flags. Lines 87-89 in ...\Lib\site-packages\pandas\tseries\base.py ``` python # reconvert to local tz if getattr(self, 'tz', None) is not None: result = result.tz_localize(self.tz) ``` to be replaced by Lines 87-89 in ...\Lib\site-packages\pandas\tseries\base.py ``` python # reconvert to local tz if getattr(self, 'tz', None) is not None: result = result.tz_localize(self.tz, ambiguous=[d.dst() for d in self]) ``` Would it be also useful to have a DatetimeIndex.dst function to return a boolean array reuseable in tz_localize ? #### Output of `pd.show_versions()` <details> # Paste the output here ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.0 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14299/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14299/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14300
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14300/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14300/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14300/events
https://github.com/pandas-dev/pandas/issues/14300
179,189,750
MDU6SXNzdWUxNzkxODk3NTA=
14,300
BUG: DataFrame.align() should throw a ValueError when trying to align a DataFrame with a Series and specifying axis=1
{ "avatar_url": "https://avatars.githubusercontent.com/u/7723080?v=4", "events_url": "https://api.github.com/users/Khris777/events{/privacy}", "followers_url": "https://api.github.com/users/Khris777/followers", "following_url": "https://api.github.com/users/Khris777/following{/other_user}", "gists_url": "https://api.github.com/users/Khris777/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Khris777", "id": 7723080, "login": "Khris777", "node_id": "MDQ6VXNlcjc3MjMwODA=", "organizations_url": "https://api.github.com/users/Khris777/orgs", "received_events_url": "https://api.github.com/users/Khris777/received_events", "repos_url": "https://api.github.com/users/Khris777/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Khris777/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Khris777/subscriptions", "type": "User", "url": "https://api.github.com/users/Khris777" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
4
2016-09-26T10:16:34Z
2016-09-26T22:51:49Z
2016-09-26T22:51:30Z
NONE
null
#### A small, complete example of the issue ``` import pandas as pd import numpy as np N = 1000 L = np.random.randn(N) F = pd.DataFrame({'X':L}) S = pd.Series(L) X = F.align(S,axis=1) ``` This code should throw `ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'>` just like `S.align(S,axis=1)` would, instead it goes through and creates a huge NxN-sized dataframe filled with nothing but `NaN`. For bigger values of `N` this behaviour leads to `MemoryError`. #### Output of `pd.show_versions()` <details> python: 2.7.12.final.0 pandas: 0.18.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14300/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14300/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14301
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14301/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14301/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14301/events
https://github.com/pandas-dev/pandas/issues/14301
179,276,145
MDU6SXNzdWUxNzkyNzYxNDU=
14,301
Greedy date inference in read_csv leads to inconsistent data
{ "avatar_url": "https://avatars.githubusercontent.com/u/117818?v=4", "events_url": "https://api.github.com/users/njr0/events{/privacy}", "followers_url": "https://api.github.com/users/njr0/followers", "following_url": "https://api.github.com/users/njr0/following{/other_user}", "gists_url": "https://api.github.com/users/njr0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/njr0", "id": 117818, "login": "njr0", "node_id": "MDQ6VXNlcjExNzgxOA==", "organizations_url": "https://api.github.com/users/njr0/orgs", "received_events_url": "https://api.github.com/users/njr0/received_events", "repos_url": "https://api.github.com/users/njr0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/njr0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/njr0/subscriptions", "type": "User", "url": "https://api.github.com/users/njr0" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-09-26T16:30:41Z
2016-09-26T17:44:41Z
2016-09-26T17:44:22Z
NONE
null
#### A small, complete example of the issue ``` python import pandas as pd df = pd.read_csv('greedy.txt', parse_dates=['EuroDate']) print(df) ``` with "greedy.txt" as ``` EuroDate 10/9/2016 30/9/2016 ``` #### Expected Output ``` EuroDate 0 2016-09-10 1 2016-09-30 ``` #### Actual Output ``` EuroDate 0 2016-10-09 1 2016-09-30 ``` [greedy.txt](https://github.com/pydata/pandas/files/493576/greedy.txt) So `read_csv()` has interpreted the first line as a US-format date, then realised that the second line cannot be a US-formatted date, so switched to European format. But it has _not_ gone back and reevaluated the first line in light of its new information. So the resulting data is inconsistent, and pandas knows this. Obviously, I appreciate that - CSV files are a disaster - This code is _asking_ Pandas to infer the dates - Going back and re-evaluating previous data in light of new information is slow and annoying. - It won't always be possible to do anything except interpret a field as a string if there is inconsistent data. - Some datasets will include dates in multiple formats (e.g. if humans have entered them free-form) and in those cases is might just be useful for Pandas to take its best guess on a row-by-row basis. However, I contend that in this case the behaviour is _incorrect_ (because there is a consistent interpretation of the column as a date, which is in fact clear by the second record). Even if some people don't regard this as a bug, I contend that it is at the very least dangerous and likely to cause serious (and sometimes baffling) errors. In my view, it would be much better to go back and reinterpret the data according to the information now available or to fail. If even this is considered too much, at the very least Pandas should issue a prominent warning that it has interpreted different rows in the column using different date formats. #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.5.1.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 19.4 Cython: 0.24 numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14301/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14301/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14302
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14302/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14302/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14302/events
https://github.com/pandas-dev/pandas/issues/14302
179,286,356
MDU6SXNzdWUxNzkyODYzNTY=
14,302
Index.copy() ignores name/names arguments
{ "avatar_url": "https://avatars.githubusercontent.com/u/3009237?v=4", "events_url": "https://api.github.com/users/chazmo03/events{/privacy}", "followers_url": "https://api.github.com/users/chazmo03/followers", "following_url": "https://api.github.com/users/chazmo03/following{/other_user}", "gists_url": "https://api.github.com/users/chazmo03/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chazmo03", "id": 3009237, "login": "chazmo03", "node_id": "MDQ6VXNlcjMwMDkyMzc=", "organizations_url": "https://api.github.com/users/chazmo03/orgs", "received_events_url": "https://api.github.com/users/chazmo03/received_events", "repos_url": "https://api.github.com/users/chazmo03/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chazmo03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chazmo03/subscriptions", "type": "User", "url": "https://api.github.com/users/chazmo03" }
[ { "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": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
1
2016-09-26T17:16:14Z
2016-09-27T23:44:16Z
2016-09-27T23:44:16Z
NONE
null
Passing in a name or names arguments to Index.copy doesn't set the name on the resulting index. This fails to work as the docs indicate on both Index and MultiIndex. ``` python import pandas as pd index = pd.Index([1,2], name='MyName') print index.name cloned_index_1 = index.copy(name='NewName') print cloned_index_1.name cloned_index_2 = index.copy(names='NewName') print cloned_index_2.name cloned_index_3 = index.copy(names=['NewName']) print cloned_index_3.name multi_index = pd.Index([(1, 2), (3, 4)], names=['MyName1', 'MyName2']) print multi_index.names multi_index_1 = multi_index.copy(names=['NewName1', 'NewName2']) print multi_index_1.names ``` ``` MyName MyName MyName MyName [u'MyName1', u'MyName2'] [u'MyName1', u'MyName2'] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14302/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14302/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14303
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14303/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14303/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14303/events
https://github.com/pandas-dev/pandas/pull/14303
179,298,927
MDExOlB1bGxSZXF1ZXN0ODY3OTEzMDE=
14,303
BUG: Index.copy() honors 'name' parameter (#14302)
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
5
2016-09-26T18:11:42Z
2016-09-27T23:44:23Z
2016-09-27T23:44:16Z
CONTRIBUTOR
null
- [x] closes #14302 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14303/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14303/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14303.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14303", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14303.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14303" }
https://api.github.com/repos/pandas-dev/pandas/issues/14304
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14304/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14304/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14304/events
https://github.com/pandas-dev/pandas/issues/14304
179,396,813
MDU6SXNzdWUxNzkzOTY4MTM=
14,304
MultiIndex slicing with .loc returns wrong results
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-27T04:48:53Z
2016-09-27T10:49:41Z
2016-09-27T10:49:26Z
CONTRIBUTOR
null
#### A small, complete example of the issue ``` python import pandas idx = pandas.date_range("2012", "2016", freq="D") df = pandas.concat([ pandas.DataFrame(1, index=idx, columns=[ctry]) for ctry in ["BE", "FR", "SP"] ], axis=1).stack().to_frame() df.index = df.index.swaplevel(0, 1) df = df.sortlevel() df.info() print() df_ok = df.loc[pandas.IndexSlice[("SP", "FR"), "2013-01-01":"2014-01-01"], :] print() # here, the time indexation is not properly handled as dates < 2013-01-01 are kept df_not_ok=df.loc[pandas.IndexSlice[("SP", "BE", "FR"), "2013-01-01":"2014-01-01"], :] ``` #### Expected Output <class 'pandas.core.frame.DataFrame'> MultiIndex: 4386 entries, (BE, 2012-01-01 00:00:00) to (SP, 2016-01-01 00:00:00) Data columns (total 1 columns): 0 4386 non-null int64 dtypes: int64(1) memory usage: 51.4+ KB <class 'pandas.core.frame.DataFrame'> MultiIndex: 732 entries, (FR, 2013-01-01 00:00:00) to (SP, 2014-01-01 00:00:00) Data columns (total 1 columns): 0 732 non-null int64 dtypes: int64(1) memory usage: 8.6+ KB <class 'pandas.core.frame.DataFrame'> MultiIndex: 3290 entries, (BE, **2013**-01-01 00:00:00) to (SP, 2014-01-01 00:00:00) Data columns (total 1 columns): 0 **2196** non-null int64 dtypes: int64(1) memory usage: 38.6+ KB #### Actual output <class 'pandas.core.frame.DataFrame'> MultiIndex: 4386 entries, (BE, 2012-01-01 00:00:00) to (SP, 2016-01-01 00:00:00) Data columns (total 1 columns): 0 4386 non-null int64 dtypes: int64(1) memory usage: 51.4+ KB <class 'pandas.core.frame.DataFrame'> MultiIndex: 732 entries, (FR, 2013-01-01 00:00:00) to (SP, 2014-01-01 00:00:00) Data columns (total 1 columns): 0 732 non-null int64 dtypes: int64(1) memory usage: 8.6+ KB <class 'pandas.core.frame.DataFrame'> MultiIndex: 3290 entries, (BE, **2012**-01-01 00:00:00) to (SP, 2014-01-01 00:00:00) Data columns (total 1 columns): 0 **3290** non-null int64 dtypes: int64(1) memory usage: 38.6+ KB #### Output of `pd.show_versions()` <details> # Paste the output here INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.0 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14304/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14304/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14305
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14305/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14305/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14305/events
https://github.com/pandas-dev/pandas/issues/14305
179,523,957
MDU6SXNzdWUxNzk1MjM5NTc=
14,305
read_gbq precision lost for floats above 10^4
{ "avatar_url": "https://avatars.githubusercontent.com/u/12720209?v=4", "events_url": "https://api.github.com/users/tworec/events{/privacy}", "followers_url": "https://api.github.com/users/tworec/followers", "following_url": "https://api.github.com/users/tworec/following{/other_user}", "gists_url": "https://api.github.com/users/tworec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tworec", "id": 12720209, "login": "tworec", "node_id": "MDQ6VXNlcjEyNzIwMjA5", "organizations_url": "https://api.github.com/users/tworec/orgs", "received_events_url": "https://api.github.com/users/tworec/received_events", "repos_url": "https://api.github.com/users/tworec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tworec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tworec/subscriptions", "type": "User", "url": "https://api.github.com/users/tworec" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "0052cc", "default": false, "description": "pandas-gbq compatability", "id": 57351315, "name": "IO Google", "node_id": "MDU6TGFiZWw1NzM1MTMxNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
0
2016-09-27T15:17:47Z
2017-02-09T17:11:31Z
2017-02-09T17:11:31Z
NONE
null
`pandas.read_gbq` will silently cast float values over 10k to integeres causing precision lost #### example of the issue ``` python In[1]: import pandas as pd import numpy as np df=pd.read_gbq('''select * from (select pi(),9999.9,10000.1,200000.2), (select 2.72,9999.9999999,10000.1,300000.3)''', project_id='CHANGE-ME') ``` #### Actual Output ``` python In[2]: print(df) Out[2]: f0_ f1_ f2_ f3_ 0 3.141593 9999.9 10000 200000 1 2.720000 10000.0 10000 300000 In[3]: df.dtypes Out[3]: f0_ float64 f1_ float64 f2_ int64 f3_ int64 dtype: object ``` #### Expected Output ``` python In[2]: print(df) Out[2]: f0_ f1_ f2_ f3_ 0 3.141593 9999.9 10000.1 200000.2 1 2.720000 10000.0 10000.1 300000.3 In[3]: df.dtypes Out[3]: f0_ float64 f1_ float64 f2_ float64 f3_ float64 dtype: object ``` #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-36-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0rc1+33.g7dedbed nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: 1.4.6 patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: 2.4.0 xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: 3.6.4 bs4: 4.5.1 html5lib: 0.999999999 httplib2: 0.9.2 apiclient: 1.5.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14305/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14305/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14306
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14306/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14306/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14306/events
https://github.com/pandas-dev/pandas/issues/14306
179,537,927
MDU6SXNzdWUxNzk1Mzc5Mjc=
14,306
DatetimeIndex.append not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/2299446?v=4", "events_url": "https://api.github.com/users/httassadar/events{/privacy}", "followers_url": "https://api.github.com/users/httassadar/followers", "following_url": "https://api.github.com/users/httassadar/following{/other_user}", "gists_url": "https://api.github.com/users/httassadar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/httassadar", "id": 2299446, "login": "httassadar", "node_id": "MDQ6VXNlcjIyOTk0NDY=", "organizations_url": "https://api.github.com/users/httassadar/orgs", "received_events_url": "https://api.github.com/users/httassadar/received_events", "repos_url": "https://api.github.com/users/httassadar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/httassadar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/httassadar/subscriptions", "type": "User", "url": "https://api.github.com/users/httassadar" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-09-27T16:05:12Z
2016-09-27T16:47:04Z
2016-09-27T16:47:04Z
NONE
null
#### A small, complete example of the issue ``` python # Your code here xx = pd.to_datetime(['2000-01-01','2000-02-01']) xx.append(xx[0]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Anaconda\lib\site-packages\pandas\tseries\index.py", line 1058, in append return factory(to_concat) File "C:\Anaconda\lib\site-packages\pandas\tseries\index.py", line 2240, in <lambda> factory_func = lambda x: klass(concat(x), name=name, **kwargs) ValueError: all the input arrays must have same number of dimensions # insert works as expected xx.insert(0, xx[0]) DatetimeIndex(['2000-01-01', '2000-01-01', '2000-02-01'], dtype='datetime64[ns]', freq=None) ``` #### Expected Output append one item at the end of xx #### Output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 44 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: en_GB pandas: 0.18.1 nose: 1.3.7 pip: 8.1.0 setuptools: 0.6c11 Cython: 0.21 numpy: 1.10.1 scipy: 0.16.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.4.4 matplotlib: 1.4.3 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.7 lxml: 3.5.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.32.1 pandas_datareader: None <details> </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14306/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14306/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14307
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14307/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14307/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14307/events
https://github.com/pandas-dev/pandas/issues/14307
179,585,906
MDU6SXNzdWUxNzk1ODU5MDY=
14,307
“Already tz-aware” error when reading h5 file using python 3 (but not 2)
{ "avatar_url": "https://avatars.githubusercontent.com/u/4992803?v=4", "events_url": "https://api.github.com/users/jameskelleher/events{/privacy}", "followers_url": "https://api.github.com/users/jameskelleher/followers", "following_url": "https://api.github.com/users/jameskelleher/following{/other_user}", "gists_url": "https://api.github.com/users/jameskelleher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jameskelleher", "id": 4992803, "login": "jameskelleher", "node_id": "MDQ6VXNlcjQ5OTI4MDM=", "organizations_url": "https://api.github.com/users/jameskelleher/orgs", "received_events_url": "https://api.github.com/users/jameskelleher/received_events", "repos_url": "https://api.github.com/users/jameskelleher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jameskelleher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jameskelleher/subscriptions", "type": "User", "url": "https://api.github.com/users/jameskelleher" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-09-27T19:12:09Z
2016-11-23T13:12:02Z
2016-11-23T13:12:01Z
NONE
null
I have an h5 store named `weather.h5`. My default Python environment is 3.5.2. When I try to read this store I get `TypeError: Already tz-aware, use tz_convert to convert`. I've tried both `pd.read_hdf('weather.h5','weather_history']` and `pd.io.pytables.HDFStore('weather.h5')['weather_history']`, but I get the error no matter what. I can open the h5 in a Python 2.7 environment, so I'm assuming that this is a bug relating to the Python 3.5 install of pandas. #### Traceback for `pd.read_hdf('weather.h5','weather_history']` <details> ``` Traceback (most recent call last) <ipython-input-21-716ccba8a093> in <module>() ----> 1 pd.read_hdf('weather.h5', 'weather_history') /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read_hdf(path_or_buf, key, **kwargs) 328 'multiple datasets.') 329 key = keys[0] --> 330 return store.select(key, auto_close=auto_close, **kwargs) 331 except: 332 # if there is an error, close the store /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in select(self, key, where, start, stop, columns, iterator, chunksize, auto_close, **kwargs) 678 chunksize=chunksize, auto_close=auto_close) 679 --> 680 return it.get_result() 681 682 def select_as_coordinates( /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in get_result(self, coordinates) 1362 1363 # directly return the result -> 1364 results = self.func(self.start, self.stop, where) 1365 self.close() 1366 return results /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in func(_start, _stop, _where) 671 return s.read(start=_start, stop=_stop, 672 where=_where, --> 673 columns=columns, **kwargs) 674 675 # create the iterator /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read(self, **kwargs) 2777 axes = [] 2778 for i in range(self.ndim): -> 2779 ax = self.read_index('axis%d' % i) 2780 axes.append(ax) 2781 /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read_index(self, key) 2365 return self.read_sparse_intindex(key) 2366 elif variety == u('regular'): -> 2367 _, index = self.read_index_node(getattr(self.group, key)) 2368 return index 2369 else: # pragma: no cover /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read_index_node(self, node) 2490 else: 2491 index = factory( -> 2492 _unconvert_index(data, kind, encoding=self.encoding), **kwargs) 2493 2494 index.name = name /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/indexes/base.py in __new__(cls, data, dtype, copy, name, fastpath, tupleize_cols, **kwargs) 151 is_datetimetz(data)): 152 from pandas.tseries.index import DatetimeIndex --> 153 result = DatetimeIndex(data, copy=copy, name=name, **kwargs) 154 if dtype is not None and _o_dtype == dtype: 155 return Index(result.to_pydatetime(), dtype=_o_dtype) /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/util/decorators.py in wrapper(*args, **kwargs) 89 else: 90 kwargs[new_arg_name] = new_arg_value ---> 91 return func(*args, **kwargs) 92 return wrapper 93 return _deprecate_kwarg /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/tseries/index.py in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs) 319 # the tz's must match 320 if str(tz) != str(data.tz): --> 321 raise TypeError("Already tz-aware, use tz_convert " 322 "to convert.") 323 TypeError: Already tz-aware, use tz_convert to convert. ``` </details> #### Traceback for `pd.io.pytables.HDFStore('weather.h5')['weather_history']` <details> ``` Traceback (most recent call last) <ipython-input-25-8aaea36ce932> in <module>() ----> 1 pd.io.pytables.HDFStore('weather.h5')['weather_history'] /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in __getitem__(self, key) 415 416 def __getitem__(self, key): --> 417 return self.get(key) 418 419 def __setitem__(self, key, value): /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in get(self, key) 632 if group is None: 633 raise KeyError('No object named %s in the file' % key) --> 634 return self._read_group(group) 635 636 def select(self, key, where=None, start=None, stop=None, columns=None, /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in _read_group(self, group, **kwargs) 1270 s = self._create_storer(group) 1271 s.infer_axes() -> 1272 return s.read(**kwargs) 1273 1274 /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read(self, **kwargs) 2777 axes = [] 2778 for i in range(self.ndim): -> 2779 ax = self.read_index('axis%d' % i) 2780 axes.append(ax) 2781 /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read_index(self, key) 2365 return self.read_sparse_intindex(key) 2366 elif variety == u('regular'): -> 2367 _, index = self.read_index_node(getattr(self.group, key)) 2368 return index 2369 else: # pragma: no cover /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/io/pytables.py in read_index_node(self, node) 2490 else: 2491 index = factory( -> 2492 _unconvert_index(data, kind, encoding=self.encoding), **kwargs) 2493 2494 index.name = name /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/indexes/base.py in __new__(cls, data, dtype, copy, name, fastpath, tupleize_cols, **kwargs) 151 is_datetimetz(data)): 152 from pandas.tseries.index import DatetimeIndex --> 153 result = DatetimeIndex(data, copy=copy, name=name, **kwargs) 154 if dtype is not None and _o_dtype == dtype: 155 return Index(result.to_pydatetime(), dtype=_o_dtype) /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/util/decorators.py in wrapper(*args, **kwargs) 89 else: 90 kwargs[new_arg_name] = new_arg_value ---> 91 return func(*args, **kwargs) 92 return wrapper 93 return _deprecate_kwarg /Users/jkelleher/anaconda/lib/python3.5/site-packages/pandas/tseries/index.py in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs) 319 # the tz's must match 320 if str(tz) != str(data.tz): --> 321 raise TypeError("Already tz-aware, use tz_convert " 322 "to convert.") 323 TypeError: Already tz-aware, use tz_convert to convert. ``` </details> #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.3 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14307/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14307/timeline
null
null
null