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/10103
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10103/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10103/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10103/events
https://github.com/pandas-dev/pandas/pull/10103
75,248,363
MDExOlB1bGxSZXF1ZXN0MzUxMzQ2MTI=
10,103
ENH: add expand kw to str.get_dummies
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" }, { "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-05-05T00:34:40Z", "closed_issues": 306, "created_at": "2016-02-08T15:29:59Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.18.0 of course!", "due_on": "2016-05-04T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/38", "id": 1570594, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==", "number": 38, "open_issues": 0, "state": "closed", "title": "0.18.1", "updated_at": "2017-08-10T09:01:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38" }
9
2015-05-11T14:50:19Z
2016-04-11T12:54:39Z
2016-04-11T12:54:39Z
MEMBER
null
Ref: #10008. Though this still under work (needs #10089 to simplify `get_dummies` flow), would like to discuss followings. ~~#### `.str.extract` note: overlaps with #11386~~ ~~Currently it returns `Series` for a single group and `DataFrame` for multiples. To support `expand` kw, we have to choose :~~ ~~1. Add `expand` option keeping existing behavior with warning for future change to `extract=True` (current impl).~~ ~~2. Add `expand` option keeping existing behavior. Standardize `extract=None` (or other option) to select returning dimensionality automatically.~~ ~~3. Add `expand` option with default `True` (or `False`). This breaks the API.~~ ~~4. Make `Index.str.extract` return `MultiIndex` in multiple group case without adding `expand` option.~~ #### `.str.get_dummies` 1. Add `expand` kw with default `True`. Currently this always returns `DataFrame` (and raises `TypeError` in `Index`). This doesn't break an API (current impl). 2. Make `Index.str.get_dummies` return `MultiIndex` without adding `expand` option. CC @mortada
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10103/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10103/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10103.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10103", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10103.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10103" }
https://api.github.com/repos/pandas-dev/pandas/issues/10104
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10104/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10104/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10104/events
https://github.com/pandas-dev/pandas/issues/10104
75,252,794
MDU6SXNzdWU3NTI1Mjc5NA==
10,104
support sqlalchemy connections
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert" }
[ { "color": "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": "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
2015-05-11T15:06:09Z
2015-05-12T08:32:24Z
2015-05-12T08:32:16Z
CONTRIBUTOR
null
I'd like to be able to manage my own connections and transactions with sqlalchemy: ``` python def foo(connection): pd.read_sql_query(query, con=connection) def bar(connection, data): data.to_sql(name='foo', con=connection) def main(): with engine.connection() as conn, conn.begin(): bar(foo(), connection=conn) bar(some_other_data, connection=conn) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10104/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10104/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10105
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10105/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10105/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10105/events
https://github.com/pandas-dev/pandas/pull/10105
75,262,481
MDExOlB1bGxSZXF1ZXN0MzUxMzkyMjg=
10,105
support both sqlalchemy engines and connections
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert" }
[ { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
34
2015-05-11T15:35:25Z
2015-07-03T20:44:15Z
2015-07-03T17:44:56Z
CONTRIBUTOR
null
Fixes #7877
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10105/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10105/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10105.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10105", "merged_at": "2015-07-03T17:44:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10105.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10105" }
https://api.github.com/repos/pandas-dev/pandas/issues/10106
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10106/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10106/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10106/events
https://github.com/pandas-dev/pandas/issues/10106
75,323,253
MDU6SXNzdWU3NTMyMzI1Mw==
10,106
Empty DataFrame constructor disregards dtype kwarg
{ "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": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
null
7
2015-05-11T18:58:14Z
2015-05-16T15:37:58Z
2015-05-11T19:03:18Z
CONTRIBUTOR
null
This is new in 0.16.1 ``` python In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '0.16.1' In [3]: f = pd.DataFrame({'a': [0, 10, 20, 30, 40], 'b': [5, 4 ,3, 2, 1]}, index=[1, 2, 3, 4, 4]) In [4]: f.dtypes Out[4]: a int64 b int64 dtype: object In [6]: pd.DataFrame(columns=['a', 'b'], dtype=f.dtypes).dtypes Out[6]: a object b object dtype: object ``` Also other mechanisms to convey dtype information yield uninformative errors ``` python In [7]: pd.DataFrame(columns=['a', 'b'], dtype={'a': 'i4', 'b': 'f4'}).dtypes ValueError: entry not a 2- or 3- tuple In [8]: pd.DataFrame(columns=['a', 'b'], dtype=[('a', 'i4'), ('b', 'f4')]).dtypes NotImplementedError: compound dtypes are not implementedin the DataFrame constructor ``` Is there a way to create an empty DataFrame with given dtypes in 0.16.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/10106/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10106/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10107
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10107/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10107/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10107/events
https://github.com/pandas-dev/pandas/pull/10107
75,335,781
MDExOlB1bGxSZXF1ZXN0MzUxNjE4MDY=
10,107
DOC: improve binary operator docs (fixes #10093)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
12
2015-05-11T19:44:11Z
2015-06-02T19:26:11Z
2015-05-16T14:52:56Z
CONTRIBUTOR
null
fixes #10093 @jorisvandenbossche this covers `Series`, `DataFrame` and `Panel`, please take a look
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10107/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10107/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10107.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10107", "merged_at": "2015-05-16T14:52:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10107.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10107" }
https://api.github.com/repos/pandas-dev/pandas/issues/10108
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10108/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10108/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10108/events
https://github.com/pandas-dev/pandas/pull/10108
75,376,773
MDExOlB1bGxSZXF1ZXN0MzUxNzU1OTg=
10,108
BUG: categorical doesn't handle display.width of None in Python 3 (GH10087)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4", "events_url": "https://api.github.com/users/rosnfeld/events{/privacy}", "followers_url": "https://api.github.com/users/rosnfeld/followers", "following_url": "https://api.github.com/users/rosnfeld/following{/other_user}", "gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rosnfeld", "id": 5356340, "login": "rosnfeld", "node_id": "MDQ6VXNlcjUzNTYzNDA=", "organizations_url": "https://api.github.com/users/rosnfeld/orgs", "received_events_url": "https://api.github.com/users/rosnfeld/received_events", "repos_url": "https://api.github.com/users/rosnfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/rosnfeld" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-11T22:15:45Z
2015-06-02T19:26:11Z
2015-05-12T10:47:23Z
CONTRIBUTOR
null
closes #10087 I think this is fairly straightforward, however I am not sure if the prior code comparing `display.width` to 0 was correct... is `display.width` ever supposed to be set to 0? It looks suspiciously similar to a snippet from `Series.__unicode__()`, but that is looking at `display.max_rows`. Maybe it was brought over incorrectly? If it should just be a simple comparison to None, not 0 as it was before, just let me know and I'll amend 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/10108/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10108/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10108.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10108", "merged_at": "2015-05-12T10:47:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10108.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10108" }
https://api.github.com/repos/pandas-dev/pandas/issues/10109
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10109/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10109/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10109/events
https://github.com/pandas-dev/pandas/issues/10109
75,426,258
MDU6SXNzdWU3NTQyNjI1OA==
10,109
API: Gather and other inspiration from tidyr
{ "avatar_url": "https://avatars.githubusercontent.com/u/8646471?v=4", "events_url": "https://api.github.com/users/datnamer/events{/privacy}", "followers_url": "https://api.github.com/users/datnamer/followers", "following_url": "https://api.github.com/users/datnamer/following{/other_user}", "gists_url": "https://api.github.com/users/datnamer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datnamer", "id": 8646471, "login": "datnamer", "node_id": "MDQ6VXNlcjg2NDY0NzE=", "organizations_url": "https://api.github.com/users/datnamer/orgs", "received_events_url": "https://api.github.com/users/datnamer/received_events", "repos_url": "https://api.github.com/users/datnamer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datnamer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datnamer/subscriptions", "type": "User", "url": "https://api.github.com/users/datnamer" }
[ { "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": "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" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
15
2015-05-12T02:08:07Z
2021-04-18T06:45:19Z
null
NONE
null
http://connor-johnson.com/2014/08/28/tidyr-and-pandas-gather-and-melt/ In the spirit of the excellent assign method, wondering if there is support for some tidyr style transformations?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10109/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10109/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10110
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10110/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10110/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10110/events
https://github.com/pandas-dev/pandas/pull/10110
75,487,768
MDExOlB1bGxSZXF1ZXN0MzUxOTczNzQ=
10,110
ENH: support .strftime for datetimelikes (closes #10086)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
18
2015-05-12T06:42:39Z
2015-08-03T12:45:00Z
2015-08-03T12:40:55Z
CONTRIBUTOR
null
closes #10086
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10110/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10110/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10110.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10110", "merged_at": "2015-08-03T12:40:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10110.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10110" }
https://api.github.com/repos/pandas-dev/pandas/issues/10111
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10111/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10111/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10111/events
https://github.com/pandas-dev/pandas/pull/10111
75,587,236
MDExOlB1bGxSZXF1ZXN0MzUyMjEzNDY=
10,111
CLN: cleanup hashtable.pyx
{ "avatar_url": "https://avatars.githubusercontent.com/u/832092?v=4", "events_url": "https://api.github.com/users/gdementen/events{/privacy}", "followers_url": "https://api.github.com/users/gdementen/followers", "following_url": "https://api.github.com/users/gdementen/following{/other_user}", "gists_url": "https://api.github.com/users/gdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gdementen", "id": 832092, "login": "gdementen", "node_id": "MDQ6VXNlcjgzMjA5Mg==", "organizations_url": "https://api.github.com/users/gdementen/orgs", "received_events_url": "https://api.github.com/users/gdementen/received_events", "repos_url": "https://api.github.com/users/gdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/gdementen" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
3
2015-05-12T12:34:22Z
2015-06-02T19:26:11Z
2015-05-13T12:28:09Z
CONTRIBUTOR
null
mostly remove unused stuff
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10111/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10111/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10111.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10111", "merged_at": "2015-05-13T12:28:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10111.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10111" }
https://api.github.com/repos/pandas-dev/pandas/issues/10112
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10112/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10112/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10112/events
https://github.com/pandas-dev/pandas/issues/10112
75,678,078
MDU6SXNzdWU3NTY3ODA3OA==
10,112
Pandas ExcelWriter set_column fails to format numbers after DataFrame.to_excel used
{ "avatar_url": "https://avatars.githubusercontent.com/u/5831941?v=4", "events_url": "https://api.github.com/users/phaefele/events{/privacy}", "followers_url": "https://api.github.com/users/phaefele/followers", "following_url": "https://api.github.com/users/phaefele/following{/other_user}", "gists_url": "https://api.github.com/users/phaefele/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phaefele", "id": 5831941, "login": "phaefele", "node_id": "MDQ6VXNlcjU4MzE5NDE=", "organizations_url": "https://api.github.com/users/phaefele/orgs", "received_events_url": "https://api.github.com/users/phaefele/received_events", "repos_url": "https://api.github.com/users/phaefele/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phaefele/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phaefele/subscriptions", "type": "User", "url": "https://api.github.com/users/phaefele" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
null
4
2015-05-12T17:33:21Z
2020-05-07T22:16:26Z
2020-05-07T22:16:26Z
NONE
null
I have tried the example code found on the xlsxwriter webpage at http://xlsxwriter.readthedocs.org/en/latest/example_pandas_column_formats.html However it does not format the columns as expected - they simply appear unformatted (no numeric rounding, percentages.) It seems that calling set_column is being ignored. Is this because perhaps not to_excel() is doing some formatting itself which can't be overwritten?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10112/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10112/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10113
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10113/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10113/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10113/events
https://github.com/pandas-dev/pandas/issues/10113
75,685,248
MDU6SXNzdWU3NTY4NTI0OA==
10,113
DataFrame.to_json() creates invalid JSON with MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/399441?v=4", "events_url": "https://api.github.com/users/mathom/events{/privacy}", "followers_url": "https://api.github.com/users/mathom/followers", "following_url": "https://api.github.com/users/mathom/following{/other_user}", "gists_url": "https://api.github.com/users/mathom/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mathom", "id": 399441, "login": "mathom", "node_id": "MDQ6VXNlcjM5OTQ0MQ==", "organizations_url": "https://api.github.com/users/mathom/orgs", "received_events_url": "https://api.github.com/users/mathom/received_events", "repos_url": "https://api.github.com/users/mathom/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mathom/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mathom/subscriptions", "type": "User", "url": "https://api.github.com/users/mathom" }
[ { "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
1
2015-05-12T17:59:31Z
2015-05-12T19:06:45Z
2015-05-12T19:06:33Z
NONE
null
Pandas will dump MultiIndex dataframes as invalid JSON in 0.16.0. For example this dataframe: ``` 0 a c 1 b d 2 ``` Will dump as: `{"0":{"["a","c"]":1,"["b","d"]":2}}`. You can see that the keys aren't escaping their double quote character and this isn't readable as JSON. The following snippet illustrates how to recreate this: ``` python import pandas df = pandas.DataFrame([1,2], index=[['a','b'],['c','d']]) pandas.read_json(df.to_json()) ... ValueError: No ':' found when decoding object value ``` My pandas versions: ``` pandas.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 14.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.16.0 nose: 1.3.6 Cython: None numpy: 1.9.2 scipy: None statsmodels: None IPython: 3.1.0 sphinx: None patsy: None dateutil: 2.4.2 pytz: 2013b bottleneck: None tables: None numexpr: None matplotlib: 1.4.3 openpyxl: None xlrd: None xlwt: 1.0.0 xlsxwriter: 0.5.5 lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: 0.9.1 apiclient: 1.4.0 sqlalchemy: 0.9.3 pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10113/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10113/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10114
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10114/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10114/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10114/events
https://github.com/pandas-dev/pandas/issues/10114
75,704,982
MDU6SXNzdWU3NTcwNDk4Mg==
10,114
BUG: filter with a multi-grouping including a datetimelike fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
2
2015-05-12T19:05:06Z
2015-08-15T23:41:09Z
2015-08-15T23:41:09Z
CONTRIBUTOR
null
this was changed in #9921 (worked prior to 0.16.0) cc @evanpw so using a multiple grouper where one item is a datetimelike fails as the `name in self.indices` fails. Instead `.get_group()` can be used to fix ``` In [1]: df = DataFrame({'A' : np.arange(5), 'B' : ['foo','bar','foo','bar','bar'], 'C' : Timestamp('20130101') }) In [2]: df Out[2]: A B C 0 0 foo 2013-01-01 1 1 bar 2013-01-01 2 2 foo 2013-01-01 3 3 bar 2013-01-01 4 4 bar 2013-01-01 In [3]: df.groupby(['B','C']).filter(lambda x: True) Out[3]: Empty DataFrame Columns: [A, B, C] Index: [] In [4]: df.groupby(['B']).filter(lambda x: True) Out[4]: A B C 0 0 foo 2013-01-01 1 1 bar 2013-01-01 2 2 foo 2013-01-01 3 3 bar 2013-01-01 4 4 bar 2013-01-01 In [5]: df.groupby(['C']).filter(lambda x: True) Out[5]: A B C 0 0 foo 2013-01-01 1 1 bar 2013-01-01 2 2 foo 2013-01-01 3 3 bar 2013-01-01 4 4 bar 2013-01-01 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10114/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10114/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10115
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10115/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10115/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10115/events
https://github.com/pandas-dev/pandas/issues/10115
75,720,160
MDU6SXNzdWU3NTcyMDE2MA==
10,115
BUG: MultiIndex.drop_duplicates() drops names
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2015-05-12T20:00:01Z
2015-06-23T14:11:23Z
2015-06-23T14:11:23Z
CONTRIBUTOR
null
``` In [12]: import pandas as pd In [13]: mi = pd.MultiIndex.from_tuples([('A','a',1), ('A','a',2)], names=['Upper','Lower','Num']) In [14]: mi.drop_duplicates() Out[14]: MultiIndex(levels=[['A'], ['a'], [1, 2]], labels=[[0, 0], [0, 0], [0, 1]]) In [16]: mi.names Out[16]: FrozenList(['Upper', 'Lower', 'Num']) In [18]: mi.drop_duplicates().names Out[18]: FrozenList([None, 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/10115/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10115/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10116
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10116/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10116/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10116/events
https://github.com/pandas-dev/pandas/pull/10116
75,738,342
MDExOlB1bGxSZXF1ZXN0MzUyNzA1MzI=
10,116
BUG: drop_duplicates drops name(s).
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
3
2015-05-12T21:05:54Z
2015-08-07T00:15:40Z
2015-06-23T14:11:23Z
CONTRIBUTOR
null
Closes #10115.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10116/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10116/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10116.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10116", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10116.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10116" }
https://api.github.com/repos/pandas-dev/pandas/issues/10117
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10117/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10117/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10117/events
https://github.com/pandas-dev/pandas/issues/10117
75,743,708
MDU6SXNzdWU3NTc0MzcwOA==
10,117
resample gives AmbiguousTimeError when index ends on a DST boundary
{ "avatar_url": "https://avatars.githubusercontent.com/u/460756?v=4", "events_url": "https://api.github.com/users/JackKelly/events{/privacy}", "followers_url": "https://api.github.com/users/JackKelly/followers", "following_url": "https://api.github.com/users/JackKelly/following{/other_user}", "gists_url": "https://api.github.com/users/JackKelly/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JackKelly", "id": 460756, "login": "JackKelly", "node_id": "MDQ6VXNlcjQ2MDc1Ng==", "organizations_url": "https://api.github.com/users/JackKelly/orgs", "received_events_url": "https://api.github.com/users/JackKelly/received_events", "repos_url": "https://api.github.com/users/JackKelly/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JackKelly/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JackKelly/subscriptions", "type": "User", "url": "https://api.github.com/users/JackKelly" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2019-01-26T00:51:26Z", "closed_issues": 2048, "created_at": "2018-03-29T12:00:12Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2019-01-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/55", "id": 3228419, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels", "node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==", "number": 55, "open_issues": 0, "state": "closed", "title": "0.24.0", "updated_at": "2019-01-29T07:42:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55" }
4
2015-05-12T21:22:27Z
2018-09-23T12:11:02Z
2018-09-23T12:11:02Z
CONTRIBUTOR
null
Here's the bug: ``` python In [27]: idx = pd.date_range("2014-10-25 22:00:00", "2014-10-26 00:30:00", freq="30T", tz="Europe/London") In [28]: series = pd.Series(np.random.randn(len(idx)), index=idx) In [31]: series Out[31]: 2014-10-25 22:00:00+01:00 -0.874014 2014-10-25 22:30:00+01:00 1.316258 2014-10-25 23:00:00+01:00 -1.334616 2014-10-25 23:30:00+01:00 -1.200390 2014-10-26 00:00:00+01:00 -0.341764 2014-10-26 00:30:00+01:00 1.509091 Freq: 30T, dtype: float64 In [29]: series.resample('30T') --------------------------------------------------------------------------- AmbiguousTimeError Traceback (most recent call last) <ipython-input-29-bb9e86068ce1> in <module>() ----> 1 series.resample('30T') /usr/local/lib/python2.7/dist-packages/pandas/core/generic.pyc in resample(self, rule, how, axis, fill_method, closed, label, convention, kind, loffset, limit, base) 3195 fill_method=fill_method, convention=convention, 3196 limit=limit, base=base) -> 3197 return sampler.resample(self).__finalize__(self) 3198 3199 def first(self, offset): /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in resample(self, obj) 83 84 if isinstance(ax, DatetimeIndex): ---> 85 rs = self._resample_timestamps() 86 elif isinstance(ax, PeriodIndex): 87 offset = to_offset(self.freq) /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in _resample_timestamps(self, kind) 273 axlabels = self.ax 274 --> 275 self._get_binner_for_resample(kind=kind) 276 grouper = self.grouper 277 binner = self.binner /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in _get_binner_for_resample(self, kind) 121 kind = self.kind 122 if kind is None or kind == 'timestamp': --> 123 self.binner, bins, binlabels = self._get_time_bins(ax) 124 elif kind == 'timedelta': 125 self.binner, bins, binlabels = self._get_time_delta_bins(ax) /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in _get_time_bins(self, ax) 162 first, last = ax.min(), ax.max() 163 first, last = _get_range_edges(first, last, self.freq, closed=self.closed, --> 164 base=self.base) 165 tz = ax.tz 166 binner = labels = DatetimeIndex(freq=self.freq, /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in _get_range_edges(first, last, offset, closed, base) 392 if (is_day and day_nanos % offset.nanos == 0) or not is_day: 393 return _adjust_dates_anchored(first, last, offset, --> 394 closed=closed, base=base) 395 396 if not isinstance(offset, Tick): # and first.time() != last.time(): /usr/local/lib/python2.7/dist-packages/pandas/tseries/resample.pyc in _adjust_dates_anchored(first, last, offset, closed, base) 459 460 return (Timestamp(fresult).tz_localize(first_tzinfo), --> 461 Timestamp(lresult).tz_localize(first_tzinfo)) 462 463 pandas/tslib.pyx in pandas.tslib.Timestamp.tz_localize (pandas/tslib.c:10535)() pandas/tslib.pyx in pandas.tslib.tz_localize_to_utc (pandas/tslib.c:50297)() AmbiguousTimeError: Cannot infer dst time from Timestamp('2014-10-26 01:00:00'), try using the 'ambiguous' argument ``` This is my hacky work-around: ``` python In [35]: series.tz_convert('UTC').resample('30T').tz_convert('Europe/London') Out[35]: 2014-10-25 22:00:00+01:00 -0.874014 2014-10-25 22:30:00+01:00 1.316258 2014-10-25 23:00:00+01:00 -1.334616 2014-10-25 23:30:00+01:00 -1.200390 2014-10-26 00:00:00+01:00 -0.341764 2014-10-26 00:30:00+01:00 1.509091 Freq: 30T, dtype: float64 ``` The bug disappears if the end date of the index is beyond the DST boundary: ``` python In [37]: idx = pd.date_range("2014-10-25 22:00:00", "2014-10-26 02:30:00", freq="30T", tz="Europe/London") In [38]: series = pd.Series(np.random.randn(len(idx)), index=idx) In [39]: series.resample('30T') Out[39]: 2014-10-25 22:00:00+01:00 -0.626598 2014-10-25 22:30:00+01:00 1.799176 2014-10-25 23:00:00+01:00 -0.388075 2014-10-25 23:30:00+01:00 0.641487 2014-10-26 00:00:00+01:00 -0.488203 2014-10-26 00:30:00+01:00 0.477301 2014-10-26 01:00:00+01:00 0.040997 2014-10-26 01:30:00+01:00 -1.996542 2014-10-26 01:00:00+00:00 -0.016655 2014-10-26 01:30:00+00:00 -1.445823 2014-10-26 02:00:00+00:00 -0.713523 2014-10-26 02:30:00+00:00 -0.122274 Freq: 30T, dtype: float64 ``` All is fine if the start date is on a DST boundary but the end date is beyond the boundary: ``` python In [47]: idx = pd.date_range("2014-10-26 00:30:00", "2014-10-26 02:30:00", freq="30T", tz="Europe/London") In [48]: series = pd.Series(np.random.randn(len(idx)), index=idx) In [49]: series.resample('30T') Out[49]: 2014-10-26 00:30:00+01:00 2.371051 2014-10-26 01:00:00+01:00 -0.033473 2014-10-26 01:30:00+01:00 -0.988517 2014-10-26 01:00:00+00:00 -0.664475 2014-10-26 01:30:00+00:00 0.865772 2014-10-26 02:00:00+00:00 -1.051219 2014-10-26 02:30:00+00:00 -1.478477 Freq: 30T, dtype: float64 ``` (As always, I must say a huge THANK YOU to everyone working on Pandas; it really is a great bit of software) ``` In [50]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Linux OS-release: 3.19.0-16-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.16.1 nose: 1.3.4 Cython: 0.22 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.2 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.2 xlwt: None xlsxwriter: None lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: 0.9 apiclient: None sqlalchemy: None pymysql: None psycopg2: 2.5.3 (dt dec pq3 ext) ``` Possibly related: - #9623 - #9119 - #8744 - #5172
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10117/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10117/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10118
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10118/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10118/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10118/events
https://github.com/pandas-dev/pandas/issues/10118
75,811,021
MDU6SXNzdWU3NTgxMTAyMQ==
10,118
automatic inversion of x axis by pandas.plot(...)
{ "avatar_url": "https://avatars.githubusercontent.com/u/12421125?v=4", "events_url": "https://api.github.com/users/mimimimimimimi/events{/privacy}", "followers_url": "https://api.github.com/users/mimimimimimimi/followers", "following_url": "https://api.github.com/users/mimimimimimimi/following{/other_user}", "gists_url": "https://api.github.com/users/mimimimimimimi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mimimimimimimi", "id": 12421125, "login": "mimimimimimimi", "node_id": "MDQ6VXNlcjEyNDIxMTI1", "organizations_url": "https://api.github.com/users/mimimimimimimi/orgs", "received_events_url": "https://api.github.com/users/mimimimimimimi/received_events", "repos_url": "https://api.github.com/users/mimimimimimimi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mimimimimimimi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mimimimimimimi/subscriptions", "type": "User", "url": "https://api.github.com/users/mimimimimimimi" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2017-10-28T18:54:27Z", "closed_issues": 764, "created_at": "2017-03-23T13:26:25Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2017-10-27T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/46", "id": 2406656, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels", "node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==", "number": 46, "open_issues": 0, "state": "closed", "title": "0.21.0", "updated_at": "2018-07-08T21:53:21Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46" }
6
2015-05-13T02:08:14Z
2017-11-09T12:31:26Z
2017-11-09T11:49:39Z
NONE
null
X axis was inverted automatically and unexpectedly when plotting a series of data against another series of data using pandas. My example code blow creates three plots, only some, not all, of which shows inverted x axis. I think this behavior is very confusing for users even if there was some rationale behind it. IMHO, automatic inversion of x axis is unnecessary because a user can use invert_xaxis() in case one wants to invert it. On [stackoverflow](http://stackoverflow.com/questions/29908874/x-axis-inverted-unexpectedly-by-pandas-plot), a workaround was suggested, but no direct solution. ``` import pandas as pd import numpy as np import matplotlib.pyplot as plt df2 = pd.DataFrame(np.random.randn(10, 3), columns=["a", "b", "c"]) df3 = df2*1.1 df3.rename(columns={"a": "a*1.1", "b": "b*1.1", "c": "c*1.1"}, inplace=True) df23 = df2.join(df3) fig, ax_list = plt.subplots(1,3) ax=ax_list[0] df23[["a", "a*1.1"]].plot(ax=ax, x="a") ax.axis('equal') ax.set_title("(x,y)=(a,a*1.1)") print ax.get_xlim() ## Added for clarity ax=ax_list[1] df23[["b", "b*1.1"]].plot(ax=ax, x="b") ax.axis('equal') ax.set_title("(x,y)=(b,b*1.1)") print ax.get_xlim() ## Added for clarity ax=ax_list[2] df23[["c", "c*1.1"]].plot(ax=ax, x="c") ax.axis('equal') ax.set_title("(x,y)=(c,c*1.1)") print ax.get_xlim() ## Added for clarity ```
{ "+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/10118/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10118/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10119
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10119/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10119/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10119/events
https://github.com/pandas-dev/pandas/issues/10119
75,904,265
MDU6SXNzdWU3NTkwNDI2NQ==
10,119
Series.plot() ignores label keyword
{ "avatar_url": "https://avatars.githubusercontent.com/u/1676326?v=4", "events_url": "https://api.github.com/users/goyodiaz/events{/privacy}", "followers_url": "https://api.github.com/users/goyodiaz/followers", "following_url": "https://api.github.com/users/goyodiaz/following{/other_user}", "gists_url": "https://api.github.com/users/goyodiaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/goyodiaz", "id": 1676326, "login": "goyodiaz", "node_id": "MDQ6VXNlcjE2NzYzMjY=", "organizations_url": "https://api.github.com/users/goyodiaz/orgs", "received_events_url": "https://api.github.com/users/goyodiaz/received_events", "repos_url": "https://api.github.com/users/goyodiaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/goyodiaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/goyodiaz/subscriptions", "type": "User", "url": "https://api.github.com/users/goyodiaz" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "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": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
9
2015-05-13T08:42:46Z
2015-06-02T19:25:20Z
2015-05-19T12:27:19Z
CONTRIBUTOR
null
Using pandas 0.16.1, tested in several environments: ``` python >>> import pandas as pd >>> s = pd.Series([0, 1]) >>> ax = s.plot(label='stuff') >>> assert ax.lines[0].get_label() == 'stuff' Traceback (most recent call last): File "<stdin>", line 1, in <module> AssertionError ``` This is a regression since 0.16.0. I think the problem is in this line in pandas.tools.plotting.MPLPlot._compute_plot_data(): `label = self.kwds.pop('label', None)` It should read: `label = self.label` because the label has been popped before and stored in an attribute. I want to make a pull request but it will take some time to install git, set up a development environment and get my fingers to relearn their way through it all so it will be a lot of opportunities to beat me.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10119/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10119/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10120
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10120/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10120/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10120/events
https://github.com/pandas-dev/pandas/issues/10120
75,915,306
MDU6SXNzdWU3NTkxNTMwNg==
10,120
ERROR: test_creating_and_reading_multiple_sheets (pandas.io.tests.test_excel.ExcelReaderTests)
{ "avatar_url": "https://avatars.githubusercontent.com/u/79732?v=4", "events_url": "https://api.github.com/users/jlec/events{/privacy}", "followers_url": "https://api.github.com/users/jlec/followers", "following_url": "https://api.github.com/users/jlec/following{/other_user}", "gists_url": "https://api.github.com/users/jlec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlec", "id": 79732, "login": "jlec", "node_id": "MDQ6VXNlcjc5NzMy", "organizations_url": "https://api.github.com/users/jlec/orgs", "received_events_url": "https://api.github.com/users/jlec/received_events", "repos_url": "https://api.github.com/users/jlec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlec/subscriptions", "type": "User", "url": "https://api.github.com/users/jlec" }
[]
closed
false
null
[]
null
9
2015-05-13T09:26:03Z
2015-05-13T15:35:58Z
2015-05-13T12:33:25Z
CONTRIBUTOR
null
# ## ERROR: test_creating_and_reading_multiple_sheets (pandas.io.tests.test_excel.ExcelReaderTests) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/tests/test_excel.py", line 474, in test_creating_and_reading_multiple_sheets for sheetname, df in dfs.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/tests/test_excel.py", line 475, in test_creating_and_reading_multiple_sheets df.to_excel(ew,sheetname) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/excel.py", line 619, in **exit** self.close() File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/excel.py", line 623, in close return self.save() File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/excel.py", line 651, in save return self.book.save(self.path) File "/usr/lib64/python3.3/site-packages/openpyxl/workbook/workbook.py", line 280, in save save_workbook(self, filename) File "/usr/lib64/python3.3/site-packages/openpyxl/writer/excel.py", line 211, in save_workbook writer.save(filename) File "/usr/lib64/python3.3/site-packages/openpyxl/writer/excel.py", line 194, in save self.write_data(archive) File "/usr/lib64/python3.3/site-packages/openpyxl/writer/excel.py", line 88, in write_data archive.writestr(ARC_WORKBOOK_RELS, write_workbook_rels(self.workbook)) File "/usr/lib64/python3.3/site-packages/openpyxl/writer/workbook.py", line 316, in write_workbook_rels i += 1 UnboundLocalError: local variable 'i' referenced before assignment
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10120/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10120/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10121
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10121/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10121/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10121/events
https://github.com/pandas-dev/pandas/issues/10121
75,916,364
MDU6SXNzdWU3NTkxNjM2NA==
10,121
Multiple test errors related to time/date/timezones
{ "avatar_url": "https://avatars.githubusercontent.com/u/79732?v=4", "events_url": "https://api.github.com/users/jlec/events{/privacy}", "followers_url": "https://api.github.com/users/jlec/followers", "following_url": "https://api.github.com/users/jlec/following{/other_user}", "gists_url": "https://api.github.com/users/jlec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlec", "id": 79732, "login": "jlec", "node_id": "MDQ6VXNlcjc5NzMy", "organizations_url": "https://api.github.com/users/jlec/orgs", "received_events_url": "https://api.github.com/users/jlec/received_events", "repos_url": "https://api.github.com/users/jlec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlec/subscriptions", "type": "User", "url": "https://api.github.com/users/jlec" }
[ { "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": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-13T09:28:37Z
2015-06-02T19:25:20Z
2015-05-15T20:26:36Z
CONTRIBUTOR
null
# ## ERROR: test moving from daylight savings to standard time Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3898, in test_fallback_plural expected_utc_offset=hrs_post File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3845, in _test_all_offsets self._test_offset(offset_name=name, offset_n=n, **kwds) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3851, in _test_offset self.assertTrue(get_utc_offset_hours(t) == expected_utc_offset) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3809, in get_utc_offset_hours return (o.days \* 24 \* 3600 + o.seconds) / 3600.0 AttributeError: 'NoneType' object has no attribute 'days' # ## ERROR: test moving from standard to daylight savings Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3909, in test_springforward_plural expected_utc_offset=hrs_post File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3845, in _test_all_offsets self._test_offset(offset_name=name, offset_n=n, **kwds) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3851, in _test_offset self.assertTrue(get_utc_offset_hours(t) == expected_utc_offset) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_offsets.py", line 3809, in get_utc_offset_hours return (o.days \* 24 \* 3600 + o.seconds) / 3600.0 AttributeError: 'NoneType' object has no attribute 'days' # ## ERROR: test_timestamp_tz_convert (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 341, in test_timestamp_tz_convert conv = idx[0].tz_convert(self.tzstr('US/Pacific')) File "pandas/tslib.pyx", line 502, in pandas.tslib.Timestamp.tz_convert (pandas/tslib.c:10823) TypeError: Cannot convert tz-naive Timestamp, use tz_localize to localize # ## ERROR: test_utc_with_system_utc (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 848, in test_utc_with_system_utc self.assertEqual(ts, ts.tz_convert(dateutil.tz.tzutc())) File "pandas/tslib.pyx", line 502, in pandas.tslib.Timestamp.tz_convert (pandas/tslib.c:10823) TypeError: Cannot convert tz-naive Timestamp, use tz_localize to localize # ## ERROR: test_with_tz (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 382, in test_with_tz central = dr.tz_convert(tz) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/index.py", line 1599, in tz_convert raise TypeError('Cannot convert tz-naive timestamps, use ' TypeError: Cannot convert tz-naive timestamps, use tz_localize to localize # ## ERROR: test_tz_convert_roundtrip (pandas.tseries.tests.test_timezones.TestTimeZones) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 1034, in test_tz_convert_roundtrip reset = converted.tz_convert(None) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/index.py", line 1599, in tz_convert raise TypeError('Cannot convert tz-naive timestamps, use ' TypeError: Cannot convert tz-naive timestamps, use tz_localize to localize # ## ERROR: test_tz_convert_roundtrip (pandas.tseries.tests.test_tslib.TestTimestamp) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_tslib.py", line 312, in test_tz_convert_roundtrip reset = converted.tz_convert(None) File "pandas/tslib.pyx", line 502, in pandas.tslib.Timestamp.tz_convert (pandas/tslib.c:10823) TypeError: Cannot convert tz-naive Timestamp, use tz_localize to localize # ## FAIL: test_append_with_timezones_dateutil (pandas.io.tests.test_pytables.TestHDFStore) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/io/tests/test_pytables.py", line 2037, in test_append_with_timezones_dateutil self.assertRaises(TypeError, store.append, 'df_tz', df) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1576, in assertRaises _callable(_args, *_kwargs) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in __exit__ raise AssertionError("{0} not raised.".format(name)) AssertionError: TypeError not raised. # ## FAIL: test_period_resample_with_local_timezone_dateutil (pandas.tseries.tests.test_timeseries.TestTimeSeries) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timeseries.py", line 2049, in test_period_resample_with_local_timezone_dateutil assert_series_equal(result, expected) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 686, in assert_series_equal assert_index_equal(left.index, right.index, check_names=check_names) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 543, in assert_index_equal right.dtype)) AssertionError: [index] left [int64 PeriodIndex(['2013-11-01', '2013-11-02'], dtype='int64', freq='D')], right [PeriodIndex(['2013-10-31', '2013-11-01'], dtype='int64', freq='D') int64] # ## FAIL: test_ambiguous_flags (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 471, in test_ambiguous_flags self.assert_numpy_array_equal(dr, localized) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 644, in assert_numpy_array_equal '{0} is not equal to {1}.'.format(np_array, assert_equal)) AssertionError: DatetimeIndex(['2011-11-06 00:00:00', '2011-11-06 01:00:00', '2011-11-06 02:00:00', '2011-11-06 03:00:00', '2011-11-06 04:00:00'], dtype='datetime64[ns]', freq='H', tz=None) is not equal to DatetimeIndex(['2011-11-06 00:00:00', '2011-11-06 01:00:00', '2011-11-06 01:00:00', '2011-11-06 02:00:00', '2011-11-06 03:00:00'], dtype='datetime64[ns]', freq=None, tz=None). # ## FAIL: test_ambiguous_infer (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 432, in test_ambiguous_infer self.assertRaises(pytz.AmbiguousTimeError, dr.tz_localize, tz) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1576, in assertRaises _callable(_args, *_kwargs) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in __exit__ raise AssertionError("{0} not raised.".format(name)) AssertionError: AmbiguousTimeError not raised. # ## FAIL: test_ambiguous_nat (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 517, in test_ambiguous_nat self.assert_numpy_array_equal(di_test, localized) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 644, in assert_numpy_array_equal '{0} is not equal to {1}.'.format(np_array, assert_equal)) AssertionError: DatetimeIndex(['2011-11-06 00:00:00-04:00', 'NaT', 'NaT', '2011-11-06 02:00:00-05:00', '2011-11-06 03:00:00-05:00'], dtype='datetime64[ns]', freq=None, tz='US/Eastern') is not equal to DatetimeIndex(['2011-11-06 00:00:00', '2011-11-06 01:00:00', '2011-11-06 01:00:00', '2011-11-06 02:00:00', '2011-11-06 03:00:00'], dtype='datetime64[ns]', freq=None, tz=None). # ## FAIL: test_datetimeindex_tz_nat (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 811, in test_datetimeindex_tz_nat self.assertTrue(idx[0].tzinfo is not None) AssertionError: False is not true # ## FAIL: test_frame_no_datetime64_dtype (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 672, in test_frame_no_datetime64_dtype self.assertEqual(e['B'].dtype, 'O') AssertionError: dtype('<M8[ns]') != 'O' # ## FAIL: test_index_with_timezone_repr (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 562, in test_index_with_timezone_repr self.assertIn('2010-04-13 00:00:00', rng_repr) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 577, in assertIn assert a in b, "%s: %r is not in %r" % (msg.format(a, b), a, b) AssertionError: : '2010-04-13 00:00:00' is not in "DatetimeIndex(['2010-04-13', '2010-04-14', '2010-04-15', '2010-04-16',\n '2010-04-17', '2010-04-18', '2010-04-19', '2010-04-20',\n '2010-04-21', '2010-04-22', '2010-04-23', '2010-04-24',\n '2010-04-25', '2010-04-26', '2010-04-27', '2010-04-28',\n '2010-04-29', '2010-04-30', '2010-05-01', '2010-05-02',\n '2010-05-03', '2010-05-04', '2010-05-05', '2010-05-06'],\n dtype='datetime64[ns]', freq='D', tz=None)" # ## FAIL: test_infer_tz (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 538, in test_infer_tz self.assertRaises(Exception, tools._infer_tzinfo, start, end) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1576, in assertRaises _callable(_args, *_kwargs) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in __exit__ raise AssertionError("{0} not raised.".format(name)) AssertionError: Exception not raised. # ## FAIL: test_localize_utc_conversion (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 107, in test_localize_utc_conversion self.assert_numpy_array_equal(converted.asi8, expected_naive.asi8) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 644, in assert_numpy_array_equal '{0} is not equal to {1}.'.format(np_array, assert_equal)) AssertionError: [1331337600000000000 1331339400000000000 1331341200000000000 1331343000000000000 1331344800000000000 1331346600000000000 1331348400000000000 1331350200000000000 1331352000000000000 1331353800000000000 1331355600000000000 1331357400000000000 1331359200000000000 1331361000000000000 1331362800000000000 1331364600000000000 1331366400000000000 1331368200000000000 1331370000000000000 1331371800000000000 1331373600000000000 1331375400000000000 1331377200000000000 1331379000000000000 1331380800000000000 1331382600000000000 1331384400000000000 1331386200000000000 1331388000000000000 1331389800000000000 1331391600000000000 1331393400000000000 1331395200000000000 1331397000000000000 1331398800000000000 1331400600000000000 1331402400000000000 1331404200000000000 1331406000000000000 1331407800000000000 1331409600000000000 1331411400000000000 1331413200000000000 1331415000000000000 1331416800000000000 1331418600000000000 1331420400000000000 1331422200000000000 1331424000000000000] is not equal to [1331355600000000000 1331357400000000000 1331359200000000000 1331361000000000000 1331362800000000000 1331364600000000000 1331366400000000000 1331368200000000000 1331370000000000000 1331371800000000000 1331373600000000000 1331375400000000000 1331377200000000000 1331379000000000000 1331380800000000000 1331382600000000000 1331384400000000000 1331386200000000000 1331388000000000000 1331389800000000000 1331391600000000000 1331393400000000000 1331395200000000000 1331397000000000000 1331398800000000000 1331400600000000000 1331402400000000000 1331404200000000000 1331406000000000000 1331407800000000000 1331409600000000000 1331411400000000000 1331413200000000000 1331415000000000000 1331416800000000000 1331418600000000000 1331420400000000000 1331422200000000000 1331424000000000000 1331425800000000000 1331427600000000000 1331429400000000000 1331431200000000000 1331433000000000000 1331434800000000000 1331436600000000000 1331438400000000000 1331440200000000000 1331442000000000000]. # ## FAIL: test_localize_utc_conversion_explicit (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 122, in test_localize_utc_conversion_explicit self.assertTrue(np.array_equal(converted.asi8, expected_naive.asi8)) AssertionError: False is not true # ## FAIL: test_timedelta_push_over_dst_boundary (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 184, in test_timedelta_push_over_dst_boundary self.assertEqual(result, expected) AssertionError: Timestamp('2012-03-11 04:00:00') != Timestamp('2012-03-11 05:00:00') # ## FAIL: test_timedelta_push_over_dst_boundary_explicit (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 197, in test_timedelta_push_over_dst_boundary_explicit self.assertEqual(result, expected) AssertionError: Timestamp('2012-03-11 04:00:00') != Timestamp('2012-03-11 05:00:00') # ## FAIL: test_tz_localize_dti (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 210, in test_tz_localize_dti self.assert_numpy_array_equal(dti2.values, dti_utc.values) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 644, in assert_numpy_array_equal '{0} is not equal to {1}.'.format(np_array, assert_equal)) AssertionError: ['2005-01-01T01:00:00.000000000+0100' '2005-01-01T01:00:00.001000000+0100' '2005-01-01T01:00:00.002000000+0100' ..., '2005-01-01T01:00:30.254000000+0100' '2005-01-01T01:00:30.255000000+0100' '2005-01-01T01:00:30.256000000+0100'] is not equal to ['2005-01-01T06:00:00.000000000+0100' '2005-01-01T06:00:00.001000000+0100' '2005-01-01T06:00:00.002000000+0100' ..., '2005-01-01T06:00:30.254000000+0100' '2005-01-01T06:00:30.255000000+0100' '2005-01-01T06:00:30.256000000+0100']. # ## FAIL: test_utc_box_timestamp_and_localize (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 335, in test_utc_box_timestamp_and_localize self.assertTrue('EDT' in repr(rng_eastern[0].tzinfo) or 'tzfile' in repr(rng_eastern[0].tzinfo)) AssertionError: False is not true # ## FAIL: test_with_tz_ambiguous_times (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 411, in test_with_tz_ambiguous_times self.assertRaises(pytz.NonExistentTimeError, dr.tz_localize, tz) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1576, in assertRaises _callable(_args, *_kwargs) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in __exit__ raise AssertionError("{0} not raised.".format(name)) AssertionError: NonExistentTimeError not raised. # ## FAIL: test_tz_localize_roundtrip (pandas.tseries.tests.test_timezones.TestTimeZones) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 963, in test_tz_localize_roundtrip localized.tz_localize(tz) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in **exit** raise AssertionError("{0} not raised.".format(name)) AssertionError: TypeError not raised. # ## FAIL: test_constructor (pandas.tseries.tests.test_tslib.TestTimestamp) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_tslib.py", line 60, in test_constructor self.assertEqual(result.value, expected_tz) AssertionError: 1404205200000000000 != 1404230400000000000 # ## FAIL: test_repr (pandas.tseries.tests.test_tslib.TestTimestamp) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_tslib.py", line 196, in test_repr self.assertIn(tz_repr, repr(date_tz)) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 577, in assertIn assert a in b, "%s: %r is not in %r" % (msg.format(a, b), a, b) AssertionError: : '/America/Los_Angeles' is not in "Timestamp('2014-03-07 00:00:00')" # ## FAIL: test_tz_localize_roundtrip (pandas.tseries.tests.test_tslib.TestTimestamp) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tseries/tests/test_tslib.py", line 299, in test_tz_localize_roundtrip localized.tz_localize(tz) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 1640, in **exit** raise AssertionError("{0} not raised.".format(name)) AssertionError: TypeError not raised. # ## FAIL: test_getitem_setitem_datetime_tz_dateutil (pandas.tests.test_series.TestSeries) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tests/test_series.py", line 5431, in test_getitem_setitem_datetime_tz_dateutil assert_series_equal(result, ts) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/util/testing.py", line 681, in assert_series_equal assert_almost_equal(left.values, right.values, check_less_precise) File "das/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2758) File "das/src/testing.pyx", line 93, in pandas._testing.assert_almost_equal (pandas/src/testing.c:1843) File "das/src/testing.pyx", line 140, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2590) AssertionError: expected -0.71627 but got -0.58678, with decimal 5 ---
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10121/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10121/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10122
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10122/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10122/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10122/events
https://github.com/pandas-dev/pandas/pull/10122
75,925,251
MDExOlB1bGxSZXF1ZXN0MzUzMTA3Nzc=
10,122
parsing latitude and longitude in wb.get_countries
{ "avatar_url": "https://avatars.githubusercontent.com/u/1001610?v=4", "events_url": "https://api.github.com/users/stared/events{/privacy}", "followers_url": "https://api.github.com/users/stared/followers", "following_url": "https://api.github.com/users/stared/following{/other_user}", "gists_url": "https://api.github.com/users/stared/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stared", "id": 1001610, "login": "stared", "node_id": "MDQ6VXNlcjEwMDE2MTA=", "organizations_url": "https://api.github.com/users/stared/orgs", "received_events_url": "https://api.github.com/users/stared/received_events", "repos_url": "https://api.github.com/users/stared/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stared/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stared/subscriptions", "type": "User", "url": "https://api.github.com/users/stared" }
[]
closed
false
null
[]
null
2
2015-05-13T09:54:14Z
2015-05-13T10:23:43Z
2015-05-13T10:10:48Z
NONE
null
World Bank provides latitude and longitude as strings (and an empty string as a missing value). It's inconvenient so, I parse it to floats. Additionally, I added some description to the `wb.get_countries` function.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10122/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10122/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10122.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10122", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10122.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10122" }
https://api.github.com/repos/pandas-dev/pandas/issues/10123
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10123/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10123/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10123/events
https://github.com/pandas-dev/pandas/issues/10123
75,938,031
MDU6SXNzdWU3NTkzODAzMQ==
10,123
Sort broken after unique -> Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/103538?v=4", "events_url": "https://api.github.com/users/anushshetty/events{/privacy}", "followers_url": "https://api.github.com/users/anushshetty/followers", "following_url": "https://api.github.com/users/anushshetty/following{/other_user}", "gists_url": "https://api.github.com/users/anushshetty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anushshetty", "id": 103538, "login": "anushshetty", "node_id": "MDQ6VXNlcjEwMzUzOA==", "organizations_url": "https://api.github.com/users/anushshetty/orgs", "received_events_url": "https://api.github.com/users/anushshetty/received_events", "repos_url": "https://api.github.com/users/anushshetty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anushshetty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anushshetty/subscriptions", "type": "User", "url": "https://api.github.com/users/anushshetty" }
[ { "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" }
6
2015-05-13T10:34:46Z
2015-05-13T11:18:10Z
2015-05-13T10:43:14Z
NONE
null
I see #1807 issue reoccurring in my setup: ``` >>> Series(Series([1,3,4]).unique()) 0 1 1 3 2 4 dtype: int64 ``` And this doesn't return anything: ``` >>> Series(Series([1,3,4]).unique()).sort() ``` ## INSTALLED VERSIONS commit: None python: 2.7.5.final.0 python-bits: 64 OS: Linux OS-release: 3.14.4-200.fc20.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.16.1-13-gf6c7d89 nose: 1.3.0 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.12.1 statsmodels: None IPython: 0.13.2 sphinx: None patsy: None dateutil: 1.5 pytz: 2012d bottleneck: None tables: 3.0.0 numexpr: 2.2.2 matplotlib: 1.3.1 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.2 lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: 2.5.1 (dt dec pq3 ext
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10123/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10123/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10124
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10124/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10124/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10124/events
https://github.com/pandas-dev/pandas/pull/10124
75,960,058
MDExOlB1bGxSZXF1ZXN0MzUzMTkwOTE=
10,124
BUG: Filter/transform fail in some cases when multi-grouping with a datetime-like key
{ "avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4", "events_url": "https://api.github.com/users/evanpw/events{/privacy}", "followers_url": "https://api.github.com/users/evanpw/followers", "following_url": "https://api.github.com/users/evanpw/following{/other_user}", "gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/evanpw", "id": 1621449, "login": "evanpw", "node_id": "MDQ6VXNlcjE2MjE0NDk=", "organizations_url": "https://api.github.com/users/evanpw/orgs", "received_events_url": "https://api.github.com/users/evanpw/received_events", "repos_url": "https://api.github.com/users/evanpw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evanpw/subscriptions", "type": "User", "url": "https://api.github.com/users/evanpw" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
5
2015-05-13T11:58:09Z
2015-07-30T17:14:50Z
2015-07-30T16:09:29Z
CONTRIBUTOR
null
Fixes GH #10114, and a related problem in transform which was already present in 0.16.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/10124/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10124/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10124.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10124", "merged_at": "2015-07-30T16:09:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10124.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10124" }
https://api.github.com/repos/pandas-dev/pandas/issues/10125
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10125/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10125/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10125/events
https://github.com/pandas-dev/pandas/issues/10125
76,031,756
MDU6SXNzdWU3NjAzMTc1Ng==
10,125
COMPAT: openpyxl >= 2.2 failing
{ "avatar_url": "https://avatars.githubusercontent.com/u/79732?v=4", "events_url": "https://api.github.com/users/jlec/events{/privacy}", "followers_url": "https://api.github.com/users/jlec/followers", "following_url": "https://api.github.com/users/jlec/following{/other_user}", "gists_url": "https://api.github.com/users/jlec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlec", "id": 79732, "login": "jlec", "node_id": "MDQ6VXNlcjc5NzMy", "organizations_url": "https://api.github.com/users/jlec/orgs", "received_events_url": "https://api.github.com/users/jlec/received_events", "repos_url": "https://api.github.com/users/jlec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlec/subscriptions", "type": "User", "url": "https://api.github.com/users/jlec" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
12
2015-05-13T15:46:42Z
2015-09-30T18:58:36Z
2015-09-22T14:12:52Z
CONTRIBUTOR
null
xref #8342, #11008, #9747 a branch to repro on travis: https://github.com/jreback/pandas/commit/262c5f13c9cde338ae5c8d93e0de1db00d28c5e9 ``` nosetests pandas.io.tests.test_excel E...................S./usr/lib64/python3.4/site-packages/openpyxl/styles/styleable.py:111: UserWarning: Use formatting objects such as font directly warn("Use formatting objects such as font directly") /usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): ES/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E./usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E.....S...................S../usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly). def copy(self): ESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.....S................................................. ====================================================================== ERROR: test_creating_and_reading_multiple_sheets (pandas.io.tests.test_excel.ExcelReaderTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 474, in test_creating_and_reading_multiple_sheets for sheetname, df in dfs.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 475, in test_creating_and_reading_multiple_sheets df.to_excel(ew,sheetname) File "/local/src/opensource/pandas/pandas/io/excel.py", line 619, in __exit__ self.close() File "/local/src/opensource/pandas/pandas/io/excel.py", line 623, in close return self.save() File "/local/src/opensource/pandas/pandas/io/excel.py", line 651, in save return self.book.save(self.path) File "/usr/lib64/python3.4/site-packages/openpyxl/workbook/workbook.py", line 298, in save save_workbook(self, filename) File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 196, in save_workbook writer.save(filename, as_template=as_template) File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 179, in save self.write_data(archive, as_template=as_template) File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 65, in write_data archive.writestr(ARC_WORKBOOK_RELS, write_workbook_rels(self.workbook)) File "/usr/lib64/python3.4/site-packages/openpyxl/writer/workbook.py", line 319, in write_workbook_rels i += 1 UnboundLocalError: local variable 'i' referenced before assignment ====================================================================== ERROR: test_basics_with_nan (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 641, in test_basics_with_nan self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_bool_types (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 688, in test_bool_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_colaliases (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 734, in test_colaliases self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_datetimes (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1218, in test_datetimes write_frame.to_excel(path, 'Sheet1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_duplicated_columns (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1178, in test_duplicated_columns write_frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_date_datetime_format (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 864, in test_excel_date_datetime_format df.to_excel(writer1, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_roundtrip_datetime (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 838, in test_excel_roundtrip_datetime tsf.to_excel(path, 'test1', merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_roundtrip_indexname (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 820, in test_excel_roundtrip_indexname df.to_excel(path, merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_sheet_by_name_raise (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 552, in test_excel_sheet_by_name_raise gt.to_excel(pth) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excelwriter_contextmanager (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 564, in test_excelwriter_contextmanager self.frame.to_excel(writer, 'Data1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_float_types (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 676, in test_float_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_inf_roundtrip (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 698, in test_inf_roundtrip frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_int_types (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 656, in test_int_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_mixed (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 621, in test_mixed self.mixed_frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_roundtrip (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 579, in test_roundtrip self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_roundtrip_indexlabels (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 755, in test_roundtrip_indexlabels self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_sheets (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 709, in test_sheets self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_swapped_columns (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1192, in test_swapped_columns write_frame.to_excel(path, 'test1', columns=['B', 'A']) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_float_format (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 969, in test_to_excel_float_format df.to_excel(filename, 'test1', float_format='%.2f') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 905, in test_to_excel_multiindex frame.to_excel(path, 'test1', header=False) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex_dates (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 927, in test_to_excel_multiindex_dates tsframe.to_excel(path, 'test1', merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex_no_write_index (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 952, in test_to_excel_multiindex_no_write_index frame2.to_excel(path, 'test1', index=False) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_output_encoding (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 987, in test_to_excel_output_encoding df.to_excel(filename, sheet_name='TestSheet', encoding='utf8') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_periodindex (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 889, in test_to_excel_periodindex xp.to_excel(path, 'sht1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_unicode_filename (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1005, in test_to_excel_unicode_filename df.to_excel(filename, 'test1', float_format='%.2f') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_tsframe (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 632, in test_tsframe df.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_write_cells_merge_styled (pandas.io.tests.test_excel.Openpyxl2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped orig_method(self, *args, **kwargs) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1382, in test_write_cells_merge_styled writer.write_cells(initial_cells, sheet_name=sheet_name) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_basics_with_nan (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 641, in test_basics_with_nan self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_bool_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 688, in test_bool_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_colaliases (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 734, in test_colaliases self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_datetimes (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1218, in test_datetimes write_frame.to_excel(path, 'Sheet1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_duplicated_columns (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1178, in test_duplicated_columns write_frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_010_hemstring (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1139, in test_excel_010_hemstring res = roundtrip(df) File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1128, in roundtrip df.to_excel(path, header=header, merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_date_datetime_format (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 864, in test_excel_date_datetime_format df.to_excel(writer1, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_roundtrip_datetime (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 838, in test_excel_roundtrip_datetime tsf.to_excel(path, 'test1', merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_roundtrip_indexname (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 820, in test_excel_roundtrip_indexname df.to_excel(path, merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excel_sheet_by_name_raise (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 552, in test_excel_sheet_by_name_raise gt.to_excel(pth) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_excelwriter_contextmanager (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 564, in test_excelwriter_contextmanager self.frame.to_excel(writer, 'Data1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_float_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 676, in test_float_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_inf_roundtrip (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 698, in test_inf_roundtrip frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_int_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 656, in test_int_types frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_mixed (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 621, in test_mixed self.mixed_frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_roundtrip (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 579, in test_roundtrip self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_roundtrip_indexlabels (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 755, in test_roundtrip_indexlabels self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_sheets (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 709, in test_sheets self.frame.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_swapped_columns (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1192, in test_swapped_columns write_frame.to_excel(path, 'test1', columns=['B', 'A']) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_float_format (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 969, in test_to_excel_float_format df.to_excel(filename, 'test1', float_format='%.2f') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 905, in test_to_excel_multiindex frame.to_excel(path, 'test1', header=False) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex_dates (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 927, in test_to_excel_multiindex_dates tsframe.to_excel(path, 'test1', merge_cells=self.merge_cells) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_multiindex_no_write_index (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 952, in test_to_excel_multiindex_no_write_index frame2.to_excel(path, 'test1', index=False) File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_output_encoding (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 987, in test_to_excel_output_encoding df.to_excel(filename, sheet_name='TestSheet', encoding='utf8') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_periodindex (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 889, in test_to_excel_periodindex xp.to_excel(path, 'sht1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_to_excel_unicode_filename (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1005, in test_to_excel_unicode_filename df.to_excel(filename, 'test1', float_format='%.2f') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ====================================================================== ERROR: test_tsframe (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 632, in test_tsframe df.to_excel(path, 'test1') File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel startrow=startrow, startcol=startcol) File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells xcell.style = xcell.style.copy(**style_kwargs) File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func return obj(*args, **kwargs) TypeError: copy() got an unexpected keyword argument 'font' ---------------------------------------------------------------------- Ran 216 tests in 3.809s FAILED (SKIP=60, errors=55) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10125/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10125/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10126
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10126/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10126/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10126/events
https://github.com/pandas-dev/pandas/issues/10126
76,042,551
MDU6SXNzdWU3NjA0MjU1MQ==
10,126
masking empty DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/1150402?v=4", "events_url": "https://api.github.com/users/kdebrab/events{/privacy}", "followers_url": "https://api.github.com/users/kdebrab/followers", "following_url": "https://api.github.com/users/kdebrab/following{/other_user}", "gists_url": "https://api.github.com/users/kdebrab/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kdebrab", "id": 1150402, "login": "kdebrab", "node_id": "MDQ6VXNlcjExNTA0MDI=", "organizations_url": "https://api.github.com/users/kdebrab/orgs", "received_events_url": "https://api.github.com/users/kdebrab/received_events", "repos_url": "https://api.github.com/users/kdebrab/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kdebrab/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdebrab/subscriptions", "type": "User", "url": "https://api.github.com/users/kdebrab" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
6
2015-05-13T16:21:21Z
2015-12-17T19:09:51Z
2015-06-03T19:03:09Z
CONTRIBUTOR
null
In pandas 0.16.1, I get a ValueError when trying to mask an empty DataFrame: ``` python >>> import pandas as pd >>> df = pd.DataFrame() >>> df[df>0] Traceback (most recent call last): File "<ipython-input-3-efe84c9ebabc>", line 1, in <module> df[df>0] File "C:\Python27\lib\site-packages\pandas\core\frame.py", line 1787, in __getitem__ return self._getitem_frame(key) File "C:\Python27\lib\site-packages\pandas\core\frame.py", line 1859, in _getitem_frame raise ValueError('Must pass DataFrame with boolean values only') ValueError: Must pass DataFrame with boolean values only ``` Using 'where' works as expected: ``` python >>> df.where(df>0) Out[4]: Empty DataFrame Columns: [] Index: [] ``` Also, masking a Series works as expected: ``` python >>> ts = pd.Series() >>> ts[ts>0] Out[6]: Series([], dtype: float64) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10126/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10126/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10127
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10127/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10127/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10127/events
https://github.com/pandas-dev/pandas/issues/10127
76,054,725
MDU6SXNzdWU3NjA1NDcyNQ==
10,127
BUG: MultiIndex.from_arrays doesn't raise if arrays are unequal lengths
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2015-05-13T16:58:51Z
2016-12-19T00:26:09Z
2016-12-19T00:26:08Z
CONTRIBUTOR
null
``` python In [62]: index = pd.MultiIndex.from_arrays([['a', 'b', 'c'], [1, 2]]) In [63]: index Out[63]: MultiIndex(levels=[['a', 'b', 'c'], [1, 2]], labels=[[0, 1, 2], [0, 1]]) ``` Probably not what the user wants, and we rely on them being the same length in, e.g. `index.shape` which will raise a ValueError if you access 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/10127/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10127/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10128
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10128/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10128/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10128/events
https://github.com/pandas-dev/pandas/issues/10128
76,106,491
MDU6SXNzdWU3NjEwNjQ5MQ==
10,128
ENH: Support groupby.resample chained operations on MultiIndexed DataFrames
{ "avatar_url": "https://avatars.githubusercontent.com/u/12253302?v=4", "events_url": "https://api.github.com/users/neiseman/events{/privacy}", "followers_url": "https://api.github.com/users/neiseman/followers", "following_url": "https://api.github.com/users/neiseman/following{/other_user}", "gists_url": "https://api.github.com/users/neiseman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/neiseman", "id": 12253302, "login": "neiseman", "node_id": "MDQ6VXNlcjEyMjUzMzAy", "organizations_url": "https://api.github.com/users/neiseman/orgs", "received_events_url": "https://api.github.com/users/neiseman/received_events", "repos_url": "https://api.github.com/users/neiseman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/neiseman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neiseman/subscriptions", "type": "User", "url": "https://api.github.com/users/neiseman" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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" }
5
2015-05-13T20:05:26Z
2021-04-18T06:45:53Z
null
NONE
null
#10063 doesn't appear to have been completely fixed. While the exact example I gave now works (the resample), what if instead of a resample I had wanted to do a tshift? I would have wanted to be able to do `df.groupby(level='symbol').tshift(1, 'D')`, which still returns an empty DataFrame. Here, there's no aggregating in the time dimension so the TimeGrouper syntax that was the proposed solution wouldn't make sense. I also don't understand why the `df.groupby([pd.Grouper(level='symbol'), pd.Grouper(level='dt', freq='M')]).mean()` syntax is necessary instead of simply being able to do `df.groupby(level='symbol').resample('M', how='mean')`? The latter seems like much better design. ``` df = DataFrame({'A' : 1 },index=pd.MultiIndex.from_product([list('ab'),date_range('20130101',periods=80)],names=['one','two'])) df.groupby([pd.Grouper(level='one'),pd.Grouper(level='two',freq='M')]).tshift(-1,'M') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10128/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10128/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10129
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10129/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10129/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10129/events
https://github.com/pandas-dev/pandas/issues/10129
76,164,213
MDU6SXNzdWU3NjE2NDIxMw==
10,129
API: Implement pipe protocol, a method for extensible method chaining
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
59
2015-05-13T23:43:47Z
2015-06-06T03:14:27Z
2015-06-06T03:14:27Z
CONTRIBUTOR
null
Today @shoyer and I were talking about a new "protocol" that will let us sidestep the whole macro / method chaining issue. The basic idea is that pandas objects define a `pipe` method (ideally other libraries will implement this to, assuming this is useful). Based on the discussions below, we're leaning towards a method like ``` python def pipe(self, func, *args, **kwargs): pipe_func = getattr(func, '__pipe_func__', func) return pipe_func(self, *args, **kwargs) ``` That's it. This lets you write code like: ``` python import seaborn as sns (sns.load_dataset('iris') .query("sepal_length > 5") .assign(sepal_ratio = lambda df: df.sepal_length / df.sepal_width) .pipe(lambda df: sns.violinplot(x='species', y='sepal_ratio', data=df)) ) ``` seaborn didn't have to do anything! If the DataFrame is the first argument to the function, things are even simpler: ``` python def f(x): return x / 2 df['sepal_length'].pipe(f) ``` Users or libraries can work around the need for the (somewhat ugly) `lambda _:`, by using the `__pipe_func__` attribute of the function being `pipe`d in. This is where a protocol (de facto or official) would be useful, since libraries that know nothing else about each other can rely on it. As an example, consider seaborn's violin plot, which expects a DataFrame as its fourth argument, `data`. Seaborn can define a simple decorator to attach a `__pipe_func__` attribute, allowing _it_ to define how it expects to be `pipe`d to. ``` python def pipeable(func): def pipe_func(data, *args, **kwargs): return func(*args, data=data, **kwargs) func.__pipe_func__ = pipe_func return func # now we decorate all the Seaborn methods as pipeable @pipeable def violinplot(x=None, y=None, hue=None, data=None, ...): # ... ``` And users write ``` python (sns.load_dataset('iris') .query("sepal_length > 5") .assign(sepal_ratio = lambda x: x.sepal_length / x.sepal_width) .pipe(sns.violinplot, x='species', y='sepal_ratio') ) ``` ### Why? Heavily nested function calls are bad. They're hard to read, and can easily introduce bugs. Consider: ``` python # f, g, and h are functions that take and receive a DataFrame result = f(g(h(df), arg1=1), arg2=2, arg3=3) ``` For pandas, the approach has been to add `f`, `g`, and `h` as methods to (say) `DataFrame` ``` python (df.h() .g(arg1=1) .f(arg2=2, arg3=3) ) ``` The code is certainly cleaner. It reads and flows top to bottom instead of inside-out. The function arguments are next to the function calls. But there's a hidden cost. DataFrame has something like 200+ methods, which is crazy. It's less flexible for users since it's hard to get their own functions into pipelines (short of monkey-patching). With `.pipe`, we can ``` python (df.pipe(h) .pipe(g, arg1=1) .pipe(f, arg2=2, arg3=3) ) ``` The other way around the nested calls is using temporary variables: ``` python r1 = h(df) r2 = g(r1, arg1=1) r3 = f(r2, arg2=2, arg3=3) ``` Which is better, but not as good as the `.pipe` solution. --- A relevant thread on python-ideas, started by @mrocklin: https://mail.python.org/pipermail/python-ideas/2015-March/032745.html This doesn't achieve everything macros could. We still can't do things like `df.plot(x=x_col, y=y_col)` where `x_col` and `y_col` are captured by `df`'s namespace. But it may be good enough. Going to cc a bunch of people here, who've had interest in the past. @shoyer @mrocklin @datnamer @dalejung
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10129/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10129/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10130
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10130/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10130/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10130/events
https://github.com/pandas-dev/pandas/pull/10130
76,201,260
MDExOlB1bGxSZXF1ZXN0MzUzODkwNDc=
10,130
CLN: clean up unused imports
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
1
2015-05-14T02:26:40Z
2015-06-02T19:26:11Z
2015-05-14T11:52:08Z
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/10130/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10130/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10130.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10130", "merged_at": "2015-05-14T11:52:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10130.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10130" }
https://api.github.com/repos/pandas-dev/pandas/issues/10131
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10131/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10131/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10131/events
https://github.com/pandas-dev/pandas/pull/10131
76,207,720
MDExOlB1bGxSZXF1ZXN0MzUzOTAxNzY=
10,131
BUG: fix Series.plot label setting
{ "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": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "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": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
7
2015-05-14T02:56:38Z
2015-08-18T12:44:40Z
2015-05-19T12:27:19Z
CONTRIBUTOR
null
Closes https://github.com/pydata/pandas/issues/10119, a regression in 0.16.1 Basically `Series.plot(label='foo')` isn't actually setting the label. I want to look at one more thing. With this fix you'd need ``` python s.plot(label='foo', legend=True ``` to get the legend to actually show up. I can't remember what the old behavior was. At least for seaborn, setting a label implies that the legend should be drawn (e.g. `sns.kdeplot(s, label='foo')`)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10131/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10131/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10131.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10131", "merged_at": "2015-05-19T12:27:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10131.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10131" }
https://api.github.com/repos/pandas-dev/pandas/issues/10132
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10132/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10132/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10132/events
https://github.com/pandas-dev/pandas/pull/10132
76,317,672
MDExOlB1bGxSZXF1ZXN0MzU0MTExNDc=
10,132
BUG: get_group fails when multi-grouping with a categorical
{ "avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4", "events_url": "https://api.github.com/users/evanpw/events{/privacy}", "followers_url": "https://api.github.com/users/evanpw/followers", "following_url": "https://api.github.com/users/evanpw/following{/other_user}", "gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/evanpw", "id": 1621449, "login": "evanpw", "node_id": "MDQ6VXNlcjE2MjE0NDk=", "organizations_url": "https://api.github.com/users/evanpw/orgs", "received_events_url": "https://api.github.com/users/evanpw/received_events", "repos_url": "https://api.github.com/users/evanpw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evanpw/subscriptions", "type": "User", "url": "https://api.github.com/users/evanpw" }
[ { "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
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
8
2015-05-14T10:42:15Z
2015-09-19T00:38:07Z
2015-06-05T22:03:42Z
CONTRIBUTOR
null
Example: ``` .python >>> df = pd.DataFrame({'a' : pd.Categorical('xyxy'), 'b' : 1, 'c' : 2}) >>> df.groupby(['a', 'b']).get_group(('x', 1)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/evanpw/Workspace/pandas/pandas/core/groupby.py", line 601, in get_group inds = self._get_index(name) File "/home/evanpw/Workspace/pandas/pandas/core/groupby.py", line 429, in _get_index sample = next(iter(self.indices)) File "/home/evanpw/Workspace/pandas/pandas/core/groupby.py", line 414, in indices return self.grouper.indices File "pandas/src/properties.pyx", line 34, in pandas.lib.cache_readonly.__get__ (pandas/lib.c:41912) File "/home/evanpw/Workspace/pandas/pandas/core/groupby.py", line 1305, in indices return _get_indices_dict(label_list, keys) File "/home/evanpw/Workspace/pandas/pandas/core/groupby.py", line 3762, in _get_indices_dict return lib.indices_fast(sorter, group_index, keys, sorted_labels) File "pandas/lib.pyx", line 1385, in pandas.lib.indices_fast (pandas/lib.c:23843) TypeError: Cannot convert Categorical to numpy.ndarray ``` The problem is that `Grouping.group_index` is a CategoricalIndex, so calling `get_values()` gives you a `Categorical`, which needs one more application of `get_values()` to get an `ndarray`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10132/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10132/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10132.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10132", "merged_at": "2015-06-05T22:03:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10132.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10132" }
https://api.github.com/repos/pandas-dev/pandas/issues/10133
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10133/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10133/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10133/events
https://github.com/pandas-dev/pandas/pull/10133
76,350,971
MDExOlB1bGxSZXF1ZXN0MzU0MTg5MDQ=
10,133
BUG: Strings with exponent but no decimal point parsed as integers in python csv engine
{ "avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4", "events_url": "https://api.github.com/users/evanpw/events{/privacy}", "followers_url": "https://api.github.com/users/evanpw/followers", "following_url": "https://api.github.com/users/evanpw/following{/other_user}", "gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/evanpw", "id": 1621449, "login": "evanpw", "node_id": "MDQ6VXNlcjE2MjE0NDk=", "organizations_url": "https://api.github.com/users/evanpw/orgs", "received_events_url": "https://api.github.com/users/evanpw/received_events", "repos_url": "https://api.github.com/users/evanpw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evanpw/subscriptions", "type": "User", "url": "https://api.github.com/users/evanpw" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
7
2015-05-14T12:57:00Z
2015-06-10T13:40:52Z
2015-06-09T10:49:18Z
CONTRIBUTOR
null
Fixes GH #9565. I also made the handling of out-of-range integers consistent with the C engine: parse as a string rather than a double.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10133/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10133/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10133.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10133", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10133.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10133" }
https://api.github.com/repos/pandas-dev/pandas/issues/10134
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10134/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10134/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10134/events
https://github.com/pandas-dev/pandas/issues/10134
76,382,294
MDU6SXNzdWU3NjM4MjI5NA==
10,134
Can't create DataFrame from SQLite3 cursor
{ "avatar_url": "https://avatars.githubusercontent.com/u/6324742?v=4", "events_url": "https://api.github.com/users/hexum/events{/privacy}", "followers_url": "https://api.github.com/users/hexum/followers", "following_url": "https://api.github.com/users/hexum/following{/other_user}", "gists_url": "https://api.github.com/users/hexum/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hexum", "id": 6324742, "login": "hexum", "node_id": "MDQ6VXNlcjYzMjQ3NDI=", "organizations_url": "https://api.github.com/users/hexum/orgs", "received_events_url": "https://api.github.com/users/hexum/received_events", "repos_url": "https://api.github.com/users/hexum/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hexum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hexum/subscriptions", "type": "User", "url": "https://api.github.com/users/hexum" }
[ { "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" }
11
2015-05-14T14:48:28Z
2018-07-07T11:19:33Z
2018-07-07T11:19:28Z
NONE
null
When I pass cursor as data to DataFrame constructor an error occurs. ``` cursor = sqlite.execute(sql) pd.DataFrame(cursor) /usr/lib/python3/dist-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy) 255 copy=copy) 256 elif isinstance(data, collections.Iterator): --> 257 raise TypeError("data argument can't be an iterator") 258 else: 259 try: TypeError: data argument can't be an iterator ``` But normal generators is accepted ``` def gen(): yield (1,2,3) yield (4,5,6) yield (7,8,9) pd.DataFrame(gen()) Out[171]: 0 1 2 0 1 2 3 1 4 5 6 2 7 8 9 ``` It feels like inconsistence.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10134/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10134/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10135
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10135/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10135/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10135/events
https://github.com/pandas-dev/pandas/pull/10135
76,383,773
MDExOlB1bGxSZXF1ZXN0MzU0MjgxODQ=
10,135
(WIP) PERF: improve .str perf for all-string values (about 2x-)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "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": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2015-05-14T14:53:02Z
2015-11-13T05:40:17Z
2015-05-14T15:55:15Z
MEMBER
null
Related to #10081. Make a short path using numpy's string funcs when all the target values are strings. Otherwise, use current path. Followings are current comparison results: ``` import pandas as pd import numpy as np import string import random np.random.seed(1) s = [''.join([random.choice(string.ascii_letters + string.digits) for i in range(3)]) for i in range(1000000)] # s_str uses short path s_str = pd.Series(s) # set object s[-1] = 1 # s_obj uses current path s_obj = pd.Series(s) ``` ``` %timeit s_str.str.lower() #1 loops, best of 3: 696 ms per loop %timeit s_obj.str.lower() #1 loops, best of 3: 1.46 s per loop %timeit s_str.str.split('a') #1 loops, best of 3: 1.55 s per loop %timeit s_obj.str.split('a') #1 loops, best of 3: 3.52 s per loop ``` The logic has an overhead to check whether target values are all-string using `lib.is_string_array`. But this should be speed-up in most cases because it takes relatively shorter time than string ops, and (I believe) values should be all-string in most cases. ``` %timeit pd.lib.is_string_array(s_str.values) #10 loops, best of 3: 21.9 ms per loop ``` If it looks OK, I'll work on all the funcs which is supported by numpy. - [ ] Add all numpy funcs - http://docs.scipy.org/doc/numpy/reference/routines.char.html - [ ] Add tests to check numpy results for all-string values are identical as current results. - [ ] Add vbench (both for all-string and object-included)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10135/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10135/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10135.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10135", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10135.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10135" }
https://api.github.com/repos/pandas-dev/pandas/issues/10136
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10136/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10136/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10136/events
https://github.com/pandas-dev/pandas/pull/10136
76,402,795
MDExOlB1bGxSZXF1ZXN0MzU0MzQxNTQ=
10,136
DOC: consistent imports (GH9886) part II
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
0
2015-05-14T15:53:07Z
2015-06-02T19:26:11Z
2015-05-19T21:21:48Z
MEMBER
null
Further work on #9886
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10136/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10136/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10136.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10136", "merged_at": "2015-05-19T21:21:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10136.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10136" }
https://api.github.com/repos/pandas-dev/pandas/issues/10137
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10137/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10137/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10137/events
https://github.com/pandas-dev/pandas/issues/10137
76,408,763
MDU6SXNzdWU3NjQwODc2Mw==
10,137
Typo in pandas/pandas/io/parsers.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/2746267?v=4", "events_url": "https://api.github.com/users/endisway/events{/privacy}", "followers_url": "https://api.github.com/users/endisway/followers", "following_url": "https://api.github.com/users/endisway/following{/other_user}", "gists_url": "https://api.github.com/users/endisway/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/endisway", "id": 2746267, "login": "endisway", "node_id": "MDQ6VXNlcjI3NDYyNjc=", "organizations_url": "https://api.github.com/users/endisway/orgs", "received_events_url": "https://api.github.com/users/endisway/received_events", "repos_url": "https://api.github.com/users/endisway/repos", "site_admin": false, "starred_url": "https://api.github.com/users/endisway/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/endisway/subscriptions", "type": "User", "url": "https://api.github.com/users/endisway" }
[ { "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
2015-05-14T16:14:04Z
2015-05-14T16:22:41Z
2015-05-14T16:22:12Z
NONE
null
In pandas/pandas/io/parsers.py line 1000, np.uin8 is referred. It is an inexistent member in numpy. I suppose it's a typo for np.uint8.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10137/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10137/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10138
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10138/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10138/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10138/events
https://github.com/pandas-dev/pandas/issues/10138
76,466,387
MDU6SXNzdWU3NjQ2NjM4Nw==
10,138
ENH: groupby.apply for Categorical groupers should preserve categories (like .agg)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
1
2015-05-14T19:34:37Z
2015-06-04T13:50:27Z
2015-06-04T13:50:27Z
CONTRIBUTOR
null
from [SO](http://stackoverflow.com/questions/30245145/pandas-groupby-apply-vs-agggregate-with-missing-categories) ``` missing = pd.Categorical(list('aaa'), categories=['a', 'b']) dense = pd.Categorical(list('abc')) values = np.arange(len(dense)) df = pd.DataFrame({'missing': missing, 'dense': dense, 'values': values}) grouped = df.groupby(['missing', 'dense']) # does reindex output for missing categories grouped.mean() grouped.agg(np.mean) # does not reindex the output for the missing categories grouped.apply(lambda chunk: np.mean(chunk)) ``` So the `_wrap_applied_output` need a call to `_reindex_output` as a post-processing step.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10138/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10138/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10139
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10139/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10139/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10139/events
https://github.com/pandas-dev/pandas/pull/10139
76,493,772
MDExOlB1bGxSZXF1ZXN0MzU0NjMzOTA=
10,139
BUG: declare and use correctly self.unique_check
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
null
9
2015-05-14T21:20:10Z
2015-06-30T10:55:21Z
2015-05-29T08:40:01Z
MEMBER
null
I am not sure I understood the last comment in [the previous pull request](https://github.com/pydata/pandas/pull/9526), but anyway this is a rebased version. In the previous PR I proposed to simply make the `__get__` of `is_unique` directly rely on `self.initialized`, but I am no more so sure it is a good idea, since the current status is slightly redundant but clearer (and coherent with the use of "is_monotonic").
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10139/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10139/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10139.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10139", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10139.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10139" }
https://api.github.com/repos/pandas-dev/pandas/issues/10140
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10140/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10140/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10140/events
https://github.com/pandas-dev/pandas/issues/10140
76,519,053
MDU6SXNzdWU3NjUxOTA1Mw==
10,140
Grouping by pd.cut() results creates a categorical index
{ "avatar_url": "https://avatars.githubusercontent.com/u/4842513?v=4", "events_url": "https://api.github.com/users/therriault/events{/privacy}", "followers_url": "https://api.github.com/users/therriault/followers", "following_url": "https://api.github.com/users/therriault/following{/other_user}", "gists_url": "https://api.github.com/users/therriault/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/therriault", "id": 4842513, "login": "therriault", "node_id": "MDQ6VXNlcjQ4NDI1MTM=", "organizations_url": "https://api.github.com/users/therriault/orgs", "received_events_url": "https://api.github.com/users/therriault/received_events", "repos_url": "https://api.github.com/users/therriault/repos", "site_admin": false, "starred_url": "https://api.github.com/users/therriault/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/therriault/subscriptions", "type": "User", "url": "https://api.github.com/users/therriault" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
12
2015-05-14T23:03:39Z
2015-06-20T12:48:09Z
2015-06-20T12:48:09Z
NONE
null
After upgrading from 0.16.0 to 0.16.1, some of my plotting stopped functioning right, and after debugging I figured out that it was an issue with the groupby results---namely, that they're getting a `CategoricalIndex` even though they're being grouped by a number. This is basically what I do in my code (simplified for this example): ``` df = pd.DataFrame() df['x'] = 100 * np.random.random(100) df['y'] = df.x**2 binedges = np.arange(0,110,10) binlabels = np.arange(5,105,10) z = df.groupby(pd.cut(df.x,bins=binedges ,labels=binlabels )).y.mean() ``` And here's what that produces: ``` x 5 21.809599 15 215.432515 25 556.803743 35 1282.261483 45 1941.166247 55 3104.923704 65 4256.942052 75 5862.686054 85 7304.835127 95 8810.194492 Name: y, dtype: float64 ``` When I tried plotting this, the scale was all messed up---it was treating each of the 10 bins as an element of `[0,1,2,...,9]`, which wasn't apparent until I tried changing the `xticks` parameter and everything went screwy. Took a while to debug, but finally found the culprit, by looking at `z.index`: ``` CategoricalIndex([5, 15, 25, 35, 45, 55, 65, 75, 85, 95], categories=[5, 15, 25, 35, 45, 55, 65, 75, ...], ordered=True, name=u'x', dtype='category') ``` This isn't the desired behavior, right? I know the `CategoricalIndex` feature is new, but I don't think this was an intended feature. This same code previously produced an `Int64Index` that would plot just fine, and there's no use case I can see for changing that. Or if that was what was intended, is there any way to select an `Int64Index` instead (other than converting it after the fact)? UPDATE: Also note that this screws up using pd.cut() to create bins in a dataframe, because the indices don't line up afterward. So doing something like ``` df['bin'] = pd.cut(df.x,bins=mybins,labels=mylabels) ``` will just result in an empty column. So I can't imagine that this is the correct behavior.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10140/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10140/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10141
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10141/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10141/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10141/events
https://github.com/pandas-dev/pandas/pull/10141
76,556,304
MDExOlB1bGxSZXF1ZXN0MzU0NzkyODY=
10,141
CLN: clean up unused imports part II
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
1
2015-05-15T02:03:35Z
2015-06-02T19:26:12Z
2015-05-15T13:09:15Z
CONTRIBUTOR
null
found quite a few more under `pandas/tseries/` ... this should be it for 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/10141/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10141/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10141.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10141", "merged_at": "2015-05-15T13:09:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10141.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10141" }
https://api.github.com/repos/pandas-dev/pandas/issues/10142
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10142/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10142/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10142/events
https://github.com/pandas-dev/pandas/pull/10142
76,588,685
MDExOlB1bGxSZXF1ZXN0MzU0ODQwNDc=
10,142
ENH: groupby.apply for Categorical should preserve categories (closes…
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
12
2015-05-15T04:33:27Z
2015-06-04T15:18:02Z
2015-06-04T13:50:27Z
CONTRIBUTOR
null
closes #10138
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10142/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10142/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10142.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10142", "merged_at": "2015-06-04T13:50:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10142.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10142" }
https://api.github.com/repos/pandas-dev/pandas/issues/10143
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10143/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10143/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10143/events
https://github.com/pandas-dev/pandas/issues/10143
76,635,005
MDU6SXNzdWU3NjYzNTAwNQ==
10,143
ENH: Iterate over HDF store hierarchically
{ "avatar_url": "https://avatars.githubusercontent.com/u/12072865?v=4", "events_url": "https://api.github.com/users/nileracecrew/events{/privacy}", "followers_url": "https://api.github.com/users/nileracecrew/followers", "following_url": "https://api.github.com/users/nileracecrew/following{/other_user}", "gists_url": "https://api.github.com/users/nileracecrew/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nileracecrew", "id": 12072865, "login": "nileracecrew", "node_id": "MDQ6VXNlcjEyMDcyODY1", "organizations_url": "https://api.github.com/users/nileracecrew/orgs", "received_events_url": "https://api.github.com/users/nileracecrew/received_events", "repos_url": "https://api.github.com/users/nileracecrew/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nileracecrew/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nileracecrew/subscriptions", "type": "User", "url": "https://api.github.com/users/nileracecrew" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": "2019-01-26T00:51:26Z", "closed_issues": 2048, "created_at": "2018-03-29T12:00:12Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2019-01-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/55", "id": 3228419, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels", "node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==", "number": 55, "open_issues": 0, "state": "closed", "title": "0.24.0", "updated_at": "2019-01-29T07:42:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55" }
8
2015-05-15T07:42:27Z
2018-06-26T22:53:49Z
2018-06-26T22:53:49Z
CONTRIBUTOR
null
I am relatively new to pandas, but have been using raw HDF5 files for a long itme, so apologies if this feature or something equivalent already exists. As stated in the documentation, it is possible to create hierarchies of data stores: ``` python store.put('/first_group/df1', df1) store.put('/first_group/df2', df2) store.put('/second_group/df3', df3) ``` However, it seems that `store.keys()` can only provide a flattened list of all available groups. It would be nice to be able to walk the HDF5 file hierarchically. A couple examples (this is borrowing a bit from the h5py API): ``` python # do stuff on each subgroup/substore in /first_group for s in store['first_group'].values() : # do stuff on df1 and df2 # visit each group at the root level for s in store.values() : if 'df1' in s : # do stuff on any store named 'df1' ``` The main use case I would have for something like this is that I have many dataframes with different schema but would like to group some of them together and then iterate through those groups. Best way I can think to emulate this is to parse the strings in `store.keys()`, but that is pretty ugly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10143/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10143/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10144
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10144/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10144/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10144/events
https://github.com/pandas-dev/pandas/issues/10144
76,685,216
MDU6SXNzdWU3NjY4NTIxNg==
10,144
BDay and bday confusion.
{ "avatar_url": "https://avatars.githubusercontent.com/u/6428892?v=4", "events_url": "https://api.github.com/users/harshnisar/events{/privacy}", "followers_url": "https://api.github.com/users/harshnisar/followers", "following_url": "https://api.github.com/users/harshnisar/following{/other_user}", "gists_url": "https://api.github.com/users/harshnisar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/harshnisar", "id": 6428892, "login": "harshnisar", "node_id": "MDQ6VXNlcjY0Mjg4OTI=", "organizations_url": "https://api.github.com/users/harshnisar/orgs", "received_events_url": "https://api.github.com/users/harshnisar/received_events", "repos_url": "https://api.github.com/users/harshnisar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/harshnisar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/harshnisar/subscriptions", "type": "User", "url": "https://api.github.com/users/harshnisar" }
[ { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "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": 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" }
10
2015-05-15T10:32:42Z
2021-04-18T06:48:01Z
2021-04-18T06:48:01Z
CONTRIBUTOR
null
Are BDay and bday the same? Is one of them deprecated or something? ``` In [48]: pd.datetools.BDay? Init signature: pd.datetools.BDay(self, n=1, normalize=False, **kwds) Docstring: DateOffset subclass representing possibly n business days File: c:\python27\lib\site-packages\pandas\tseries\offsets.py Type: type In [49]: pd.datetools.bday? Type: BusinessDay String form: <BusinessDay> File: c:\python27\lib\site-packages\pandas\tseries\offsets.py Signature: pd.datetools.bday(self, other) Docstring: DateOffset subclass representing possibly n business days Call signature: pd.datetools.bday(other) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10144/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10144/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10145
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10145/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10145/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10145/events
https://github.com/pandas-dev/pandas/issues/10145
76,685,752
MDU6SXNzdWU3NjY4NTc1Mg==
10,145
DOC: add nlargest/nsmallest to API.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/1523574?v=4", "events_url": "https://api.github.com/users/RomanPekar/events{/privacy}", "followers_url": "https://api.github.com/users/RomanPekar/followers", "following_url": "https://api.github.com/users/RomanPekar/following{/other_user}", "gists_url": "https://api.github.com/users/RomanPekar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RomanPekar", "id": 1523574, "login": "RomanPekar", "node_id": "MDQ6VXNlcjE1MjM1NzQ=", "organizations_url": "https://api.github.com/users/RomanPekar/orgs", "received_events_url": "https://api.github.com/users/RomanPekar/received_events", "repos_url": "https://api.github.com/users/RomanPekar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RomanPekar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RomanPekar/subscriptions", "type": "User", "url": "https://api.github.com/users/RomanPekar" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-15T10:34:53Z
2015-06-02T19:25:20Z
2015-05-26T10:32:56Z
CONTRIBUTOR
null
At the moment there's no easy way to partially sort the DataFrame to get top N rows, could be useful feature. There's partial sorting available for numpy within the [bottleneck](http://berkeleyanalytics.com/bottleneck/reference.html#bottleneck.partsort) library. Here's link to SO question about numpy partial sort - http://stackoverflow.com/questions/10337533/a-fast-way-to-find-the-largest-n-elements-in-an-numpy-array
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10145/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10145/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10146
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10146/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10146/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10146/events
https://github.com/pandas-dev/pandas/issues/10146
76,694,158
MDU6SXNzdWU3NjY5NDE1OA==
10,146
FAIL: test_sum (pandas.tests.test_series.TestSeries)
{ "avatar_url": "https://avatars.githubusercontent.com/u/79732?v=4", "events_url": "https://api.github.com/users/jlec/events{/privacy}", "followers_url": "https://api.github.com/users/jlec/followers", "following_url": "https://api.github.com/users/jlec/following{/other_user}", "gists_url": "https://api.github.com/users/jlec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlec", "id": 79732, "login": "jlec", "node_id": "MDQ6VXNlcjc5NzMy", "organizations_url": "https://api.github.com/users/jlec/orgs", "received_events_url": "https://api.github.com/users/jlec/received_events", "repos_url": "https://api.github.com/users/jlec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlec/subscriptions", "type": "User", "url": "https://api.github.com/users/jlec" }
[]
closed
false
null
[]
null
1
2015-05-15T11:09:53Z
2015-05-15T17:08:13Z
2015-05-15T17:08:13Z
CONTRIBUTOR
null
# ## FAIL: test_sum (pandas.tests.test_series.TestSeries) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tests/test_series.py", line 2302, in test_sum self._check_stat_op('sum', np.sum) File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tests/test_series.py", line 2666, in _check_stat_op testit() File "/var/tmp/portage/dev-python/pandas-0.16.1/work/pandas-0.16.1-python3_3/lib/pandas/tests/test_series.py", line 2639, in testit self.assertTrue(np.isnan(f(allna))) AssertionError: False is not true --- ## INSTALLED VERSIONS commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 4.0.2-lh-nvidia machine: x86_64 processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz byteorder: little LC_ALL: None LANG: en_GB.utf8 pandas: 0.16.1 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.15.1 statsmodels: None IPython: 3.1.0 sphinx: 1.3.1 patsy: None dateutil: 2.4.2 pytz: 2015.4 bottleneck: 1.0.0 tables: 3.1.1 numexpr: 2.4.1 matplotlib: 1.4.3 openpyxl: 2.2.2 xlrd: 0.9.3 xlwt: 1.0.0 xlsxwriter: None lxml: 3.4.4 bs4: 4.3.2 html5lib: 0.999 httplib2: 0.9.1 apiclient: None sqlalchemy: None pymysql: 0.6.6.None psycopg2: 2.6 (dt dec pq3 ext lo64)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10146/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10146/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10147
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10147/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10147/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10147/events
https://github.com/pandas-dev/pandas/issues/10147
76,738,392
MDU6SXNzdWU3NjczODM5Mg==
10,147
BUG: Odd behavior of kwarg 'how' in MultiIndex-to-Index join
{ "avatar_url": "https://avatars.githubusercontent.com/u/7398331?v=4", "events_url": "https://api.github.com/users/dmsul/events{/privacy}", "followers_url": "https://api.github.com/users/dmsul/followers", "following_url": "https://api.github.com/users/dmsul/following{/other_user}", "gists_url": "https://api.github.com/users/dmsul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dmsul", "id": 7398331, "login": "dmsul", "node_id": "MDQ6VXNlcjczOTgzMzE=", "organizations_url": "https://api.github.com/users/dmsul/orgs", "received_events_url": "https://api.github.com/users/dmsul/received_events", "repos_url": "https://api.github.com/users/dmsul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dmsul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmsul/subscriptions", "type": "User", "url": "https://api.github.com/users/dmsul" }
[ { "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
4
2015-05-15T14:13:29Z
2019-03-01T03:01:59Z
2019-03-01T03:01:59Z
NONE
null
``` python import pandas as pd import numpy as np from pandas.util.testing import assert_frame_equal df = pd.DataFrame(np.arange(12).reshape(-1, 3), columns=['a', 'b', 'c']) df.index = pd.MultiIndex.from_tuples( [(1, 2000), (1, 2001), (2, 2000), (2, 2001)], names=['id', 'year']) s = pd.Series([True, True], index=[1, 3], name='flag') s.index.name = 'id' # These two should *NOT* be the same, but they are both like a standard 'inner' left = df.join(s, how='left') inner = df.join(s, how='inner') assert_frame_equal(left, inner) # These two should *NOT* be the same, but they are both like a standard 'outer' right = df.join(s, how='right') outer = df.join(s, how='outer') assert_frame_equal(right, outer) # A standard 'left' merge is actually achieved with a MultiIndex by invoking `how='right'` std_left = df.reset_index('year').join(s, how='left').set_index('year', append=True) assert_frame_equal(right, std_left) ``` My impression from the example in #6356 is that the effect of `how` should not change with a MultiIndex. I know that #6363 is what was actually merged, so please correct me if my understanding is wrong. ## INSTALLED VERSIONS commit: None python: 2.7.9.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.16.1 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: None patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 1.1.0dev tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.4 pymysql: None psycopg2: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10147/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10147/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10148
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10148/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10148/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10148/events
https://github.com/pandas-dev/pandas/issues/10148
76,753,914
MDU6SXNzdWU3Njc1MzkxNA==
10,148
BUG: Merge on multiple indices fails with incorrect error message
{ "avatar_url": "https://avatars.githubusercontent.com/u/81476?v=4", "events_url": "https://api.github.com/users/fonnesbeck/events{/privacy}", "followers_url": "https://api.github.com/users/fonnesbeck/followers", "following_url": "https://api.github.com/users/fonnesbeck/following{/other_user}", "gists_url": "https://api.github.com/users/fonnesbeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fonnesbeck", "id": 81476, "login": "fonnesbeck", "node_id": "MDQ6VXNlcjgxNDc2", "organizations_url": "https://api.github.com/users/fonnesbeck/orgs", "received_events_url": "https://api.github.com/users/fonnesbeck/received_events", "repos_url": "https://api.github.com/users/fonnesbeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fonnesbeck/subscriptions", "type": "User", "url": "https://api.github.com/users/fonnesbeck" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2015-05-15T15:05:32Z
2015-05-16T14:36:34Z
2015-05-15T16:28:39Z
NONE
null
I have a 2 DataFrame objects that I am trying to merge on a hierarchical index in one (top below) object with two columns in another (bottom below): ![frames](http://d.pr/i/1kWvE+) However, merging these via the following: ``` ecmo_by_year = pd.merge(pd.DataFrame(ecmo_count, columns=['ECMO']), runs_sex, left_index=True, right_on=('YearEcls', 'Sex')) ``` Yields an incorrect ValueError: ``` ValueError: len(right_on) must equal the number of levels in the index of "left" ``` There are two levels in the hierarchical index, and two columns specified to join on the other, so this appears not to be a problem. Running Pandas 0.16.1 on Python 3.4 (Homebrew) on OS X 10.10. This code ran just fine on previous versions of Pandas (0.15), so it looks like a bug was introduced.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10148/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10148/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10149
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10149/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10149/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10149/events
https://github.com/pandas-dev/pandas/issues/10149
76,837,115
MDU6SXNzdWU3NjgzNzExNQ==
10,149
BUG: Index.union cannot handle array-likes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
0
2015-05-15T19:51:00Z
2015-06-02T19:25:20Z
2015-06-01T11:45:10Z
MEMBER
null
Though API doc says `Index.union` can accept `Index` or array-like, it raises errors. - http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Index.union.html ``` import numpy as np import pandas as pd idx = pd.Index([1, 2, 3]) idx.union([2, 3, 4]) # AttributeError: 'list' object has no attribute 'dtype' idx.union(pd.Series([2, 3, 4])) # AttributeError: 'Series' object has no attribute 'is_monotonic' idx.union(np.array([2, 3, 4])) # AttributeError: 'numpy.ndarray' object has no attribute 'is_monotonic' ``` NOTE: `intersection` looks OK. ``` idx.intersection([2, 3, 4]) # Int64Index([2, 3], dtype='int64') idx.intersection(pd.Series([2, 3, 4])) # Int64Index([2, 3], dtype='int64') idx.union([2, 3, 4]) # Int64Index([2, 3], dtype='int64') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10149/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10149/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10150
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10150/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10150/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10150/events
https://github.com/pandas-dev/pandas/issues/10150
76,839,233
MDU6SXNzdWU3NjgzOTIzMw==
10,150
BUG/API: inconsistent name handling in value_counts
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
0
2015-05-15T19:59:59Z
2015-06-27T03:51:56Z
2015-06-27T03:51:56Z
MEMBER
null
Both `Series.value_counts` and `Index.value_counts` should preserve its name in resulted `Series.name`? Current behaviors are below: ``` s = pd.Series([1, 2, 1], name='a') idx = pd.Index([1, 2, 1], name='a') result = s.value_counts() result.name, result.index.name # (None, None) # should be ('a', None)? result = idx.value_counts() result.name, result.index.name # (None, None) # should be ('a', None)? didx = pd.date_range('2011-01-01', freq='D', periods=3, name='a') result = didx.value_counts() # (None, 'a') # should be ('a', 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/10150/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10150/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10151
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10151/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10151/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10151/events
https://github.com/pandas-dev/pandas/issues/10151
76,849,957
MDU6SXNzdWU3Njg0OTk1Nw==
10,151
CLEAN: cleanup up platform / python version checks
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2015-05-15T20:34:09Z
2015-07-11T20:06:14Z
2015-07-11T20:06:14Z
CONTRIBUTOR
null
we have in various locations `os.name, platform.system(), sys.platform` for detecting platform. Recently add are these functions in `pandas/compat/__init__.py` as `is_platform_*` which are reasonable to standardize on however, need to find & fix all the other references to make this nice and clean this includes code and tests Ideally also add: `skip_if_windows` functions in `pandas/util/testing.py` (and replace the use of the direct comparisons) would be gr8. futhermore any references to to python 3 checks should use PY3 (in pandas/compat): ``` ./pandas/tseries/tests/test_timeseries.py: 50 : if sys.version_info > (3,) and sys.platform == 'win32': 54 : if sys.version_info < (3,) or sys.platform != 'win32': ``` I think we could use an update on the wiki on the same
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10151/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10151/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10152
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10152/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10152/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10152/events
https://github.com/pandas-dev/pandas/pull/10152
76,894,561
MDExOlB1bGxSZXF1ZXN0MzU1NjAxNzI=
10,152
TST: use compat.long in test_tslib for py3
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[]
closed
false
null
[]
null
3
2015-05-15T23:45:07Z
2015-05-17T14:40:11Z
2015-05-16T15:01:07Z
MEMBER
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/10152/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10152/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10152.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10152", "merged_at": "2015-05-16T15:01:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10152.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10152" }
https://api.github.com/repos/pandas-dev/pandas/issues/10153
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10153/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10153/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10153/events
https://github.com/pandas-dev/pandas/issues/10153
77,076,877
MDU6SXNzdWU3NzA3Njg3Nw==
10,153
Support categorical variables with CSVs
{ "avatar_url": "https://avatars.githubusercontent.com/u/3928300?v=4", "events_url": "https://api.github.com/users/esafak/events{/privacy}", "followers_url": "https://api.github.com/users/esafak/followers", "following_url": "https://api.github.com/users/esafak/following{/other_user}", "gists_url": "https://api.github.com/users/esafak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/esafak", "id": 3928300, "login": "esafak", "node_id": "MDQ6VXNlcjM5MjgzMDA=", "organizations_url": "https://api.github.com/users/esafak/orgs", "received_events_url": "https://api.github.com/users/esafak/received_events", "repos_url": "https://api.github.com/users/esafak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/esafak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/esafak/subscriptions", "type": "User", "url": "https://api.github.com/users/esafak" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2016-10-03T08:52:13Z", "closed_issues": 733, "created_at": "2016-03-11T21:24:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-09-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/40", "id": 1639795, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels", "node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==", "number": 40, "open_issues": 0, "state": "closed", "title": "0.19.0", "updated_at": "2017-11-06T02:01:14Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40" }
4
2015-05-16T16:38:47Z
2016-08-06T22:53:22Z
2016-08-06T22:53:22Z
NONE
null
It would be nice to be able to read CSVs with categorical variables using read_csv's dtype parameter instead of casting the columns after the fact.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10153/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10153/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10154
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10154/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10154/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10154/events
https://github.com/pandas-dev/pandas/issues/10154
77,091,519
MDU6SXNzdWU3NzA5MTUxOQ==
10,154
to_datetime, inconsistent behavior with invalid dates.
{ "avatar_url": "https://avatars.githubusercontent.com/u/232564?v=4", "events_url": "https://api.github.com/users/vincentdavis/events{/privacy}", "followers_url": "https://api.github.com/users/vincentdavis/followers", "following_url": "https://api.github.com/users/vincentdavis/following{/other_user}", "gists_url": "https://api.github.com/users/vincentdavis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vincentdavis", "id": 232564, "login": "vincentdavis", "node_id": "MDQ6VXNlcjIzMjU2NA==", "organizations_url": "https://api.github.com/users/vincentdavis/orgs", "received_events_url": "https://api.github.com/users/vincentdavis/received_events", "repos_url": "https://api.github.com/users/vincentdavis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vincentdavis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vincentdavis/subscriptions", "type": "User", "url": "https://api.github.com/users/vincentdavis" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
12
2015-05-16T17:52:41Z
2015-07-07T10:19:58Z
2015-07-07T10:19:58Z
CONTRIBUTOR
null
Consider Feb 29 1991 (2291991) and March 32 1991 (3321991), Both are invalid dates. ``` pd.to_datetime(2291991, format="%m%d%Y", coerce=True, exact=True) ``` Returns a TypeError: ValueError: day is out of range for month While ``` pd.to_datetime(3321991, format="%m%d%Y", coerce=True, exact=True) ``` Returns NaT. Which is what I would expect. In any case they should return the same error or value Joris Van den Bossche pointed out on the mailing list: "It has something to do with the number of the day, only values above 31 convert to NaT, 31 or lower raises the error (eg also 31 April raise error instead of giving NaT)"
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10154/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10154/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10155
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10155/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10155/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10155/events
https://github.com/pandas-dev/pandas/issues/10155
77,092,567
MDU6SXNzdWU3NzA5MjU2Nw==
10,155
Mean overflows for integer dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/3474325?v=4", "events_url": "https://api.github.com/users/su9204/events{/privacy}", "followers_url": "https://api.github.com/users/su9204/followers", "following_url": "https://api.github.com/users/su9204/following{/other_user}", "gists_url": "https://api.github.com/users/su9204/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/su9204", "id": 3474325, "login": "su9204", "node_id": "MDQ6VXNlcjM0NzQzMjU=", "organizations_url": "https://api.github.com/users/su9204/orgs", "received_events_url": "https://api.github.com/users/su9204/received_events", "repos_url": "https://api.github.com/users/su9204/repos", "site_admin": false, "starred_url": "https://api.github.com/users/su9204/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/su9204/subscriptions", "type": "User", "url": "https://api.github.com/users/su9204" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
20
2015-05-16T18:00:20Z
2015-06-02T19:25:20Z
2015-05-30T20:41:19Z
NONE
null
Say there is a array of type int64 for convenience, that me just put is some large number test1 = pd.Series(20150515061816532, index=list(range(500)), dtype='int64') test1.describe() Out[152]: count 5.000000e+02 **mean -1.674297e+16** std 0.000000e+00 min 2.015052e+16 25% 2.015052e+16 50% 2.015052e+16 75% 2.015052e+16 max 2.015052e+16 Look at the mean, it overflow, and become negative. Obviously the mean should be 20150515061816532 In [153]: test1.sum() **Out[153]: -8371486542801285616** This is wrong. The computation should have been sum them up as **float**, and devided by total count. I think we need to examine other parts of code that involve similar situation.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10155/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10155/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10156
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10156/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10156/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10156/events
https://github.com/pandas-dev/pandas/issues/10156
77,133,838
MDU6SXNzdWU3NzEzMzgzOA==
10,156
.remove_category(np.nan) fails on Categorical with floats
{ "avatar_url": "https://avatars.githubusercontent.com/u/5990528?v=4", "events_url": "https://api.github.com/users/wikiped/events{/privacy}", "followers_url": "https://api.github.com/users/wikiped/followers", "following_url": "https://api.github.com/users/wikiped/following{/other_user}", "gists_url": "https://api.github.com/users/wikiped/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wikiped", "id": 5990528, "login": "wikiped", "node_id": "MDQ6VXNlcjU5OTA1Mjg=", "organizations_url": "https://api.github.com/users/wikiped/orgs", "received_events_url": "https://api.github.com/users/wikiped/received_events", "repos_url": "https://api.github.com/users/wikiped/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wikiped/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wikiped/subscriptions", "type": "User", "url": "https://api.github.com/users/wikiped" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
2
2015-05-16T21:12:36Z
2015-06-09T23:46:30Z
2015-06-09T23:46:30Z
NONE
null
Trying to remove a `nan` category from Categorical series fails if categories are made of floats. In the docs it says: > Note: As integer Series can’t include NaN, the categories were converted to _object_. So it is probably linked to this with `float` remaining `float` and `nan` != `nan`. If this is intended behavior perhaps would be useful to add this to the docs? ``` import pandas as pd df = pd.DataFrame({'a': pd.Categorical([1,2,3]), 'b': pd.Categorical(list('abc')), 'c': pd.Categorical([1.1,2.1,3.1])}) for col in df.columns: df[col].cat.add_categories(pd.np.nan, inplace=True) print df[col] df[col].cat.remove_categories(pd.np.nan) 0 1 1 2 2 3 Name: a, dtype: category Categories (4, object): [1, 2, 3, NaN] 0 a 1 b 2 c Name: b, dtype: category Categories (4, object): [a, b, c, NaN] 0 1.1 1 2.1 2 3.1 Name: c, dtype: category Categories (4, float64): [1.1, 2.1, 3.1, NaN] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) d:\Anaconda\envs\py2k\lib\site-packages\pandas\core\categorical.pyc in _delegate_method(self, name, *args, **kwargs) 1643 from pandas import Series 1644 method = getattr(self.categorical, name) -> 1645 res = method(*args, **kwargs) 1646 if not res is None: 1647 return Series(res, index=self.index) d:\Anaconda\envs\py2k\lib\site-packages\pandas\core\categorical.pyc in remove_categories(self, removals, inplace) 753 not_included = removals - set(self._categories) 754 if len(not_included) != 0: --> 755 raise ValueError("removals must all be in old categories: %s" % str(not_included)) 756 new_categories = [ c for c in self._categories if c not in removals ] 757 return self.set_categories(new_categories, ordered=self.ordered, rename=False, ValueError: removals must all be in old categories: set([nan]) ``` --- ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 pandas: 0.16.1 numpy: 1.9.2 ... ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10156/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10156/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10157
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10157/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10157/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10157/events
https://github.com/pandas-dev/pandas/pull/10157
77,136,426
MDExOlB1bGxSZXF1ZXN0MzU1Nzc1MTA=
10,157
BUG: Index.union cannot handle array-likes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-16T21:26:19Z
2015-06-02T19:26:12Z
2015-06-01T11:45:10Z
MEMBER
null
Closes #10149. - Added explicit tests for array-likes in set-ops, `intersection`, `union`, `difference` and `sym_diff`. - `TimedeltaIndex` previously did additional input check which is inconsistent with others. Made it work as the same manner as others. - `MultiIndex` set-ops should only accept list-likes of tuples. Implement the logic and add explicit test. - Changed to understandable error message for `str` which has `__iter__` in py3. ``` # current error msg idx.intersection('aaa') # TypeError: Index(...) must be called with a collection of some kind, 'aaa' was passed ``` NOTE: This DOESN'T care the `name` attribute checks, which is being worked in #9965.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10157/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10157/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10157.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10157", "merged_at": "2015-06-01T11:45:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10157.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10157" }
https://api.github.com/repos/pandas-dev/pandas/issues/10158
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10158/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10158/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10158/events
https://github.com/pandas-dev/pandas/pull/10158
77,137,402
MDExOlB1bGxSZXF1ZXN0MzU1Nzc1NzU=
10,158
BUG: Index.name is lost during timedelta ops
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
3
2015-05-16T21:31:49Z
2015-06-02T19:26:12Z
2015-05-18T11:59:45Z
MEMBER
null
Closes #9926. CC @hsperr I've changed `common._maybe_match_names` to work with not-named objects, and hopefully can use in #9965 also.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10158/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10158/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10158.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10158", "merged_at": "2015-05-18T11:59:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10158.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10158" }
https://api.github.com/repos/pandas-dev/pandas/issues/10159
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10159/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10159/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10159/events
https://github.com/pandas-dev/pandas/issues/10159
77,194,541
MDU6SXNzdWU3NzE5NDU0MQ==
10,159
Read from Regex Function
{ "avatar_url": "https://avatars.githubusercontent.com/u/5513150?v=4", "events_url": "https://api.github.com/users/cgivre/events{/privacy}", "followers_url": "https://api.github.com/users/cgivre/followers", "following_url": "https://api.github.com/users/cgivre/following{/other_user}", "gists_url": "https://api.github.com/users/cgivre/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cgivre", "id": 5513150, "login": "cgivre", "node_id": "MDQ6VXNlcjU1MTMxNTA=", "organizations_url": "https://api.github.com/users/cgivre/orgs", "received_events_url": "https://api.github.com/users/cgivre/received_events", "repos_url": "https://api.github.com/users/cgivre/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cgivre/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cgivre/subscriptions", "type": "User", "url": "https://api.github.com/users/cgivre" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
null
2
2015-05-17T02:58:00Z
2015-05-18T11:06:09Z
2015-05-18T11:06:04Z
NONE
null
I'm working on a project involving log file analysis and wrote a method which takes a regex, a file name and list of column names, parses the data and returns a pandas DataFrame. I haven't extensively tested this yet, but the code below successfully reads in an apache log file using the regex below and returns a DataFrame with all the data in the correct columns. Would anyone else find this useful and if so, what would I need to do to contribute this to the code base? Thanks, ``` python """ io from regex """ from pandas import DataFrame import re def read_from_regex(**kwargs): """ Read text from an input file, apply a regex to it and store data into a DataFrame Returns ------- parsed : DataFrame """ pattern = kwargs.get('r') columns = kwargs.get('columns') inputFile = open(kwargs.get('input'), 'r') table = [] for line in inputFile: matchObj = re.search(pattern, line) if matchObj: row = {} fieldCount = len(matchObj.groups()) if len(columns) > 0: for i in range(1, fieldCount): row[columns[i]] = matchObj.group(i) else: for i in range(1, fieldCount): row[i] = matchObj.group(i) table.append(row) return DataFrame(table) def main(): pattern = r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s(\S+)\s(\S+)\s\[(\d{2}/\w+?/\d{4}:\d{2}:\d{2}:\d{2}\s-\d{4})\]\s"([A-Z]+)\s(\S+?)\s(\S+)"\s(\d{3})\s(\S+?)\s"(\S+?)"\s"(.+?)"' columnNames = ['ipAddress', 'remoteLogname', 'username', 'dateTime', 'request', 'requestLine' , '', 'responseCode', 'bytesSent', 'referrer', 'userAgent' ] data = read_from_regex( r=pattern, input='apache-logs.txt', columns=columnNames ) print( data.describe() ) if __name__ == "__main__":main() ## with if ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10159/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10159/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10160
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10160/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10160/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10160/events
https://github.com/pandas-dev/pandas/issues/10160
77,224,825
MDU6SXNzdWU3NzIyNDgyNQ==
10,160
pd.DataFrame.from_dict fails when index is numpy.datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/10504477?v=4", "events_url": "https://api.github.com/users/JohnNapier/events{/privacy}", "followers_url": "https://api.github.com/users/JohnNapier/followers", "following_url": "https://api.github.com/users/JohnNapier/following{/other_user}", "gists_url": "https://api.github.com/users/JohnNapier/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JohnNapier", "id": 10504477, "login": "JohnNapier", "node_id": "MDQ6VXNlcjEwNTA0NDc3", "organizations_url": "https://api.github.com/users/JohnNapier/orgs", "received_events_url": "https://api.github.com/users/JohnNapier/received_events", "repos_url": "https://api.github.com/users/JohnNapier/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JohnNapier/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JohnNapier/subscriptions", "type": "User", "url": "https://api.github.com/users/JohnNapier" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
2
2015-05-17T05:48:48Z
2015-06-10T20:01:31Z
2015-06-10T20:01:31Z
NONE
null
Suppose that we want to create a dataframe from a dictionary. ``` python import pandas as pd,numpy as np #1) Form dataframe ix=pd.date_range('1/1/2015',periods=5,freq='D') df0=pd.DataFrame(np.random.normal(size=(len(ix),5)),index=ix) #2) Split dataframe into 2 dictionaries, based on sign d={'+':{},'-':{}} for loc in df0.index: d['+'][loc]=df0.loc[loc][df0.loc[loc]>=0] d['-'][loc]=df0.loc[loc][df0.loc[loc]<0] #3) Convert dictionary to dataframe print pd.DataFrame.from_dict(d['+'],orient='index') ``` This returns a dataframe of positive values, with NaN in place of the negative values. Now, it appears the exact same operation fails if we use "df.index.values" instead of "df.index". ``` python d={'+':{},'-':{}} for loc in df0.index.values: # NOTE .values! d['+'][loc]=df0.loc[loc][df0.loc[loc]>=0] d['-'][loc]=df0.loc[loc][df0.loc[loc]<0] print pd.DataFrame.from_dict(d['+'],orient='index') ``` Now the outcome is a dataframe with all None. I think the problem is some inconsistency between pandas' datetime and numpy's datetime formats. Pandas version 0.16.1, Numpy version 1.9.2. Thanks.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10160/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10160/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10161
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10161/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10161/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10161/events
https://github.com/pandas-dev/pandas/issues/10161
77,316,447
MDU6SXNzdWU3NzMxNjQ0Nw==
10,161
duplicated() performance and bug on long rows regression from 0.15.2->0.16.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/4436747?v=4", "events_url": "https://api.github.com/users/eyaler/events{/privacy}", "followers_url": "https://api.github.com/users/eyaler/followers", "following_url": "https://api.github.com/users/eyaler/following{/other_user}", "gists_url": "https://api.github.com/users/eyaler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eyaler", "id": 4436747, "login": "eyaler", "node_id": "MDQ6VXNlcjQ0MzY3NDc=", "organizations_url": "https://api.github.com/users/eyaler/orgs", "received_events_url": "https://api.github.com/users/eyaler/received_events", "repos_url": "https://api.github.com/users/eyaler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eyaler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyaler/subscriptions", "type": "User", "url": "https://api.github.com/users/eyaler" }
[ { "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
16
2015-05-17T14:03:31Z
2017-12-13T16:19:00Z
2015-09-25T12:19:15Z
NONE
null
the following works quickly in 0.15.2 and has a performance issue on the last operation df.T.duplicated() in 0.16.0 and 0.16.1 also on a private data set that works on 0.15.2 i get an error on 0.16.0 and 0.16.1 on the same operation. code: ``` python import pandas,numpy df = pandas.DataFrame({'A': [1 for x in range(1000)], 'B': [1 for x in range(1000)]}) print (numpy.count_nonzero(df.duplicated())) print (numpy.count_nonzero(df.T.duplicated())) df = pandas.DataFrame({'A': [1 for x in range(1000000)], 'B': [1 for x in range(1000000)]}) print (numpy.count_nonzero(df.duplicated())) print (numpy.count_nonzero(df.T.duplicated())) this is the error i get on the private data set (code not reproduce yet with synthetic data): File "C:\Anaconda3\lib\site-packages\pandas\util\decorators.py", line 88, in wrapper return func(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2867, in duplicated labels, shape = map(list, zip( * map(f, vals))) File "C:\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2856, in f labels, shape = factorize(vals, size_hint=min(len(self), _SIZE_HINT_LIMIT)) File "C:\Anaconda3\lib\site-packages\pandas\core\algorithms.py", line 135, in factorize labels = table.get_labels(vals, uniques, 0, na_sentinel) File "pandas\hashtable.pyx", line 813, in pandas.hashtable.PyObjectHashTable.get_labels (pandas\hashtable.c:14025) ValueError: Buffer has wrong number of dimensions (expected 1, got 2) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10161/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10161/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10162
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10162/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10162/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10162/events
https://github.com/pandas-dev/pandas/issues/10162
77,640,072
MDU6SXNzdWU3NzY0MDA3Mg==
10,162
No output of xticklabels when plotting to gridspec subplots
{ "avatar_url": "https://avatars.githubusercontent.com/u/7450204?v=4", "events_url": "https://api.github.com/users/JWarmenhoven/events{/privacy}", "followers_url": "https://api.github.com/users/JWarmenhoven/followers", "following_url": "https://api.github.com/users/JWarmenhoven/following{/other_user}", "gists_url": "https://api.github.com/users/JWarmenhoven/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JWarmenhoven", "id": 7450204, "login": "JWarmenhoven", "node_id": "MDQ6VXNlcjc0NTAyMDQ=", "organizations_url": "https://api.github.com/users/JWarmenhoven/orgs", "received_events_url": "https://api.github.com/users/JWarmenhoven/received_events", "repos_url": "https://api.github.com/users/JWarmenhoven/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JWarmenhoven/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JWarmenhoven/subscriptions", "type": "User", "url": "https://api.github.com/users/JWarmenhoven" }
[]
closed
false
null
[]
null
5
2015-05-18T12:36:58Z
2015-05-20T08:23:54Z
2015-05-18T14:23:28Z
NONE
null
What seems to be the problem here? The xticklabels for the first axes defined in a gridspec are not visible when plotting with pandas. The corresponding plot using pyplot.plot does have the labels. pandas 0.16 matplotlib 1.4.3 ``` python import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt %matplotlib inline df = pd.DataFrame(np.random.randn(8, 4), index=np.arange(8), columns=['A', 'B', 'C', 'D']) ``` Matplotlib ``` python gs = mpl.gridspec.GridSpec(2, 4) ax1 = plt.subplot(gs[0,:-1]) ax2 = plt.subplot(gs[0,-1]) ax3 = plt.subplot(gs[1,:-2]) ax4 = plt.subplot(gs[1,-2:]) ax1.plot(df.index.values, df.A) ax2.plot(df.index.values, df.B) ax3.plot(df.index.values, df.C) ax4.plot(df.index.values, df.D) gs.tight_layout(plt.gcf()) ``` ![mpl](https://cloud.githubusercontent.com/assets/7450204/7680755/08db0c76-fd6a-11e4-9632-d7a0bfca594f.png) pandas ``` python gs = mpl.gridspec.GridSpec(2, 4) ax1 = plt.subplot(gs[0,:-1]) ax2 = plt.subplot(gs[0,-1]) ax3 = plt.subplot(gs[1,:-2]) ax4 = plt.subplot(gs[1,-2:]) df.A.plot(ax=ax1) df.B.plot(ax=ax2) df.C.plot(ax=ax3) df.D.plot(ax=ax4) gs.tight_layout(plt.gcf()) ``` ![pandas](https://cloud.githubusercontent.com/assets/7450204/7680770/205d661e-fd6a-11e4-8d2d-2629e2528426.png) It seems that xticklabels are absent when plotting with pandas to the first axis generated in a gridspec. Switching ax1 and ax2 definition: pandas ``` python gs = mpl.gridspec.GridSpec(2, 4) ax2 = plt.subplot(gs[0,-1]) ax1 = plt.subplot(gs[0,:-1]) ax3 = plt.subplot(gs[1,:-2]) ax4 = plt.subplot(gs[1,-2:]) df.A.plot(ax=ax1) df.B.plot(ax=ax2) df.C.plot(ax=ax3) df.D.plot(ax=ax4) gs.tight_layout(plt.gcf()) ``` ![pandas2](https://cloud.githubusercontent.com/assets/7450204/7680788/39b53678-fd6a-11e4-85b0-4c9b091b2354.png) Related? http://stackoverflow.com/questions/29552382/legend-overriding-x-label-and-x-ticks
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10162/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10162/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10163
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10163/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10163/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10163/events
https://github.com/pandas-dev/pandas/pull/10163
77,657,162
MDExOlB1bGxSZXF1ZXN0MzU2MzMxODQ=
10,163
DOC: clarify purpose of DataFrame.from_csv (GH4191)
{ "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": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
9
2015-05-18T13:29:40Z
2015-08-21T07:33:31Z
2015-08-21T07:33:31Z
MEMBER
null
Closes #9556 xref #9568, #4916, #4191 However, while writing this up, I started to doubt a bit if this is necessary. `DataFrame.from_csv` is implemented as a round-trip method together with `to_csv`. If you use a plain `df.to_csv(path)`, you cannnot read it in as `pd.read_csv(path)` to get exactly the same. You at least need `pd.read_csv(path, index_col=True)` and a `parse_dates` keyword if you have datetimes. Secondly, there is also the question of `Series.from_csv`. It would be logical to deprecate this as well, but for this you don't directly have an alternative (but `pd.read_csv(path, index_col=0)[0]` will work). There is also for example this SO answer of Wes: http://stackoverflow.com/questions/13557559/how-to-write-read-pandas-series-to-from-csv (and it is used in the Python for Data Analysis book).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10163/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10163/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10163.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10163", "merged_at": "2015-08-21T07:33:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10163.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10163" }
https://api.github.com/repos/pandas-dev/pandas/issues/10164
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10164/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10164/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10164/events
https://github.com/pandas-dev/pandas/issues/10164
77,669,248
MDU6SXNzdWU3NzY2OTI0OA==
10,164
bug: read_csv incorrect output with skipfooter and skip_blank_lines=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/852716?v=4", "events_url": "https://api.github.com/users/jsspencer/events{/privacy}", "followers_url": "https://api.github.com/users/jsspencer/followers", "following_url": "https://api.github.com/users/jsspencer/following{/other_user}", "gists_url": "https://api.github.com/users/jsspencer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jsspencer", "id": 852716, "login": "jsspencer", "node_id": "MDQ6VXNlcjg1MjcxNg==", "organizations_url": "https://api.github.com/users/jsspencer/orgs", "received_events_url": "https://api.github.com/users/jsspencer/received_events", "repos_url": "https://api.github.com/users/jsspencer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jsspencer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jsspencer/subscriptions", "type": "User", "url": "https://api.github.com/users/jsspencer" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
4
2015-05-18T14:07:13Z
2021-04-18T06:48:49Z
null
NONE
null
read_csv does not return the data table expected if there's only one line in the CSV file and skipfooter is used and the line directly after the table is blank and skip_blank_lines=True. ``` >>> import pandas as pd >>> import StringIO >>> test_csv = StringIO.StringIO('a,b,c\n1,2,3\n\nend\n') >>> pd.read_csv(test_csv, skip_footer=2, engine='python') Empty DataFrame Columns: [a, b, c] Index: [] ``` But if the more than one line is in the data table or the line after the data table is not blank or skip_blank_lines is set to False, everything is ok: ``` >>> test_csv = StringIO.StringIO('a,b,c\n1,2,3\n4,5,6\n\nend\n') >>> pd.read_csv(test_csv, skip_footer=2, engine='python') a b c 0 1 2 3 1 4 5 6 >>> test_csv = StringIO.StringIO('a,b,c\n1,2,3\nend\n\n') >>> pd.read_csv(test_csv, skip_footer=2, engine='python') a b c 0 1 2 3 >>> test_csv = StringIO.StringIO('a,b,c\n1,2,3\n\nend\n') >>> pd.read_csv(test_csv, skip_footer=2, engine='python', skip_blank_lines=False) a b c 0 1 2 3 ``` This occurs in every version from 0.15.0 onwards (ie since skip_blank_lines was introduced).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10164/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10164/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10165
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10165/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10165/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10165/events
https://github.com/pandas-dev/pandas/issues/10165
77,695,503
MDU6SXNzdWU3NzY5NTUwMw==
10,165
ERR: better error reporting with .transform and an invalid output from a UDF
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "2016-03-12T16:19:08Z", "closed_issues": 469, "created_at": "2015-07-19T20:18:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-03-13T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/36", "id": 1214851, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels", "node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==", "number": 36, "open_issues": 0, "state": "closed", "title": "0.18.0", "updated_at": "2016-12-06T21:34:41Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36" }
1
2015-05-18T15:19:38Z
2016-02-27T16:10:05Z
2016-02-27T16:10:00Z
CONTRIBUTOR
null
xref #9697 I think we can detect the returned values and if they are not scalars, give a nicer error message. Further a doc-note would be helpful. ``` In [4]: cols = pd.MultiIndex.from_tuples([('syn', 'A'), ('mis', 'A'), ('non', 'A'), ('syn', 'C'), ('mis', 'C'), ('non', 'C'), ('syn', 'T'), ('mis', 'T'), ('non', 'T'), ('syn', 'G'), ('mis', 'G'), ('non', 'G')]) In [5]: df = pd.DataFrame(np.random.randint(1, 10, (4,12)), columns=cols, index=['A', 'C', 'G', 'T']) In [6]: df.groupby(axis=1, level=1).transform(lambda z: z.div(z.sum(axis=1), axis=0)) ValueError: Length mismatch: Expected axis has 4 elements, new values have 12 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/10165/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10165/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10166
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10166/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10166/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10166/events
https://github.com/pandas-dev/pandas/pull/10166
77,780,145
MDExOlB1bGxSZXF1ZXN0MzU2NjY1NDI=
10,166
DOC: Reorder arguments in shared fillna docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/375307?v=4", "events_url": "https://api.github.com/users/ElDeveloper/events{/privacy}", "followers_url": "https://api.github.com/users/ElDeveloper/followers", "following_url": "https://api.github.com/users/ElDeveloper/following{/other_user}", "gists_url": "https://api.github.com/users/ElDeveloper/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ElDeveloper", "id": 375307, "login": "ElDeveloper", "node_id": "MDQ6VXNlcjM3NTMwNw==", "organizations_url": "https://api.github.com/users/ElDeveloper/orgs", "received_events_url": "https://api.github.com/users/ElDeveloper/received_events", "repos_url": "https://api.github.com/users/ElDeveloper/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ElDeveloper/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ElDeveloper/subscriptions", "type": "User", "url": "https://api.github.com/users/ElDeveloper" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
1
2015-05-18T19:43:07Z
2015-05-18T20:31:00Z
2015-05-18T20:30:57Z
CONTRIBUTOR
null
The docstring listed 'method' before 'value' which is not consistent with the order of the arguments when calling the method.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10166/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10166/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10166.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10166", "merged_at": "2015-05-18T20:30:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10166.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10166" }
https://api.github.com/repos/pandas-dev/pandas/issues/10167
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10167/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10167/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10167/events
https://github.com/pandas-dev/pandas/issues/10167
77,889,322
MDU6SXNzdWU3Nzg4OTMyMg==
10,167
'logging' name causing issues
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[]
closed
false
null
[]
null
9
2015-05-19T01:58:11Z
2015-05-19T03:15:18Z
2015-05-19T03:15:18Z
NONE
null
create a file named logging.py anywhere as follows # !/usr/bin/env python print "hello" Then > > python > > import pandas you will get the following error AttributeError: 'module' object has no attribute 'getLogger'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10167/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10167/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10168
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10168/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10168/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10168/events
https://github.com/pandas-dev/pandas/pull/10168
77,961,085
MDExOlB1bGxSZXF1ZXN0MzU3MDAxMzU=
10,168
Delete ez_setup.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/69135?v=4", "events_url": "https://api.github.com/users/andreabedini/events{/privacy}", "followers_url": "https://api.github.com/users/andreabedini/followers", "following_url": "https://api.github.com/users/andreabedini/following{/other_user}", "gists_url": "https://api.github.com/users/andreabedini/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andreabedini", "id": 69135, "login": "andreabedini", "node_id": "MDQ6VXNlcjY5MTM1", "organizations_url": "https://api.github.com/users/andreabedini/orgs", "received_events_url": "https://api.github.com/users/andreabedini/received_events", "repos_url": "https://api.github.com/users/andreabedini/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andreabedini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andreabedini/subscriptions", "type": "User", "url": "https://api.github.com/users/andreabedini" }
[ { "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": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
12
2015-05-19T06:42:07Z
2015-08-02T17:03:33Z
2015-08-02T17:03:33Z
CONTRIBUTOR
null
ez_setup.py is few years out of date, we should stop distributing it. Up to date versions of Python 2 and 3 provide setuptools and pip out of the box `python -m ensurepip --upgrade`. For other Python versions, we can simply point users to the up to date instructions at https://packaging.python.org/en/latest/installing.html#requirements-for-installing-packages.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10168/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10168/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10168.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10168", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10168.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10168" }
https://api.github.com/repos/pandas-dev/pandas/issues/10169
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10169/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10169/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10169/events
https://github.com/pandas-dev/pandas/issues/10169
78,043,810
MDU6SXNzdWU3ODA0MzgxMA==
10,169
Reindex MultiIndex of type float
{ "avatar_url": "https://avatars.githubusercontent.com/u/1411854?v=4", "events_url": "https://api.github.com/users/leroygr/events{/privacy}", "followers_url": "https://api.github.com/users/leroygr/followers", "following_url": "https://api.github.com/users/leroygr/following{/other_user}", "gists_url": "https://api.github.com/users/leroygr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leroygr", "id": 1411854, "login": "leroygr", "node_id": "MDQ6VXNlcjE0MTE4NTQ=", "organizations_url": "https://api.github.com/users/leroygr/orgs", "received_events_url": "https://api.github.com/users/leroygr/received_events", "repos_url": "https://api.github.com/users/leroygr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leroygr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leroygr/subscriptions", "type": "User", "url": "https://api.github.com/users/leroygr" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
3
2015-05-19T11:14:33Z
2015-05-20T10:55:42Z
2015-05-20T10:55:42Z
NONE
null
Hi, There is a strange behavior when I want to reindex a Multi-Index (float64) of a Series: some of the original values are dropped from the reindexed object. Here is the test case: ``` python >>> import pandas as pd >>> import numpy as np >>> df_g=pd.Series(index=pd.MultiIndex.from_tuples([(10.,4.2),(11.,5.2),(14,7.8)]),data=[0.01,0.2,0.684]) 10 4.2 0.010 11 5.2 0.200 14 7.8 0.684 dtype: float64 >>> df_g_r=pd.Series(index=pd.MultiIndex.from_product([np.arange(0,360,1.),np.arange(0,25,0.1)])).fillna(0) >>> df_g.reindex(df_g_r.index).dropna() 10 4.2 0.01 11 5.2 0.20 dtype: float64 ``` Anyone has an idea of what is going on? Is there any workaround for this? Many thanks, Greg ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-51-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.2 numpy: 1.8.2 scipy: 0.15.1 statsmodels: None IPython: 2.3.1 sphinx: 1.2.2 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: 1.8.6 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: None lxml: 3.3.3 bs4: None html5lib: None httplib2: 0.8 apiclient: None rpy2: None sqlalchemy: 0.9.8 pymysql: 0.6.6.None psycopg2: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10169/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10169/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10170
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10170/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10170/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10170/events
https://github.com/pandas-dev/pandas/issues/10170
78,118,888
MDU6SXNzdWU3ODExODg4OA==
10,170
Display of a datetime column/index with both second and sub-second resolution
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
1
2015-05-19T14:46:09Z
2015-06-02T19:25:20Z
2015-05-20T22:02:19Z
MEMBER
null
Should a datetime column should use the same precision for all, padding with zeros, just like a float column does? ``` In [121]: df = pd.DataFrame({'datetime': pd.date_range('1/1/2000 09:00:00', freq="5ms",periods=10), 'float': np.arange(0,0.05,0.005)}) In [122]: df Out[122]: datetime float 0 2000-01-01 09:00:00 0.000 1 2000-01-01 09:00:00.005000 0.005 2 2000-01-01 09:00:00.010000 0.010 3 2000-01-01 09:00:00.015000 0.015 4 2000-01-01 09:00:00.020000 0.020 5 2000-01-01 09:00:00.025000 0.025 6 2000-01-01 09:00:00.030000 0.030 7 2000-01-01 09:00:00.035000 0.035 8 2000-01-01 09:00:00.040000 0.040 9 2000-01-01 09:00:00.045000 0.045 ``` so that the first row would show `2000-01-01 09:00:00.000000`?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10170/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10170/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10171
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10171/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10171/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10171/events
https://github.com/pandas-dev/pandas/pull/10171
78,142,327
MDExOlB1bGxSZXF1ZXN0MzU3NDQ2NDg=
10,171
BUG: consistent datetime display format with < ms #10170
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-19T15:46:04Z
2015-06-02T19:26:12Z
2015-05-20T22:02:19Z
CONTRIBUTOR
null
closes #10170 ``` In [3]: Series(date_range('20130101 09:00:00',periods=5,freq='D')) Out[3]: 0 2013-01-01 09:00:00 1 2013-01-02 09:00:00 2 2013-01-03 09:00:00 3 2013-01-04 09:00:00 4 2013-01-05 09:00:00 dtype: datetime64[ns] In [4]: Series(date_range('20130101 09:00:00',periods=5,freq='s')) Out[4]: 0 2013-01-01 09:00:00 1 2013-01-01 09:00:01 2 2013-01-01 09:00:02 3 2013-01-01 09:00:03 4 2013-01-01 09:00:04 dtype: datetime64[ns] In [2]: s = Series(date_range('20130101 09:00:00',periods=5,freq='ms')) In [3]: s.iloc[1] = np.nan In [4]: s Out[4]: 0 2013-01-01 09:00:00.000 1 NaT 2 2013-01-01 09:00:00.002 3 2013-01-01 09:00:00.003 4 2013-01-01 09:00:00.004 dtype: datetime64[ns] In [6]: Series(date_range('20130101 09:00:00',periods=5,freq='us')) Out[6]: 0 2013-01-01 09:00:00.000000 1 2013-01-01 09:00:00.000001 2 2013-01-01 09:00:00.000002 3 2013-01-01 09:00:00.000003 4 2013-01-01 09:00:00.000004 dtype: datetime64[ns] In [7]: Series(date_range('20130101 09:00:00',periods=5,freq='N')) Out[7]: 0 2013-01-01 09:00:00.000000000 1 2013-01-01 09:00:00.000000001 2 2013-01-01 09:00:00.000000002 3 2013-01-01 09:00:00.000000003 4 2013-01-01 09:00:00.000000004 dtype: datetime64[ns] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10171/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10171/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10171.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10171", "merged_at": "2015-05-20T22:02:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10171.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10171" }
https://api.github.com/repos/pandas-dev/pandas/issues/10172
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10172/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10172/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10172/events
https://github.com/pandas-dev/pandas/pull/10172
78,164,170
MDExOlB1bGxSZXF1ZXN0MzU3NTA1MDU=
10,172
BUG: mean overflows for integer dtypes (fixes #10155)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
11
2015-05-19T16:43:57Z
2015-06-02T19:26:12Z
2015-05-30T20:41:19Z
CONTRIBUTOR
null
closes #10155
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10172/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10172/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10172.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10172", "merged_at": "2015-05-30T20:41:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10172.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10172" }
https://api.github.com/repos/pandas-dev/pandas/issues/10173
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10173/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10173/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10173/events
https://github.com/pandas-dev/pandas/issues/10173
78,249,798
MDU6SXNzdWU3ODI0OTc5OA==
10,173
Does this need to be reopened? It is not in the latest release.
{ "avatar_url": "https://avatars.githubusercontent.com/u/689723?v=4", "events_url": "https://api.github.com/users/startakovsky/events{/privacy}", "followers_url": "https://api.github.com/users/startakovsky/followers", "following_url": "https://api.github.com/users/startakovsky/following{/other_user}", "gists_url": "https://api.github.com/users/startakovsky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/startakovsky", "id": 689723, "login": "startakovsky", "node_id": "MDQ6VXNlcjY4OTcyMw==", "organizations_url": "https://api.github.com/users/startakovsky/orgs", "received_events_url": "https://api.github.com/users/startakovsky/received_events", "repos_url": "https://api.github.com/users/startakovsky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/startakovsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/startakovsky/subscriptions", "type": "User", "url": "https://api.github.com/users/startakovsky" }
[]
closed
false
null
[]
null
1
2015-05-19T21:04:34Z
2015-05-19T21:06:58Z
2015-05-19T21:06:58Z
NONE
null
https://github.com/pydata/pandas/issues/5580
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10173/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10173/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10174
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10174/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10174/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10174/events
https://github.com/pandas-dev/pandas/issues/10174
78,430,450
MDU6SXNzdWU3ODQzMDQ1MA==
10,174
Support 'interpolation' keyword in pandas.DataFrame.quantile and pandas.Series.quantile
{ "avatar_url": "https://avatars.githubusercontent.com/u/2330659?v=4", "events_url": "https://api.github.com/users/rhkarls/events{/privacy}", "followers_url": "https://api.github.com/users/rhkarls/followers", "following_url": "https://api.github.com/users/rhkarls/following{/other_user}", "gists_url": "https://api.github.com/users/rhkarls/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhkarls", "id": 2330659, "login": "rhkarls", "node_id": "MDQ6VXNlcjIzMzA2NTk=", "organizations_url": "https://api.github.com/users/rhkarls/orgs", "received_events_url": "https://api.github.com/users/rhkarls/received_events", "repos_url": "https://api.github.com/users/rhkarls/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhkarls/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhkarls/subscriptions", "type": "User", "url": "https://api.github.com/users/rhkarls" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2016-03-12T16:19:08Z", "closed_issues": 469, "created_at": "2015-07-19T20:18:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-03-13T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/36", "id": 1214851, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels", "node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==", "number": 36, "open_issues": 0, "state": "closed", "title": "0.18.0", "updated_at": "2016-12-06T21:34:41Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36" }
3
2015-05-20T08:33:49Z
2016-01-07T00:21:16Z
2016-01-07T00:21:16Z
NONE
null
interpolation : {‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’} This would make it consistent with numpy.percentile options (new in 1.9). See http://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.percentile.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/10174/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10174/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10175
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10175/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10175/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10175/events
https://github.com/pandas-dev/pandas/issues/10175
78,453,210
MDU6SXNzdWU3ODQ1MzIxMA==
10,175
Tuple-Retrieving vs. -Setting on non-MultiIndex DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/7251331?v=4", "events_url": "https://api.github.com/users/fabboe/events{/privacy}", "followers_url": "https://api.github.com/users/fabboe/followers", "following_url": "https://api.github.com/users/fabboe/following{/other_user}", "gists_url": "https://api.github.com/users/fabboe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabboe", "id": 7251331, "login": "fabboe", "node_id": "MDQ6VXNlcjcyNTEzMzE=", "organizations_url": "https://api.github.com/users/fabboe/orgs", "received_events_url": "https://api.github.com/users/fabboe/received_events", "repos_url": "https://api.github.com/users/fabboe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabboe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabboe/subscriptions", "type": "User", "url": "https://api.github.com/users/fabboe" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "f2f989", "default": false, "description": "Data where the values are collections (lists, sets, dicts, objects, etc.).", "id": 2189479765, "name": "Nested Data", "node_id": "MDU6TGFiZWwyMTg5NDc5NzY1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nested%20Data" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2015-05-20T09:42:45Z
2020-09-22T01:57:12Z
null
NONE
null
``` df = pd.DataFrame({'a':[55,66,77],'b':[100,111,112],'ch':['x','y','z']}) df.index = pd.Index([10,11,12]) In [6]: df Out[6]: a b ch 10 55 100 x 11 66 111 y 12 77 112 z In [7]: df.loc[10,('b','ch')] .... ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> In [8]: df.ix[10,('b','ch')] Out[8]: 100 ``` more or less understandable, probably both should not work though. but then, using the same indexing, the setting operation works, unpacking the tuple into the correct columns, as one would use the correct list selector `df.ix[10,['b','ch']]` or `df.loc[10,['b','ch']]` ``` In [10]: df.ix[10,('b','ch')] = (200,'i') In [11]: df Out[11]: a b ch 10 55 200 i 11 66 111 y 12 77 112 z In [12]: df.loc[10,('b','ch')] = (300,'j') In [13]: df Out[13]: a b ch 10 55 300 j 11 66 111 y 12 77 112 z ``` For .ix setting should throw the same error as for retrieving? For .loc setting should throw an error as you should expect to set a tuple to a single column? Is this wanted behavior? P.S.: New to advanced / multi-index slicing, my searches didn't bring up that very issue despite the fact that all issues around this indexing seem somehow related.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10175/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10175/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10176
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10176/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10176/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10176/events
https://github.com/pandas-dev/pandas/issues/10176
78,476,593
MDU6SXNzdWU3ODQ3NjU5Mw==
10,176
How to use loc WITHOUT enlargement in pandas >0.14
{ "avatar_url": "https://avatars.githubusercontent.com/u/743508?v=4", "events_url": "https://api.github.com/users/mangecoeur/events{/privacy}", "followers_url": "https://api.github.com/users/mangecoeur/followers", "following_url": "https://api.github.com/users/mangecoeur/following{/other_user}", "gists_url": "https://api.github.com/users/mangecoeur/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mangecoeur", "id": 743508, "login": "mangecoeur", "node_id": "MDQ6VXNlcjc0MzUwOA==", "organizations_url": "https://api.github.com/users/mangecoeur/orgs", "received_events_url": "https://api.github.com/users/mangecoeur/received_events", "repos_url": "https://api.github.com/users/mangecoeur/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mangecoeur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mangecoeur/subscriptions", "type": "User", "url": "https://api.github.com/users/mangecoeur" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
11
2015-05-20T10:56:23Z
2015-05-20T17:18:08Z
2015-05-20T10:59:32Z
CONTRIBUTOR
null
It appears that `loc` now enlarges the result if an index is not found - a behavior I find confusing, because ``` python df.loc[['missing_label']] ``` gives a `KeyError` while ``` python df.loc[['existing_label', 'missing_label']] ``` works just fine. Apparently this was changed in 0.15. I have older code that relied on catching errors for the case where some labels might be missing, which now doesn't work. How can I do a `loc` select, guaranteeing that I will get an error if a non-existing label is given - i.e. do the same as `loc` but without ever enlarging the result?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10176/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10176/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10177
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10177/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10177/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10177/events
https://github.com/pandas-dev/pandas/issues/10177
78,495,486
MDU6SXNzdWU3ODQ5NTQ4Ng==
10,177
BUG: concat on axis=0 with categorical
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
4
2015-05-20T11:57:53Z
2015-06-27T22:04:40Z
2015-06-27T22:04:40Z
CONTRIBUTOR
null
xref https://github.com/pydata/pandas/issues/9426, fixed in #9597 `axis=1` is ok ``` df1 = pandas.DataFrame(numpy.random.randn(6, 3), columns=["a", "b", "c"]) df2 = pandas.DataFrame(numpy.random.randn(7, 4), columns=["g", "h", "a", "c"]) df2['h'] = pandas.Series(pandas.Categorical(["one", "one", "two", "one", "two", "two", "one"])) df = pandas.concat((df1, df2)) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10177/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10177/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10178
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10178/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10178/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10178/events
https://github.com/pandas-dev/pandas/issues/10178
78,511,138
MDU6SXNzdWU3ODUxMTEzOA==
10,178
pd.to_datetime much slower with supplied format than when format is inferred
{ "avatar_url": "https://avatars.githubusercontent.com/u/1150727?v=4", "events_url": "https://api.github.com/users/dsimmie/events{/privacy}", "followers_url": "https://api.github.com/users/dsimmie/followers", "following_url": "https://api.github.com/users/dsimmie/following{/other_user}", "gists_url": "https://api.github.com/users/dsimmie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsimmie", "id": 1150727, "login": "dsimmie", "node_id": "MDQ6VXNlcjExNTA3Mjc=", "organizations_url": "https://api.github.com/users/dsimmie/orgs", "received_events_url": "https://api.github.com/users/dsimmie/received_events", "repos_url": "https://api.github.com/users/dsimmie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsimmie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsimmie/subscriptions", "type": "User", "url": "https://api.github.com/users/dsimmie" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
11
2015-05-20T12:46:20Z
2015-07-20T23:25:42Z
2015-07-20T23:25:42Z
NONE
null
It is **much slower** when converting a date string to supply a date format for a column than for it to be inferred. I would've though there should be less work to do when the format is known (and supplied) To test ``` python df = DataFrame({'date_text':["2015-05-18" for i in range(10**6)]}) %timeit pd.to_datetime(df['date_text'],infer_datetime_format=True, box=False).values.view('i8')/10**9 10 loops, best of 3: 115 ms per loop #Top line from %prun of same command: ncalls tottime percall cumtime percall filename:lineno(function) 1 0.095 0.095 0.095 0.095 {pandas.tslib.array_to_datetime} %timeit pd.to_datetime(df['date_text'],format="%Y-%m-%d", box=False).values.view('i8')/10**9 1 loops, best of 3: 2.27 s per loop #Top line from %prun of same command: ncalls tottime percall cumtime percall filename:lineno(function) 1 2.282 2.282 2.282 2.282 {pandas.tslib.array_strptime} ``` This plot is taken from this [S/O post](http://stackoverflow.com/questions/30330428/converting-string-date-to-epoch-time-not-working-with-cython-and-posix-c-librari) which shows the difference over a larger range of sizes (and compared to other methods). ![perf_comparison](https://cloud.githubusercontent.com/assets/1150727/7725765/6d9cb844-fef5-11e4-9051-35a0d983d54e.png) ## INSTALLED VERSIONS commit: None python: 2.7.9.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-52-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.15.2 nose: 1.3.4 Cython: 0.22 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.2.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.2 pytz: 2014.10 bottleneck: None tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.0 openpyxl: 2.2.0-b1 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: 0.9 apiclient: 1.4.0 rpy2: None sqlalchemy: 1.0.0 pymysql: None psycopg2: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10178/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10178/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10179
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10179/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10179/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10179/events
https://github.com/pandas-dev/pandas/pull/10179
78,572,359
MDExOlB1bGxSZXF1ZXN0MzU4NDQ4ODA=
10,179
BUG: concat on axis=0 with categorical (GH10177)
{ "avatar_url": "https://avatars.githubusercontent.com/u/74460?v=4", "events_url": "https://api.github.com/users/sebp/events{/privacy}", "followers_url": "https://api.github.com/users/sebp/followers", "following_url": "https://api.github.com/users/sebp/following{/other_user}", "gists_url": "https://api.github.com/users/sebp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sebp", "id": 74460, "login": "sebp", "node_id": "MDQ6VXNlcjc0NDYw", "organizations_url": "https://api.github.com/users/sebp/orgs", "received_events_url": "https://api.github.com/users/sebp/received_events", "repos_url": "https://api.github.com/users/sebp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sebp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sebp/subscriptions", "type": "User", "url": "https://api.github.com/users/sebp" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
5
2015-05-20T15:34:57Z
2015-06-27T22:04:27Z
2015-06-27T22:04:22Z
NONE
null
Contains a proposed fix for #10177
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10179/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10179/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10179.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10179", "merged_at": "2015-06-27T22:04:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10179.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10179" }
https://api.github.com/repos/pandas-dev/pandas/issues/10180
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10180/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10180/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10180/events
https://github.com/pandas-dev/pandas/issues/10180
78,623,198
MDU6SXNzdWU3ODYyMzE5OA==
10,180
Segfault when writing data out of order to pd.HDFStore via append
{ "avatar_url": "https://avatars.githubusercontent.com/u/8620425?v=4", "events_url": "https://api.github.com/users/lennart7/events{/privacy}", "followers_url": "https://api.github.com/users/lennart7/followers", "following_url": "https://api.github.com/users/lennart7/following{/other_user}", "gists_url": "https://api.github.com/users/lennart7/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lennart7", "id": 8620425, "login": "lennart7", "node_id": "MDQ6VXNlcjg2MjA0MjU=", "organizations_url": "https://api.github.com/users/lennart7/orgs", "received_events_url": "https://api.github.com/users/lennart7/received_events", "repos_url": "https://api.github.com/users/lennart7/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lennart7/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lennart7/subscriptions", "type": "User", "url": "https://api.github.com/users/lennart7" }
[ { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
null
13
2015-05-20T17:47:02Z
2015-11-24T11:40:51Z
2015-11-24T11:40:50Z
NONE
null
I am trying to append chunks of data to an (initially empty) HDF5 frame with pd.HDFStore. The chunks come in out of order, and sometimes certain orders produce segfaults. This script seems to consistently segfault after loading file 31 (_update, see comments for better example_). You will notice that by looking at the time stamps outputted by the script it appears to be when hdf5 tries to fill some gap data. I can produce more files that trigger segfaults if necessary. I've managed to narrow it down to the following line in `pytables.py` ``` > /home/user/env/lib/python3.4/site-packages/pandas/io/pytables.py(3738)write_data_chunk() 3737 self.table.append(rows) -> 3738 self.table.flush() 3739 except Exception as detail: ``` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.4.2.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-4-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.16.1 nose: 1.3.3 Cython: 0.22 numpy: 1.9.2 scipy: None statsmodels: None IPython: 2.1.0 sphinx: None patsy: None dateutil: 2.4.2 pytz: 2015.4 bottleneck: None tables: 3.2.0 numexpr: 2.4 matplotlib: None openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: None lxml: None bs4: 4.3.2 html5lib: None httplib2: 0.9 apiclient: None sqlalchemy: 0.9.8 pymysql: None psycopg2: 2.6 (dt dec pq3 ext lo64) HDF5 Versions: ~/user$ dpkg -l | grep "hdf5" ii hdf5-helpers 1.8.13+docs-15 amd64 Hierarchical Data Format 5 (HDF5) - Helper tools ii hdf5-tools 1.8.13+docs-15 amd64 Hierarchical Data Format 5 (HDF5) - Runtime tools rc libhdf5-7:amd64 1.8.12+docs-1 amd64 Hierarchical Data Format 5 (HDF5) - runtime files - serial version ii libhdf5-8:amd64 1.8.13+docs-15 amd64 Hierarchical Data Format 5 (HDF5) - runtime files - serial version rc libhdf5-cpp-7:amd64 1.8.12+docs-1 amd64 Hierarchical Data Format 5 (HDF5) - C++ libraries ii libhdf5-cpp-8:amd64 1.8.13+docs-15 amd64 Hierarchical Data Format 5 (HDF5) - C++ libraries ii libhdf5-dev 1.8.13+docs-15 amd64 Hierarchical Data Format 5 (HDF5) - development files - serial version ``` A script to reproduce: ``` import os import pandas as pd _dir = 'test_files' _file = './hdf5_test.h5' def write_to_file(series): store = pd.HDFStore(_file, 'a') frame = pd.DataFrame(series) print("Appending data from {0} to {1}".format( frame.index[0], frame.index[-1])) store.append('test', frame) store.close() if __name__ == "__main__": if os.path.isfile(_file): os.remove(_file) files = os.listdir(_dir) for f in files: series = pd.read_pickle(os.path.join(_dir, f)) print("Writing data: %s" % f) write_to_file(series) ``` zipped pickled files for test: http://s000.tinyupload.com/?file_id=60238823358379433453 Here is a pastebin of the data _where segfault is occuring_ from the example in csv format: http://pastebin.com/FRsygCUG _note, you may need the actual files to reproduce this, but as you can see from the pastebin that the data isn't malformed_ It is trying to fill the the following gap in the original data: `2011-01-04 17:55:00` to`2011-01-05 22:15:00` with an append which results in a segfault Script output: ``` Writing data: 00 Appending data from 2011-01-03 13:40:00 to 2011-01-04 17:55:00 Writing data: 01 Appending data from 2011-01-05 22:15:00 to 2011-01-07 02:30:00 Writing data: 02 Appending data from 2011-01-04 18:00:00 to 2011-01-05 22:15:00 Segmentation fault ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10180/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10180/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10181
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10181/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10181/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10181/events
https://github.com/pandas-dev/pandas/issues/10181
78,907,988
MDU6SXNzdWU3ODkwNzk4OA==
10,181
Empty dataframe not equal to another empty dataframe in 0.16.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-21T09:22:18Z
2015-06-07T22:22:40Z
2015-06-07T22:22:40Z
CONTRIBUTOR
null
I searched the issues list for "empty dataframe" but did not find anything matching. In pandas 0.16.1, the result of adding 2 empty dataframes is not equal to another empty dataframe. This code, in pandas 0.15.2, does what is expected: ``` python import pandas as pd pd.show_versions() df1 = pd.DataFrame() df2 = pd.DataFrame() assert df1.equals(df1) assert df2.equals(df1) assert (df1+df1).equals(df2) ``` It fails in 0.16.1. 0.15.2 output: ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.7.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: en_GB pandas: 0.15.2 nose: 1.3.6 Cython: 0.21.1 numpy: 1.9.2 scipy: 0.15.1 statsmodels: None IPython: 3.1.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.0 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.7.2 lxml: 3.4.0 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None ``` 0.16.1 output: ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.16.1 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.2 lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.4 pymysql: None psycopg2: None --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) c:\test_empty_add_0.16.1.py in <module>() 11 assert df2.equals(df1) 12 ---> 13 assert (df1+df1).equals(df2) AssertionError: ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10181/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10181/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10182
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10182/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10182/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10182/events
https://github.com/pandas-dev/pandas/issues/10182
78,917,570
MDU6SXNzdWU3ODkxNzU3MA==
10,182
Setting option 'display.max_seq_items' to None results in TypeError when pprinting index
{ "avatar_url": "https://avatars.githubusercontent.com/u/7450204?v=4", "events_url": "https://api.github.com/users/JWarmenhoven/events{/privacy}", "followers_url": "https://api.github.com/users/JWarmenhoven/followers", "following_url": "https://api.github.com/users/JWarmenhoven/following{/other_user}", "gists_url": "https://api.github.com/users/JWarmenhoven/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JWarmenhoven", "id": 7450204, "login": "JWarmenhoven", "node_id": "MDQ6VXNlcjc0NTAyMDQ=", "organizations_url": "https://api.github.com/users/JWarmenhoven/orgs", "received_events_url": "https://api.github.com/users/JWarmenhoven/received_events", "repos_url": "https://api.github.com/users/JWarmenhoven/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JWarmenhoven/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JWarmenhoven/subscriptions", "type": "User", "url": "https://api.github.com/users/JWarmenhoven" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "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": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-21T09:44:11Z
2015-06-10T06:47:12Z
2015-06-10T06:47:12Z
NONE
null
According to the docstring, the following is allowed: ``` Python pd.set_option('display.max_seq_items', None) ``` With 0.16.1 this results in a TypeError when pretty printing an index. This is because the None value is compared against lenght of the index to see if we need to limit output. ``` Python TypeError: unorderable types: int() > NoneType() ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10182/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10182/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10183
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10183/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10183/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10183/events
https://github.com/pandas-dev/pandas/pull/10183
78,950,327
MDExOlB1bGxSZXF1ZXN0MzU5MjM2Mzg=
10,183
FIX printing index with display.max_seq_items=None (GH10182)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
11
2015-05-21T11:20:38Z
2015-06-10T06:47:12Z
2015-06-10T06:47:12Z
MEMBER
null
Fixes #10182
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10183/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10183/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10183.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10183", "merged_at": "2015-06-10T06:47:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10183.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10183" }
https://api.github.com/repos/pandas-dev/pandas/issues/10184
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10184/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10184/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10184/events
https://github.com/pandas-dev/pandas/issues/10184
78,955,747
MDU6SXNzdWU3ODk1NTc0Nw==
10,184
read_csv does not set index name on empty dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/12544186?v=4", "events_url": "https://api.github.com/users/corr723/events{/privacy}", "followers_url": "https://api.github.com/users/corr723/followers", "following_url": "https://api.github.com/users/corr723/following{/other_user}", "gists_url": "https://api.github.com/users/corr723/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/corr723", "id": 12544186, "login": "corr723", "node_id": "MDQ6VXNlcjEyNTQ0MTg2", "organizations_url": "https://api.github.com/users/corr723/orgs", "received_events_url": "https://api.github.com/users/corr723/received_events", "repos_url": "https://api.github.com/users/corr723/repos", "site_admin": false, "starred_url": "https://api.github.com/users/corr723/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/corr723/subscriptions", "type": "User", "url": "https://api.github.com/users/corr723" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-21T11:38:34Z
2015-06-09T12:19:32Z
2015-06-09T12:19:32Z
NONE
null
If foo.csv contains ``` csv x,y 1,2 ``` then you get the normal behavior: ``` py >>> df = pd.read_csv('foo.csv', index_col=0) >>> list(df.columns) ['y'] >>> df.index.name 'x' ``` but if you remove the data row "1,2" in the CSV the index name gets dropped: ``` py >>> df = pd.read_csv('foo.csv', index_col=0) >>> list(df.columns) ['y'] >>> df.index.name None ``` This means round-tripping with to_csv/read_csv fails for empty dataframes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10184/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10184/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10185
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10185/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10185/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10185/events
https://github.com/pandas-dev/pandas/pull/10185
79,003,849
MDExOlB1bGxSZXF1ZXN0MzU5MzUzNzc=
10,185
DOC: Add Index.difference to API doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
7
2015-05-21T13:51:22Z
2015-06-02T19:26:12Z
2015-05-23T06:41:18Z
MEMBER
null
Add `Index.difference` to api doc rather than deprecated `Index.diff` (#8226) And is it OK to remove `Index.diff` alias because #6581 lists #8227 (which closes #8226)?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10185/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10185/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10185.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10185", "merged_at": "2015-05-23T06:41:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10185.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10185" }
https://api.github.com/repos/pandas-dev/pandas/issues/10186
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10186/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10186/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10186/events
https://github.com/pandas-dev/pandas/issues/10186
79,013,965
MDU6SXNzdWU3OTAxMzk2NQ==
10,186
API: Set ops for CategoricalIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" }, { "color": "006b75", "default": false, "description": "union, intersection, difference, symmetric_difference", "id": 3073524400, "name": "setops", "node_id": "MDU6TGFiZWwzMDczNTI0NDAw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/setops" } ]
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
2015-05-21T14:17:09Z
2021-06-17T03:07:31Z
null
MEMBER
null
Derived from #10157. Would like to clarify what these results should be. Basically, I think: - The result must be `CategoricalIndex` - The result should have the same values as the result of normal `Index` which has the same original values. - Result's `category` should only include categories which the result actually has. Followings are current results. ## intersection ``` # for reference pd.Index([1, 2, 3, 1, 2, 3]).intersection(pd.Index([2, 3, 4, 2, 3, 4])) # Int64Index([2, 2, 3, 3], dtype='int64') pd.CategoricalIndex([1, 2, 3, 1, 2, 3]).intersection(pd.CategoricalIndex([2, 3, 4, 2, 3, 4])) # CategoricalIndex([2, 2, 3, 3], categories=[1, 2, 3], ordered=False, dtype='category') # -> Is this OK or it should have categories=[2, 3]? ``` ## union Doc says "Form the union of two Index objects and sorts if possible". I'm not sure whether the last sentence says "raise error if sort is impossible" or "not sort if impossible"? - http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Index.union.html ``` pd.Index([1, 2, 4]).union(pd.Index([2, 3, 4])) # Int64Index([1, 2, 3, 4], dtype='int64') pd.CategoricalIndex([1, 2, 4]).union(pd.CategoricalIndex([2, 3, 4])) # CategoricalIndex([1, 2, 4, 3], categories=[1, 2, 3, 4], ordered=False, dtype='category') # -> Should be sorted? ``` ``` pd.Index([1, 2, 3, 1, 2, 3]).union(pd.Index([2, 3, 4, 2, 3, 4])) # InvalidIndexError: Reindexing only valid with uniquely valued Index objects -> This should results Index([1, 2, 3, 1, 2, 3, 4, 4])? pd.CategoricalIndex([1, 2, 3, 1, 2, 3]).union(pd.CategoricalIndex([2, 3, 4, 2, 3, 4])) # TypeError: type() takes 1 or 3 arguments # -> should raise understandable error, or Int64Index shouldn't raise (and return unsorted result?) ``` ## difference ``` pd.CategoricalIndex([1, 2, 4, 5]).difference(pd.CategoricalIndex([2, 3, 4])) # Int64Index([1, 5], dtype='int64') # -> should be CategoricalIndex? ``` ## sym_diff ``` pd.CategoricalIndex([1, 2, 4, 5]).sym_diff(pd.CategoricalIndex([2, 4])) # Int64Index([1, 5], dtype='int64') # -> should be CategoricalIndex? ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10186/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10186/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10187
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10187/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10187/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10187/events
https://github.com/pandas-dev/pandas/issues/10187
79,041,961
MDU6SXNzdWU3OTA0MTk2MQ==
10,187
API: concat of frames with multi-index with non-matching names
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
open
false
null
[]
null
4
2015-05-21T15:21:30Z
2015-05-22T01:53:48Z
null
MEMBER
null
Suppose you have two dataframes with multi-index with non-matching names. When you `concat` these, the name of the first index will be used, and the indices are just merged ignoring the names of the levels. Small example: ``` In [41]: df1 = pd.DataFrame([[1,2], [3,4]], index=pd.MultiIndex.from_tuples([('a', 1), ('a', 2)], names=['A', 'B'])) In [42]: df2 = pd.DataFrame([[5,6], [7,8]], index=pd.MultiIndex.from_tuples([(1, 'b'), (2, 'b')], names=['B', 'A'])) In [43]: df1 Out[43]: 0 1 A B a 1 1 2 2 3 4 In [44]: df2 Out[44]: 0 1 B A 1 b 5 6 2 b 7 8 In [45]: pd.concat([df1, df2]) Out[45]: 0 1 A B a 1 1 2 2 3 4 1 b 5 6 2 b 7 8 ``` This of course stems from the fact that index (level) names are not 'real' labels like eg column names, but following the aligning logic in pandas for index labels, this can give a bit unexpected results.
{ "+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/10187/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10187/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10188
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10188/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10188/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10188/events
https://github.com/pandas-dev/pandas/pull/10188
79,062,120
MDExOlB1bGxSZXF1ZXN0MzU5NTAyNzM=
10,188
BUG: Adding empty dataframes should result in empty blocks #10181
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
10
2015-05-21T16:08:46Z
2015-06-16T15:40:21Z
2015-06-07T22:22:40Z
CONTRIBUTOR
null
Fixes #10181 I added a couple of lines to the dataframe test `test_operators` to assert that adding two empty dataframes returns a dataframe that is equal (both using `assert_frame_equal` as well as `.equals`) to an empty dataframe. I couldn't get vbench to install (I am running on windows) - the error was: ``` c:\dev\code\opensource\pandas-rekcahpassyla>pip install git+https://github.com/pydata/vbench You are using pip version 6.0.8, however version 6.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting git+https://github.com/pydata/vbench Cloning https://github.com/pydata/vbench to c:\users\redacted\appdata\local\temp\pip-ruiahg-build fatal: unable to connect to github.com: github.com[0: 192.30.252.129]: errno=No error Clone of 'git://github.com/yarikoptic/vbenchtest.git' into submodule path 'vbench/tests/vbenchtest/vbenchtest' failed Complete output from command C:\dev\bin\git\cmd\git.exe submodule update --init --recursive -q: ---------------------------------------- Command "C:\dev\bin\git\cmd\git.exe submodule update --init --recursive -q" failed with error code 1 in c:\users\redacted\appdata\local\temp\pip-ruiahg-build ``` The test suite failed for me in master with 1 failure. The same failure, but no others, were observed when running in my branch.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10188/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10188/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10188.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10188", "merged_at": "2015-06-07T22:22:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10188.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10188" }
https://api.github.com/repos/pandas-dev/pandas/issues/10189
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10189/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10189/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10189/events
https://github.com/pandas-dev/pandas/pull/10189
79,105,667
MDExOlB1bGxSZXF1ZXN0MzU5NjE3OTY=
10,189
DOC/CLN: period_range kwarg descriptions missing and other minor doc …
{ "avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4", "events_url": "https://api.github.com/users/mortada/events{/privacy}", "followers_url": "https://api.github.com/users/mortada/followers", "following_url": "https://api.github.com/users/mortada/following{/other_user}", "gists_url": "https://api.github.com/users/mortada/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mortada", "id": 1642081, "login": "mortada", "node_id": "MDQ6VXNlcjE2NDIwODE=", "organizations_url": "https://api.github.com/users/mortada/orgs", "received_events_url": "https://api.github.com/users/mortada/received_events", "repos_url": "https://api.github.com/users/mortada/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mortada/subscriptions", "type": "User", "url": "https://api.github.com/users/mortada" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
2
2015-05-21T18:13:28Z
2015-06-02T19:26:12Z
2015-05-23T06:40:55Z
CONTRIBUTOR
null
…fixes
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10189/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10189/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10189.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10189", "merged_at": "2015-05-23T06:40:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10189.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10189" }
https://api.github.com/repos/pandas-dev/pandas/issues/10190
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10190/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10190/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10190/events
https://github.com/pandas-dev/pandas/issues/10190
79,154,876
MDU6SXNzdWU3OTE1NDg3Ng==
10,190
pandas to_hdf function get Illegal instruction
{ "avatar_url": "https://avatars.githubusercontent.com/u/1376579?v=4", "events_url": "https://api.github.com/users/hunterchung/events{/privacy}", "followers_url": "https://api.github.com/users/hunterchung/followers", "following_url": "https://api.github.com/users/hunterchung/following{/other_user}", "gists_url": "https://api.github.com/users/hunterchung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hunterchung", "id": 1376579, "login": "hunterchung", "node_id": "MDQ6VXNlcjEzNzY1Nzk=", "organizations_url": "https://api.github.com/users/hunterchung/orgs", "received_events_url": "https://api.github.com/users/hunterchung/received_events", "repos_url": "https://api.github.com/users/hunterchung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hunterchung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hunterchung/subscriptions", "type": "User", "url": "https://api.github.com/users/hunterchung" }
[]
closed
false
null
[]
null
1
2015-05-21T20:44:21Z
2015-05-21T20:55:42Z
2015-05-21T20:55:42Z
NONE
null
I got `Illegal instruction` error when executing the code below in docker with OS X and ubuntu. However, it works fine using CoreOS. I also find other people have the same issue too. http://stackoverflow.com/questions/29882125/illegal-instruction-core-dumped-when-loading-hdf Any idea for this? ``` python import pandas as pd df = pd.DataFrame([[1,2,3], [2,3,4]], columns=['a', 'b', 'c']) df.to_hdf( 'test.h5', 'sites', data_columns=True, format='t', complevel=5, complib='blosc' ) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10190/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10190/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10191
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10191/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10191/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10191/events
https://github.com/pandas-dev/pandas/issues/10191
79,201,153
MDU6SXNzdWU3OTIwMTE1Mw==
10,191
Interpolation works for MultiIndex of strings and float but not DateTime
{ "avatar_url": "https://avatars.githubusercontent.com/u/9811038?v=4", "events_url": "https://api.github.com/users/CameronTStark/events{/privacy}", "followers_url": "https://api.github.com/users/CameronTStark/followers", "following_url": "https://api.github.com/users/CameronTStark/following{/other_user}", "gists_url": "https://api.github.com/users/CameronTStark/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CameronTStark", "id": 9811038, "login": "CameronTStark", "node_id": "MDQ6VXNlcjk4MTEwMzg=", "organizations_url": "https://api.github.com/users/CameronTStark/orgs", "received_events_url": "https://api.github.com/users/CameronTStark/received_events", "repos_url": "https://api.github.com/users/CameronTStark/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CameronTStark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronTStark/subscriptions", "type": "User", "url": "https://api.github.com/users/CameronTStark" }
[]
closed
false
null
[]
null
2
2015-05-21T23:22:54Z
2015-05-22T21:06:40Z
2015-05-22T21:06:40Z
NONE
null
I believe I found a bug in interpolation for MultiIndex where linear interpolation works on MultiIndex that contain strings and floats but not for DateTimes. It sounds like linear interpolation on MultiIndexes is not officially supported until next major release however I thought I'd raise this finding in case it helps (and to get experience working as a GitHub noob).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10191/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10191/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10192
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10192/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10192/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10192/events
https://github.com/pandas-dev/pandas/issues/10192
79,361,850
MDU6SXNzdWU3OTM2MTg1MA==
10,192
Performance drop when using timezone-aware DateTimeIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/10919436?v=4", "events_url": "https://api.github.com/users/adrien-pain-01/events{/privacy}", "followers_url": "https://api.github.com/users/adrien-pain-01/followers", "following_url": "https://api.github.com/users/adrien-pain-01/following{/other_user}", "gists_url": "https://api.github.com/users/adrien-pain-01/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adrien-pain-01", "id": 10919436, "login": "adrien-pain-01", "node_id": "MDQ6VXNlcjEwOTE5NDM2", "organizations_url": "https://api.github.com/users/adrien-pain-01/orgs", "received_events_url": "https://api.github.com/users/adrien-pain-01/received_events", "repos_url": "https://api.github.com/users/adrien-pain-01/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adrien-pain-01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adrien-pain-01/subscriptions", "type": "User", "url": "https://api.github.com/users/adrien-pain-01" }
[ { "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": "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": 278, "created_at": "2013-01-06T03:02:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
3
2015-05-22T08:53:39Z
2015-10-23T20:52:42Z
2015-10-23T20:52:42Z
NONE
null
It seems that pandas.DataFrame operations on Index with timezone-aware dates is order of magnitude slower than on regular datetimes. for a 500k datetimes created with pandas.date_range, and using DataFrame.shift() to compute deltas between dates, timings goes from **17ms** for standard datetimes to **16seconds** for timezone-aware datetimes. I don't understand why it is so slow with timezones objects. I already posted a complete message related to this behavior on stackoverflow yesterday : http://stackoverflow.com/questions/30385481/performance-of-timezone-aware-pandas-datetimeindex I'm using latest pandas 0.16.1 from Anaconda, and latest numpy 1.9.2
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10192/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10192/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10193
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10193/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10193/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10193/events
https://github.com/pandas-dev/pandas/issues/10193
79,381,307
MDU6SXNzdWU3OTM4MTMwNw==
10,193
BUG: indexing error when setting item in empty Series which has a frequency
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[ { "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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
2
2015-05-22T09:44:57Z
2015-06-18T15:36:30Z
2015-06-18T15:36:30Z
CONTRIBUTOR
null
Another somewhat degenerate case that works in 0.15.2, fails in 0.16.1 ``` python import pandas as pd pd.show_versions() ts = pd.TimeSeries() ts[pd.datetime(2012, 1, 1)] = 47 ts2 = pd.TimeSeries(0, pd.date_range('2011-01-01', '2011-01-01'))[:0] ts2[pd.datetime(2012, 1, 1)] = 47 ``` 0.15.2 output: ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.15.2 nose: 1.3.4 Cython: 0.21 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 3.0.0-dev sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.2 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None ``` 0.16.1 output: ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.16.1-46-g0aceb38 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.2 lxml: None bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.4 pymysql: None psycopg2: None --------------------------------------------------------------------------- IndexError Traceback (most recent call last) c:\test_set_empty_series_with_freq.py in <module>() 11 ts2 = pd.TimeSeries(0, pd.date_range('2011-01-01', '2011-01-01'))[:0] 12 ---> 13 ts2[pd.datetime(2012, 1, 1)] = 47 c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\series.pyc in __setitem__(self, key, value) 687 # do the setitem 688 cacher_needs_updating = self._check_is_chained_assignment_possible() --> 689 setitem(key, value) 690 if cacher_needs_updating: 691 self._maybe_update_cacher() c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\series.pyc in setitem(key, value) 660 pass 661 try: --> 662 self.loc[key] = value 663 except: 664 print "" c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\indexing.pyc in __setitem__(self, key, value) 113 def __setitem__(self, key, value): 114 indexer = self._get_setitem_indexer(key) --> 115 self._setitem_with_indexer(indexer, value) 116 117 def _has_valid_type(self, k, axis): c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\indexing.pyc in _setitem_with_indexer(self, indexer, value) 272 if self.ndim == 1: 273 index = self.obj.index --> 274 new_index = index.insert(len(index),indexer) 275 276 # this preserves dtype of the value c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\tseries\index.pyc in insert(self, loc, item) 1523 # check freq can be preserved on edge cases 1524 if self.freq is not None: -> 1525 if (loc == 0 or loc == -len(self)) and item + self.freq == self[0]: 1526 freq = self.freq 1527 elif (loc == len(self)) and item - self.freq == self[-1]: c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\tseries\index.pyc in __getitem__(self, key) 1351 getitem = self._data.__getitem__ 1352 if np.isscalar(key): -> 1353 val = getitem(key) 1354 return Timestamp(val, offset=self.offset, tz=self.tz) 1355 else: IndexError: index 0 is out of bounds for axis 0 with size 0 ``` Proposed https://github.com/pydata/pandas/pull/10194
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10193/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10193/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10194
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10194/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10194/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10194/events
https://github.com/pandas-dev/pandas/pull/10194
79,386,999
MDExOlB1bGxSZXF1ZXN0MzYwMTYzNjI=
10,194
BUG: Check for size != 0 before trying to insert #10193
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[ { "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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
10
2015-05-22T09:59:41Z
2015-06-18T12:56:00Z
2015-06-18T12:56:00Z
CONTRIBUTOR
null
Proposed fix for #10193
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10194/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10194/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10194.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10194", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/10194.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10194" }
https://api.github.com/repos/pandas-dev/pandas/issues/10195
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10195/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10195/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10195/events
https://github.com/pandas-dev/pandas/issues/10195
79,402,173
MDU6SXNzdWU3OTQwMjE3Mw==
10,195
BUG: TypeError when trying to set values in empty DataFrame using boolean key
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[]
closed
false
null
[]
null
1
2015-05-22T10:44:27Z
2015-05-22T14:04:39Z
2015-05-22T14:04:39Z
CONTRIBUTOR
null
Found this bug through https://github.com/pydata/pandas/pull/10188 - it caused build failure ``` python import numpy as np import pandas as pd pd.show_versions() df = pd.DataFrame([[2, 2]], index=pd.DatetimeIndex(['2011-01-01'])) df2 = pd.DataFrame([[1, 1]], index=pd.DatetimeIndex(['2011-01-01'])) df[df > df2] = 47 assert np.all(df.values==47) df = pd.DataFrame() df2 = pd.DataFrame() df[df > df2] = 47 ``` results in this error (in both 0.15.2 and 0.16.1) ``` python INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.16.1-46-g0aceb38 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.2 lxml: 3.4.4 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.4 pymysql: None psycopg2: None --------------------------------------------------------------------------- TypeError Traceback (most recent call last) c:\test_set_empty_frame_with_boolean.py in <module>() 14 df2 = pd.DataFrame() 15 ---> 16 df[df > df2] = 47 17 c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\frame.pyc in __setitem__(self, key, value) 2119 self._setitem_array(key, value) 2120 elif isinstance(key, DataFrame): -> 2121 self._setitem_frame(key, value) 2122 else: 2123 # set column c:\python\envs\pandas-0.16.1\lib\site-packages\pandas\core\frame.pyc in _setitem_frame(self, key, value) 2153 # df[df > df2] = 0 2154 if key.values.dtype != np.bool_: -> 2155 raise TypeError('Must pass DataFrame with boolean values only') 2156 2157 self._check_inplace_setting(value) TypeError: Must pass DataFrame with boolean values only ``` Proposed https://github.com/pydata/pandas/pull/10196
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10195/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10195/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10196
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10196/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10196/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10196/events
https://github.com/pandas-dev/pandas/pull/10196
79,402,706
MDExOlB1bGxSZXF1ZXN0MzYwMTk2Mzk=
10,196
BUG: Raise TypeError only if key DataFrame is not empty #10126
{ "avatar_url": "https://avatars.githubusercontent.com/u/7807926?v=4", "events_url": "https://api.github.com/users/rekcahpassyla/events{/privacy}", "followers_url": "https://api.github.com/users/rekcahpassyla/followers", "following_url": "https://api.github.com/users/rekcahpassyla/following{/other_user}", "gists_url": "https://api.github.com/users/rekcahpassyla/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rekcahpassyla", "id": 7807926, "login": "rekcahpassyla", "node_id": "MDQ6VXNlcjc4MDc5MjY=", "organizations_url": "https://api.github.com/users/rekcahpassyla/orgs", "received_events_url": "https://api.github.com/users/rekcahpassyla/received_events", "repos_url": "https://api.github.com/users/rekcahpassyla/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rekcahpassyla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rekcahpassyla/subscriptions", "type": "User", "url": "https://api.github.com/users/rekcahpassyla" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
10
2015-05-22T10:46:45Z
2015-06-04T11:17:25Z
2015-06-03T19:02:45Z
CONTRIBUTOR
null
Proposed fix for #10126
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10196/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10196/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10196.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10196", "merged_at": "2015-06-03T19:02:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10196.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10196" }
https://api.github.com/repos/pandas-dev/pandas/issues/10197
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10197/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10197/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10197/events
https://github.com/pandas-dev/pandas/issues/10197
79,419,203
MDU6SXNzdWU3OTQxOTIwMw==
10,197
false warning when using to_sql with a dataframe using MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/8281969?v=4", "events_url": "https://api.github.com/users/elDan101/events{/privacy}", "followers_url": "https://api.github.com/users/elDan101/followers", "following_url": "https://api.github.com/users/elDan101/following{/other_user}", "gists_url": "https://api.github.com/users/elDan101/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/elDan101", "id": 8281969, "login": "elDan101", "node_id": "MDQ6VXNlcjgyODE5Njk=", "organizations_url": "https://api.github.com/users/elDan101/orgs", "received_events_url": "https://api.github.com/users/elDan101/received_events", "repos_url": "https://api.github.com/users/elDan101/repos", "site_admin": false, "starred_url": "https://api.github.com/users/elDan101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elDan101/subscriptions", "type": "User", "url": "https://api.github.com/users/elDan101" }
[ { "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" }
3
2015-05-22T11:34:19Z
2015-05-22T15:35:03Z
2015-05-22T14:24:16Z
NONE
null
Hi, I get a warning that confused me, and in my opinion is wrong. See code - that should produce warning with further comments. ## INSTALLED VERSIONS commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.16.1 nose: 1.3.4 Cython: 0.22 numpy: 1.9.2 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 3.0.0 sphinx: None patsy: 0.3.0 dateutil: 2.4.0 pytz: 2015.2 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.1 lxml: None bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.9 pymysql: None psycopg2: None `````` python import pandas as pd import sqlite3 as sql con = sql.connect("Temp_db.db") df = pd.DataFrame(columns=[["FIRST", "FIRST", "SECOND", "SECOND"], ["ONE", "TWO", "ONE", "TWO"]]) # no space in any column # following 'to_sql' produces warning: # UserWarning: The spaces in these column names will not be changed. In pandas versions < 0.14, spaces were converted to underscores. # However, there are no spaces (see above) df.to_sql("tmp_table", con=con, if_exists="replace") # refering to page: http://pydoc.net/Python/pandas/0.14.0/pandas.io.sql/ import re columns = list(map(str, df.columns)) pat = re.compile('\s+') print columns # OUTPUT: ["('FIRST', 'ONE')", "('FIRST', 'TWO')", "('SECOND', 'ONE')", "('SECOND', 'TWO')"] # ('FIRST',X'ONE'): At position X of a tuple is a whitespace that falsly produces the warning: print any(map(pat.search, columns)) #true # quick and dirty fix columns = [i.replace("', '", "','") for i in columns] print columns print any(map(pat.search, columns)) #false ```python ``````
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10197/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10197/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10198
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10198/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10198/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10198/events
https://github.com/pandas-dev/pandas/issues/10198
79,463,744
MDU6SXNzdWU3OTQ2Mzc0NA==
10,198
Reading of fixed width file is detecting incorrect number of columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/8472772?v=4", "events_url": "https://api.github.com/users/amckiern/events{/privacy}", "followers_url": "https://api.github.com/users/amckiern/followers", "following_url": "https://api.github.com/users/amckiern/following{/other_user}", "gists_url": "https://api.github.com/users/amckiern/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amckiern", "id": 8472772, "login": "amckiern", "node_id": "MDQ6VXNlcjg0NzI3NzI=", "organizations_url": "https://api.github.com/users/amckiern/orgs", "received_events_url": "https://api.github.com/users/amckiern/received_events", "repos_url": "https://api.github.com/users/amckiern/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amckiern/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amckiern/subscriptions", "type": "User", "url": "https://api.github.com/users/amckiern" }
[]
closed
false
null
[]
null
1
2015-05-22T13:52:43Z
2015-05-22T14:45:58Z
2015-05-22T14:45:58Z
NONE
null
Hi, I have been trying to use the `read_fwf()` dataframe method in pandas 0.16.0. I have supplied a list of tuples for the _colspec_ parameter. There are 9 tuples specified. I have also supplied a list to the _names_ parameter, with 9 column names. Here's some code: ``` df = pd.read_fwf('c:/6starts.tab', header=None, colspec=[(0, 11), (11, 14), (14, 43), (43, 49), (49, 69), (69, 98), (98, 110), (110, 133), (133, 145)], names=['lotid', 'lottype', 'part', 'qty', 'startdate', 'proc', 'rnum', 'material', 'who']) ``` Here's the traceback (sorry about the formatting): --- ValueError Traceback (most recent call last) <ipython-input-15-ff4a00f4ef2b> in <module>() 10 (110, 133), 11 (133, 145)], ---> 12 names=['lotid', 'lottype', 'part', 'qty', 'startdate', 'proc', 'rnum', 'material', 'who'] 13 ) C:\Program Files\Anaconda\lib\site-packages\pandas\io\parsers.py in read_fwf(filepath_or_buffer, colspecs, widths, **kwds) 499 kwds['colspecs'] = colspecs 500 kwds['engine'] = 'python-fwf' --> 501 return _read(filepath_or_buffer, kwds) 502 503 C:\Program Files\Anaconda\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds) 254 return parser 255 --> 256 return parser.read() 257 258 _parser_defaults = { C:\Program Files\Anaconda\lib\site-packages\pandas\io\parsers.py in read(self, nrows) 713 raise ValueError('skip_footer not supported for iteration') 714 --> 715 ret = self._engine.read(nrows) 716 717 if self.options.get('as_recarray'): C:\Program Files\Anaconda\lib\site-packages\pandas\io\parsers.py in read(self, rows) 1561 content = content[1:] 1562 -> 1563 alldata = self._rows_to_cols(content) 1564 data = self._exclude_implicit_index(alldata) 1565 C:\Program Files\Anaconda\lib\site-packages\pandas\io\parsers.py in _rows_to_cols(self, content) 1936 msg = ('Expected %d fields in line %d, saw %d' % 1937 (col_len, row_num + 1, zip_len)) -> 1938 raise ValueError(msg) 1939 1940 if self.usecols: **ValueError: Expected 9 fields in line 1, saw 7** --- The problem I'm seeing is that pandas does not appear to be using _colspec_ to parse the file. Instead it seems to be using whitespace and is detecting 7 distinct columns based on that. I have tried specifying `delimiter=''`to see if that would make a difference, but it doesn't fix it. I have also tried specifying `usecols=[0, 1, 2, 3, 4, 5, 6, 7, 8]` and that seems to prevent the exception occurring, but it still only reads in 7 columns and pads the last 2 columns with _NaN_. ![pandas_1](https://cloud.githubusercontent.com/assets/8472772/7771371/c0dc4b56-008e-11e5-934e-96dbeffdea63.jpg) In the snapshot above, the first column is fine, however the 2nd and 3rd columns are merged together (the 'D ' and the '8SL*****' bit). The next snapshot shows some of the desired column widths (highlighted in pink): ![pandas_4](https://cloud.githubusercontent.com/assets/8472772/7771735/74ec4018-0091-11e5-84c6-54a29e2ebd88.jpg) I think the issue is in the PythonParser class within the parsers.py file, in the __rows_to_cols()_ method, but I'm not familiar enough with it yet to attempt any sort of fix. Here is the version information from pandas.show_versions(): ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.16.0 nose: 1.3.4 Cython: 0.22 numpy: 1.9.2 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.4.1 pytz: 2015.2 bottleneck: None tables: 3.1.1 numexpr: 2.3.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 Please let me know if you need any more information. Thanks, Adrian.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10198/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10198/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10199
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10199/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10199/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10199/events
https://github.com/pandas-dev/pandas/pull/10199
79,594,577
MDExOlB1bGxSZXF1ZXN0MzYwNjU1MDU=
10,199
PERF: releasing the GIL, #8882
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" } ]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
23
2015-05-22T20:19:47Z
2015-06-30T16:58:13Z
2015-06-30T10:55:04Z
CONTRIBUTOR
null
closes #8882 closes #10139 This is now implemented for all groupbys with the factorization part as well (which is actually a big part fo the time) ``` In [2]: N = 1000000 In [3]: ngroups = 1000 In [4]: np.random.seed(1234) In [5]: df = DataFrame({'key' : np.random.randint(0,ngroups,size=N), ...: 'data' : np.random.randn(N) }) ``` ``` def f(): df.groupby('key')['data'].sum() # run consecutivily def g2(): for i in range(2): f() def g4(): for i in range(4): f() def g8(): for i in range(8): f() # run in parallel @test_parallel(num_threads=2) def pg2(): f() @test_parallel(num_threads=4) def pg4(): f() @test_parallel(num_threads=8) def pg8(): f() ``` So seeing a nice curve as far as addtl cores are used (as compared to some of my previous posts). ``` In [19]: df Out[19]: after before speedup 2 27.3 52.1 1.908425 4 44.8 105.0 2.343750 8 83.2 213.0 2.560096 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10199/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10199/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10199.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10199", "merged_at": "2015-06-30T10:55:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10199.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10199" }
https://api.github.com/repos/pandas-dev/pandas/issues/10200
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10200/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10200/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10200/events
https://github.com/pandas-dev/pandas/pull/10200
79,606,303
MDExOlB1bGxSZXF1ZXN0MzYwNjgzMjI=
10,200
DOC: minor doc fix for Series.append; indices can overlap
{ "avatar_url": "https://avatars.githubusercontent.com/u/781659?v=4", "events_url": "https://api.github.com/users/jakevdp/events{/privacy}", "followers_url": "https://api.github.com/users/jakevdp/followers", "following_url": "https://api.github.com/users/jakevdp/following{/other_user}", "gists_url": "https://api.github.com/users/jakevdp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jakevdp", "id": 781659, "login": "jakevdp", "node_id": "MDQ6VXNlcjc4MTY1OQ==", "organizations_url": "https://api.github.com/users/jakevdp/orgs", "received_events_url": "https://api.github.com/users/jakevdp/received_events", "repos_url": "https://api.github.com/users/jakevdp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jakevdp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jakevdp/subscriptions", "type": "User", "url": "https://api.github.com/users/jakevdp" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2015-05-22T20:57:41Z
2015-06-02T19:26:12Z
2015-05-25T11:29:35Z
CONTRIBUTOR
null
Old docstring seemed to be incorrect; overlapping indices are supported e.g. ``` python >>> import pandas as pd >>> x = pd.Series(['A', 'B', 'C']) >>> y = pd.Series(['D', 'E', 'F']) >>> x.append(y) 0 A 1 B 2 C 0 D 1 E 2 F dtype: object ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10200/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10200/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10200.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10200", "merged_at": "2015-05-25T11:29:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10200.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10200" }
https://api.github.com/repos/pandas-dev/pandas/issues/10201
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10201/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10201/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10201/events
https://github.com/pandas-dev/pandas/issues/10201
79,620,590
MDU6SXNzdWU3OTYyMDU5MA==
10,201
pandas diff().hist() produces inaccurate plot
{ "avatar_url": "https://avatars.githubusercontent.com/u/8051980?v=4", "events_url": "https://api.github.com/users/Llewelyn62/events{/privacy}", "followers_url": "https://api.github.com/users/Llewelyn62/followers", "following_url": "https://api.github.com/users/Llewelyn62/following{/other_user}", "gists_url": "https://api.github.com/users/Llewelyn62/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Llewelyn62", "id": 8051980, "login": "Llewelyn62", "node_id": "MDQ6VXNlcjgwNTE5ODA=", "organizations_url": "https://api.github.com/users/Llewelyn62/orgs", "received_events_url": "https://api.github.com/users/Llewelyn62/received_events", "repos_url": "https://api.github.com/users/Llewelyn62/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Llewelyn62/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Llewelyn62/subscriptions", "type": "User", "url": "https://api.github.com/users/Llewelyn62" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
null
3
2015-05-22T21:36:56Z
2015-05-23T12:40:37Z
2015-05-23T12:40:37Z
NONE
null
Using a df.diff().hist method creates a different (and inaccurate) multiple plot than using the matplotlib api. My data are Super Rugby differential scores. The matrix of data is below. ``` python #Create base matrix of score differentials across Teams (row) x Round (col) S15_Base = np.matrix([[-10,6,-24,0,28,43,-12,42,-5,-17,14,-6,41,0],#Crus [10,-10,-5,0,4,-4,-24,8,0,5,-2,1,20,-17],#Reb [44,-2,5,12,29,-15,0,17,-2,-5,13,-3,-1,10],#Brum [-44,12,-7,-18,-29,0,-1,-8,-21,1,-16,0,-41,17],#Red [-14,-17,-3,3,-28,4,1,4,2,0,5,-2,5,-10],#Lion [14,4,29,0,7,7,24,5,0,-5,16,6,8,4],#Hurr [-5,-11,-1,-3,-7,0,-12,-7,2,-6,-14,17,-20,5],#Blues [5,2,24,-3,9,-1,10,7,0,17,8,-1,0,-4],#Chiefs [-6,17,-8,-16,17,1,6,-42,-2,-7,0,-33,-8,-15],#Sharks [6,0,1,-19,-17,-43,-10,-17,9,-1,-5,8,0,-21],#Cheetahs [-12,-4,8,19,0,1,12,-4,21,7,-2,2,0,-5],#Bulls [12,11,3,16,-9,0,-18,-5,14,7,2,-8,1,0],#Stormers [-12,10,0,18,-7,15,12,0,-14,5,2,3,-7,15],#Waratahs [12,-12,-29,-12,-4,-1,-6,0,-9,-7,-8,-17,7,0],#Force [0,-6,7,3,7,-7,18,0,5,6,-13,33,-5,21],#Highlanders ]) ``` I create a dataframe with: ``` import pandas as pd s15df = pd.DataFrame(S15_Base.T, columns=['Crusaders', 'Rebels', 'Brumbies', 'Reds', 'Lions', 'Hurricanes', 'Blues', 'Chiefs', 'Sharks', 'Cheetahs', 'Bulls', 'Stormers', 'Waratahs', 'Force', 'Highlanders']) ``` The following call produces the multiple plots by team: ``` python s15df.diff().hist(color='purple', alpha=0.5, figsize=(12,8),sharey=True,sharex=True,bins=20) ``` The result is different in at least one instance (for the Sharks, who never win by 60pts or more), yet have a bin reflecting this frequency. I checked using: `s15df.Sharks.plot(kind='hist',bins=20)` and `fig = plt.figure()` `ax = fig.add_subplot(111)` `x = [s15df.Sharks ,s15df.Crusaders,s15df.Reds]` `numBins = 20` `ax.hist(x,numBins,color=['green','blue','red'],alpha=0.8)` `plt.show()` Both the latter two plots were identical and numerically correct, but different than the multiple plot. PS: Please forgive me if I err in any way posting this as an issue -- am a huge fan of pandas but novice in the issue-tracking thing! :)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10201/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10201/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/10202
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/10202/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/10202/comments
https://api.github.com/repos/pandas-dev/pandas/issues/10202/events
https://github.com/pandas-dev/pandas/pull/10202
79,845,528
MDExOlB1bGxSZXF1ZXN0MzYwODc0NDI=
10,202
DOC: Updated to mention axis='index' and axis='columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/296686?v=4", "events_url": "https://api.github.com/users/robintw/events{/privacy}", "followers_url": "https://api.github.com/users/robintw/followers", "following_url": "https://api.github.com/users/robintw/following{/other_user}", "gists_url": "https://api.github.com/users/robintw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/robintw", "id": 296686, "login": "robintw", "node_id": "MDQ6VXNlcjI5NjY4Ng==", "organizations_url": "https://api.github.com/users/robintw/orgs", "received_events_url": "https://api.github.com/users/robintw/received_events", "repos_url": "https://api.github.com/users/robintw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/robintw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robintw/subscriptions", "type": "User", "url": "https://api.github.com/users/robintw" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
1
2015-05-23T13:20:21Z
2015-06-02T19:26:12Z
2015-05-25T14:17:18Z
CONTRIBUTOR
null
Updated docs throughout DataFrame methods to mention that axis can be set to 'index' or 'column' instead of 0 or 1 which improves readability significantly. Fixes #9658
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/10202/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/10202/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/10202.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/10202", "merged_at": "2015-05-25T14:17:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/10202.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/10202" }