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/33717
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33717/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33717/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33717/events
https://github.com/pandas-dev/pandas/pull/33717
604,346,807
MDExOlB1bGxSZXF1ZXN0NDA2OTU5MDA3
33,717
BUG: DTA/TDA/PA setitem incorrectly allowing i8
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-21T23:26:39Z
2020-05-04T20:03:22Z
2020-04-30T13:44:37Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33717/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33717/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33717.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33717", "merged_at": "2020-04-30T13:44:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33717.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33717" }
https://api.github.com/repos/pandas-dev/pandas/issues/33718
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33718/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33718/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33718/events
https://github.com/pandas-dev/pandas/issues/33718
604,355,244
MDU6SXNzdWU2MDQzNTUyNDQ=
33,718
DEP: bump numpy min version?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-04-21T23:52:44Z
2020-05-01T19:38:39Z
2020-05-01T19:38:39Z
MEMBER
null
We currently require 1.13.3 which was released 2017-09-29. The last bump was in 0.25.0 (#25554). I think its time for another bump. The release dates for the 1.x.0 and 1.x.MAX versions out there: 1.14.0 -> 2018-01-06 1.14.6 -> 2018-09-23 1.15.0 -> 2018-07-23 1.15.4 -> 2018-11-04 1.16.0 -> 2019-01-13 1.16.6 -> 2019-12-29 1.17.0 -> 2019-07-06 1.17.5 -> 2020-01-01 1.15.4 looks not-unreasonable to 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/33718/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33718/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33719
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33719/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33719/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33719/events
https://github.com/pandas-dev/pandas/issues/33719
604,651,749
MDU6SXNzdWU2MDQ2NTE3NDk=
33,719
BUG: idxmin() fails for nullable integer data type (Int64)
{ "avatar_url": "https://avatars.githubusercontent.com/u/16578738?v=4", "events_url": "https://api.github.com/users/cklb/events{/privacy}", "followers_url": "https://api.github.com/users/cklb/followers", "following_url": "https://api.github.com/users/cklb/following{/other_user}", "gists_url": "https://api.github.com/users/cklb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cklb", "id": 16578738, "login": "cklb", "node_id": "MDQ6VXNlcjE2NTc4NzM4", "organizations_url": "https://api.github.com/users/cklb/orgs", "received_events_url": "https://api.github.com/users/cklb/received_events", "repos_url": "https://api.github.com/users/cklb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cklb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cklb/subscriptions", "type": "User", "url": "https://api.github.com/users/cklb" }
[ { "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2020-04-22T10:41:20Z
2021-01-01T21:38:39Z
2021-01-01T21:38:39Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample ```python import pandas as pd s = pd.Series([1, 2, 3, 4], dtype="Int64") s.idxmax() ``` #### Problem description Currently, the `idxmax` call fails with ```python-traceback File "~lib/python3.8/site-packages/pandas/core/series.py", line 2110, in idxmax i = nanops.nanargmax(com.values_from_object(self), skipna=skipna) File "~lib/python3.8/site-packages/pandas/core/nanops.py", line 64, in _f raise TypeError( TypeError: reduction operation 'argmax' not allowed for this dtype ``` being raised. This may be a duplicate of #32749, although the focus there seems to be generating the exception I already encountered. #### Expected Output Should be `3`, I guess. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 5.5.13-arch2-1 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : de_DE.UTF-8 LOCALE : de_DE.UTF-8 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.2.0 Cython : None pytest : None hypothesis : None sphinx : 2.4.4 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.0 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : 0.8.6 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : None numba : None None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33719/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33719/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33720
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33720/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33720/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33720/events
https://github.com/pandas-dev/pandas/issues/33720
604,652,030
MDU6SXNzdWU2MDQ2NTIwMzA=
33,720
ENH: Control the escape scope of read_csv's escapechar
{ "avatar_url": "https://avatars.githubusercontent.com/u/25133690?v=4", "events_url": "https://api.github.com/users/garylavayou/events{/privacy}", "followers_url": "https://api.github.com/users/garylavayou/followers", "following_url": "https://api.github.com/users/garylavayou/following{/other_user}", "gists_url": "https://api.github.com/users/garylavayou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/garylavayou", "id": 25133690, "login": "garylavayou", "node_id": "MDQ6VXNlcjI1MTMzNjkw", "organizations_url": "https://api.github.com/users/garylavayou/orgs", "received_events_url": "https://api.github.com/users/garylavayou/received_events", "repos_url": "https://api.github.com/users/garylavayou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/garylavayou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/garylavayou/subscriptions", "type": "User", "url": "https://api.github.com/users/garylavayou" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
open
false
null
[]
null
0
2020-04-22T10:41:43Z
2020-06-06T16:00:42Z
null
NONE
null
#### Is your feature request related to a problem? So far, the `escapechar` (`\` by default) of `read_csv` method is used to escape the special meaning of all other characters for all columns. #### Describe the solution you'd like In my situation, I want the escape char to take effect only for quoted values, while it can be interpreted as normal character in some other non-quoted columns, like the following example: ```csv ..., "This is \"quoted\"", C:\users\gary, bad value\, ... ``` The listed values are expected to be interpreted as `This is "quoted"`, `C:\users\gary` and `bad value\`. But now, the `read_csv` method will interpret all columns, resulting in `This is "quoted"` and `C:usersgary` (`\` is removed), and the separater `,` after the `bad value\` will be render out by the escapechar `\` at the end of `bad value\`, making the `bad value` concatenated with the next column's value, which is not right. Therefore, it would be better to add an option to determine whether `escape_all` or `escape_in_quote`. #### API breaking implications Adding an option will not affect the default behavior of `read_csv` method. #### Describe alternatives you've considered Adding an option `escape_scope='escape_all' | 'escape_in_quote'`, with `escape_all` as default option.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33720/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33720/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33721
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33721/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33721/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33721/events
https://github.com/pandas-dev/pandas/issues/33721
604,738,086
MDU6SXNzdWU2MDQ3MzgwODY=
33,721
BUG: Exceptions not propagated from c_is_list_like in lib.pyx
{ "avatar_url": "https://avatars.githubusercontent.com/u/3190405?v=4", "events_url": "https://api.github.com/users/shwina/events{/privacy}", "followers_url": "https://api.github.com/users/shwina/followers", "following_url": "https://api.github.com/users/shwina/following{/other_user}", "gists_url": "https://api.github.com/users/shwina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shwina", "id": 3190405, "login": "shwina", "node_id": "MDQ6VXNlcjMxOTA0MDU=", "organizations_url": "https://api.github.com/users/shwina/orgs", "received_events_url": "https://api.github.com/users/shwina/received_events", "repos_url": "https://api.github.com/users/shwina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shwina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shwina/subscriptions", "type": "User", "url": "https://api.github.com/users/shwina" }
[ { "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": "36ede0", "default": false, "description": "Non-Recoverable Error", "id": 1121248195, "name": "Segfault", "node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-22T12:59:57Z
2020-04-27T18:58:07Z
2020-04-27T18:58:07Z
CONTRIBUTOR
null
Python exceptions originating in `c_is_list_like()` are not propagated as the function doesn't declare an exception value (`except -1`). https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/lib.pyx#L988
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33721/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33721/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33722
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33722/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33722/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33722/events
https://github.com/pandas-dev/pandas/pull/33722
604,768,854
MDExOlB1bGxSZXF1ZXN0NDA3Mjk5OTEz
33,722
TYP: add types to DataFrame._get_agg_axis
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-22T13:43:03Z
2020-04-22T18:31:58Z
2020-04-22T18:31:51Z
CONTRIBUTOR
null
Minor followup to #33610.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33722/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33722/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33722.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33722", "merged_at": "2020-04-22T18:31:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33722.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33722" }
https://api.github.com/repos/pandas-dev/pandas/issues/33723
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33723/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33723/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33723/events
https://github.com/pandas-dev/pandas/pull/33723
604,770,932
MDExOlB1bGxSZXF1ZXN0NDA3MzAxNjAy
33,723
BUG: Propagate Python exceptions from c_is_list_like (#33721)
{ "avatar_url": "https://avatars.githubusercontent.com/u/3190405?v=4", "events_url": "https://api.github.com/users/shwina/events{/privacy}", "followers_url": "https://api.github.com/users/shwina/followers", "following_url": "https://api.github.com/users/shwina/following{/other_user}", "gists_url": "https://api.github.com/users/shwina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shwina", "id": 3190405, "login": "shwina", "node_id": "MDQ6VXNlcjMxOTA0MDU=", "organizations_url": "https://api.github.com/users/shwina/orgs", "received_events_url": "https://api.github.com/users/shwina/received_events", "repos_url": "https://api.github.com/users/shwina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shwina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shwina/subscriptions", "type": "User", "url": "https://api.github.com/users/shwina" }
[ { "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": "36ede0", "default": false, "description": "Non-Recoverable Error", "id": 1121248195, "name": "Segfault", "node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
16
2020-04-22T13:45:47Z
2020-04-27T18:58:11Z
2020-04-27T18:58:07Z
CONTRIBUTOR
null
- [x] closes #33721 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33723/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33723/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33723.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33723", "merged_at": "2020-04-27T18:58:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33723.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33723" }
https://api.github.com/repos/pandas-dev/pandas/issues/33724
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33724/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33724/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33724/events
https://github.com/pandas-dev/pandas/pull/33724
604,778,134
MDExOlB1bGxSZXF1ZXN0NDA3MzA3NTE3
33,724
CLN: misc cleanups from LGTM.com
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-22T13:55:34Z
2020-04-23T07:03:00Z
2020-04-23T03:09:11Z
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/33724/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33724/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33724.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33724", "merged_at": "2020-04-23T03:09:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33724.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33724" }
https://api.github.com/repos/pandas-dev/pandas/issues/33725
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33725/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33725/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33725/events
https://github.com/pandas-dev/pandas/pull/33725
604,817,843
MDExOlB1bGxSZXF1ZXN0NDA3MzM5NzE4
33,725
TYP: construction
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-22T14:47:13Z
2020-04-24T14:27:24Z
2020-04-24T12:05:47Z
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/33725/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33725/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33725.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33725", "merged_at": "2020-04-24T12:05:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33725.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33725" }
https://api.github.com/repos/pandas-dev/pandas/issues/33726
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33726/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33726/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33726/events
https://github.com/pandas-dev/pandas/issues/33726
604,911,299
MDU6SXNzdWU2MDQ5MTEyOTk=
33,726
BUG: argument 'axis=1' is silently ignored in DataFrame diff() method when dtype is nullable integer (Int64)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7973615?v=4", "events_url": "https://api.github.com/users/geppi/events{/privacy}", "followers_url": "https://api.github.com/users/geppi/followers", "following_url": "https://api.github.com/users/geppi/following{/other_user}", "gists_url": "https://api.github.com/users/geppi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/geppi", "id": 7973615, "login": "geppi", "node_id": "MDQ6VXNlcjc5NzM2MTU=", "organizations_url": "https://api.github.com/users/geppi/orgs", "received_events_url": "https://api.github.com/users/geppi/received_events", "repos_url": "https://api.github.com/users/geppi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/geppi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/geppi/subscriptions", "type": "User", "url": "https://api.github.com/users/geppi" }
[ { "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
null
2
2020-04-22T16:53:33Z
2020-04-23T07:08:56Z
2020-04-23T07:08:56Z
NONE
null
```python import numpy as np import pandas as pd pd.show_versions() ``` INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 40.8.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.2.8 lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : 1.2.8 numba : None ```python df = pd.DataFrame([[1,2], [3,np.nan]], index= ['a', 'b'], columns=['A', 'B']).convert_dtypes() df ``` <div> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>a</th> <td>1</td> <td>2</td> </tr> <tr> <th>b</th> <td>3</td> <td>&lt;NA&gt;</td> </tr> </tbody> </table> </div> ```python df.dtypes ``` A Int64 B Int64 dtype: object ```python df.diff(axis=0) ``` <div> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>a</th> <td>&lt;NA&gt;</td> <td>&lt;NA&gt;</td> </tr> <tr> <th>b</th> <td>2</td> <td>&lt;NA&gt;</td> </tr> </tbody> </table> </div> ```python df.diff(axis=1) ``` <div> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>a</th> <td>&lt;NA&gt;</td> <td>&lt;NA&gt;</td> </tr> <tr> <th>b</th> <td>2</td> <td>&lt;NA&gt;</td> </tr> </tbody> </table> </div> Conversion to float fixes the issue ```python df = df.astype(float) df ``` <div> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>a</th> <td>1.0</td> <td>2.0</td> </tr> <tr> <th>b</th> <td>3.0</td> <td>NaN</td> </tr> </tbody> </table> </div> ```python df.diff(axis=1) ``` <div> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <th>a</th> <td>NaN</td> <td>1.0</td> </tr> <tr> <th>b</th> <td>NaN</td> <td>NaN</td> </tr> </tbody> </table> </div> ```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/33726/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33726/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33727
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33727/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33727/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33727/events
https://github.com/pandas-dev/pandas/pull/33727
604,961,557
MDExOlB1bGxSZXF1ZXN0NDA3NDU1NDc4
33,727
REF: avoid passing SingleBlockManager to Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-22T18:14:00Z
2020-04-23T18:02:57Z
2020-04-23T17:59:29Z
MEMBER
null
cc @jorisvandenbossche IIRC you didnt want to disallow SingleBlockManager because geopandas passes it. In those cases, does it also pass `fastpath=True`? If so, we can consider deprecating allowing SingleBlockManager in the non-fastpath case
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33727/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33727/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33727.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33727", "merged_at": "2020-04-23T17:59:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33727.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33727" }
https://api.github.com/repos/pandas-dev/pandas/issues/33728
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33728/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33728/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33728/events
https://github.com/pandas-dev/pandas/pull/33728
605,004,634
MDExOlB1bGxSZXF1ZXN0NDA3NDkwMzU2
33,728
TST: pd.concat on two (or more) series produces all-NaN dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-22T19:25:46Z
2020-04-23T07:01:36Z
2020-04-22T21:26:00Z
MEMBER
null
- [ ] closes #11058 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33728/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33728/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33728.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33728", "merged_at": "2020-04-22T21:26:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33728.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33728" }
https://api.github.com/repos/pandas-dev/pandas/issues/33729
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33729/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33729/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33729/events
https://github.com/pandas-dev/pandas/pull/33729
605,052,368
MDExOlB1bGxSZXF1ZXN0NDA3NTMwNDY1
33,729
BLD: bump numpy min version to 1.15.4
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
9
2020-04-22T20:31:06Z
2020-06-09T14:44:08Z
2020-05-01T19:38:39Z
MEMBER
null
- [x] closes #33718 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33729/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33729/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33729.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33729", "merged_at": "2020-05-01T19:38:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33729.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33729" }
https://api.github.com/repos/pandas-dev/pandas/issues/33730
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33730/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33730/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33730/events
https://github.com/pandas-dev/pandas/issues/33730
605,062,622
MDU6SXNzdWU2MDUwNjI2MjI=
33,730
DOC: add hvplot as option to plotting.backend
{ "avatar_url": "https://avatars.githubusercontent.com/u/17162724?v=4", "events_url": "https://api.github.com/users/raybellwaves/events{/privacy}", "followers_url": "https://api.github.com/users/raybellwaves/followers", "following_url": "https://api.github.com/users/raybellwaves/following{/other_user}", "gists_url": "https://api.github.com/users/raybellwaves/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/raybellwaves", "id": 17162724, "login": "raybellwaves", "node_id": "MDQ6VXNlcjE3MTYyNzI0", "organizations_url": "https://api.github.com/users/raybellwaves/orgs", "received_events_url": "https://api.github.com/users/raybellwaves/received_events", "repos_url": "https://api.github.com/users/raybellwaves/repos", "site_admin": false, "starred_url": "https://api.github.com/users/raybellwaves/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raybellwaves/subscriptions", "type": "User", "url": "https://api.github.com/users/raybellwaves" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
null
1
2020-04-22T20:45:22Z
2020-11-17T22:37:28Z
2020-11-17T22:37:28Z
CONTRIBUTOR
null
#### Location of the documentation Couple of sections here https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#visualization https://dev.pandas.io/docs/development/extending.html#plotting-backends #### Documentation problem Add information that [`hvplot`](https://hvplot.holoviz.org/) can be used as a backend `pd.set_option("plotting.backend", "hvplot")` #### Suggested fix for documentation Not sure will this could go. Could add a hvplot section to https://github.com/pandas-dev/pandas/blob/master/doc/source/ecosystem.rst#visualization but perhaps want to make an explicit list of all the plotting backend options at https://dev.pandas.io/docs/development/extending.html#plotting-backends
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33730/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33730/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33731
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33731/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33731/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33731/events
https://github.com/pandas-dev/pandas/issues/33731
605,072,313
MDU6SXNzdWU2MDUwNzIzMTM=
33,731
API: deprecate silently casting np.nan to NaT
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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
3
2020-04-22T21:01:03Z
2020-04-23T15:32:42Z
2020-04-23T15:32:41Z
MEMBER
null
When doing a setitem into a dt64/td64 Series, we cast `np.nan` to `NaT`. The alternative would be to cast to object dtype and set np.nan unchanged. Similarly anything that ends up calling `is_valid_nat_for_dtype` will allow through np.nan which ends up getting cast to NaT. We should consider deprecating this behavior and requiring users to pass NaT directly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33731/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33731/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33732
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33732/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33732/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33732/events
https://github.com/pandas-dev/pandas/issues/33732
605,098,023
MDU6SXNzdWU2MDUwOTgwMjM=
33,732
BUG: groupby ignores sort=False when observed=True breaking transform
{ "avatar_url": "https://avatars.githubusercontent.com/u/51373374?v=4", "events_url": "https://api.github.com/users/dhorkel/events{/privacy}", "followers_url": "https://api.github.com/users/dhorkel/followers", "following_url": "https://api.github.com/users/dhorkel/following{/other_user}", "gists_url": "https://api.github.com/users/dhorkel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhorkel", "id": 51373374, "login": "dhorkel", "node_id": "MDQ6VXNlcjUxMzczMzc0", "organizations_url": "https://api.github.com/users/dhorkel/orgs", "received_events_url": "https://api.github.com/users/dhorkel/received_events", "repos_url": "https://api.github.com/users/dhorkel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhorkel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhorkel/subscriptions", "type": "User", "url": "https://api.github.com/users/dhorkel" }
[ { "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
[]
null
1
2020-04-22T21:51:41Z
2020-08-21T17:06:04Z
2020-04-24T14:50:29Z
NONE
null
- [x] I have checked that this issue has not already been reported. Maybe related to but distinct from https://github.com/pandas-dev/pandas/issues/27369 - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample ```python import pandas as pd df = pd.DataFrame({'cat_col':pd.Categorical(['a','c','a','b']),'other_col':['q','w','w','q'],'val':[1,2,3,4]}) df.groupby(['cat_col','other_col'],observed=False,sort=False)['val'].transform(max) ``` returns ``` 0 1.0 1 3.0 2 NaN 3 2.0 Name: val, dtype: float64 ``` whereas ```python df.groupby(['cat_col','other_col'],observed=True,sort=False)['val'].transform(max) ``` returns ``` 0 1 1 2 2 3 3 4 Name: val, dtype: int64 ``` What is going on is more clear when using `.agg()` ```python df.groupby(['cat_col','other_col'],observed=False,sort=False)['val'].agg(max) ``` returns ``` a q 1.0 w 3.0 c q NaN w 2.0 b q 4.0 w NaN ``` whereas ```python df.groupby(['cat_col','other_col'],observed=True,sort=False)['val'].agg(max) ``` returns ``` a q 1 c w 2 a w 3 b q 4 Name: val, dtype: int64 ``` #### Problem description The `sort=False` is not respected when `observed=False`. It appears `transform()` assumes the original order still holds and maps the results to the shape of the original dataframe. This is an issue when using `.transform()` to create a new column in the original (unsorted) dataframe as the rows will not be correctly associated. #### Expected Output `transform()` should give the same result whether `observed=True` or `observed=False` in the `groupby()`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 18.7.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.0.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : 0.9.3 psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.5.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : 0.3.1 gcsfs : None lxml.etree : None matplotlib : 3.1.1 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.16.0 pytables : None pytest : None pyxlsb : None s3fs : 0.4.2 scipy : 1.4.1 sqlalchemy : 1.3.13 tables : 3.6.1 tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33732/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33732/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33733
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33733/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33733/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33733/events
https://github.com/pandas-dev/pandas/pull/33733
605,103,684
MDExOlB1bGxSZXF1ZXN0NDA3NTcxMzU0
33,733
CLN: Remove unused assignment
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-22T22:03:23Z
2020-04-23T02:51:20Z
2020-04-23T01:00:43Z
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/33733/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33733/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33733.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33733", "merged_at": "2020-04-23T01:00:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33733.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33733" }
https://api.github.com/repos/pandas-dev/pandas/issues/33734
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33734/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33734/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33734/events
https://github.com/pandas-dev/pandas/pull/33734
605,162,482
MDExOlB1bGxSZXF1ZXN0NDA3NjE5ODY5
33,734
REF: implement test_astype
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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": "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-23T00:50:13Z
2020-04-25T21:02:48Z
2020-04-25T21:00:43Z
MEMBER
null
Split/parametrized in some places.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33734/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33734/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33734.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33734", "merged_at": "2020-04-25T21:00:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33734.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33734" }
https://api.github.com/repos/pandas-dev/pandas/issues/33735
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33735/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33735/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33735/events
https://github.com/pandas-dev/pandas/issues/33735
605,184,626
MDU6SXNzdWU2MDUxODQ2MjY=
33,735
BUG: escapechar option of to_csv method does not function properly.
{ "avatar_url": "https://avatars.githubusercontent.com/u/25133690?v=4", "events_url": "https://api.github.com/users/garylavayou/events{/privacy}", "followers_url": "https://api.github.com/users/garylavayou/followers", "following_url": "https://api.github.com/users/garylavayou/following{/other_user}", "gists_url": "https://api.github.com/users/garylavayou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/garylavayou", "id": 25133690, "login": "garylavayou", "node_id": "MDQ6VXNlcjI1MTMzNjkw", "organizations_url": "https://api.github.com/users/garylavayou/orgs", "received_events_url": "https://api.github.com/users/garylavayou/received_events", "repos_url": "https://api.github.com/users/garylavayou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/garylavayou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/garylavayou/subscriptions", "type": "User", "url": "https://api.github.com/users/garylavayou" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
open
false
null
[]
null
0
2020-04-23T02:04:37Z
2020-06-06T02:53:07Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python t = pd.DataFrame({0:['"key":"value"'], 1:['mno,'], 2:['abc\\'], 3:['ijk']}) print(t) # 0 1 2 3 #0 "key":"value" mno, abc\ ijk t.to_csv('test.csv', header=None, escapechar='\\') # cat test.csv # 0,"""key"":""value""","mno,","abc\",ijk t = pd.read_csv('test.csv', header=None, escapechar='\\') ``` #### Problem description The `read_csv` cannot parse the file, and produce an `ParseError` ```sh ....ParserError: Error tokenizing data. C error: EOF inside string starting at row 0 ``` This is because the third column with value `"abc\"`, in which the `\` is a normal character in the string, is not handled properly. With `escapechar='\\'` set for `to_csv`, the value `abc\` is quoted in the output `test.csv` file as: ``` 0,"""key"":""value""","mno,","abc\",ijk ``` As a result the escapechar can be parsed as normal character if we read it by using `read_csv` without `escapechar='\\'` . **However, this is not compatible with `read_csv` with `escapechar='\\'` , as it will render the `\"` as a single normal character `"`, thus the quoting pair of this column is missing the end quote char, and hence the above error occurs.** #### Expected Output When writing file with`to_csv`, the `\` specified as escapechar should be rendered as `\\` in the output file, instead of quote the whole string with quotechar `"..."`. In this way, the meaning of `escapechar` option in `to_csv` and `read_csv` would be consistent, i.e., if we write with `escapechar` , the we read with `escapechar` ( otherwise the `\\` is read as two normal characters, without error occuring). #### Output of ``pd.show_versions()`` <details> python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33735/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33735/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33736
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33736/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33736/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33736/events
https://github.com/pandas-dev/pandas/pull/33736
605,199,629
MDExOlB1bGxSZXF1ZXN0NDA3NjQ4OTcx
33,736
REF: use _wrap_joined_index in PeriodIndex.join
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" }, { "color": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-23T02:51:33Z
2020-04-23T17:54:22Z
2020-04-23T17:13:46Z
MEMBER
null
PeriodIndex defines _apply_meta, but that is made unnecessary by implementing _wrap_joined_index correctly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33736/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33736/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33736.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33736", "merged_at": "2020-04-23T17:13:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33736.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33736" }
https://api.github.com/repos/pandas-dev/pandas/issues/33737
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33737/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33737/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33737/events
https://github.com/pandas-dev/pandas/pull/33737
605,202,119
MDExOlB1bGxSZXF1ZXN0NDA3NjUwODk4
33,737
TST: fix tests for asserting matching freq
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-23T02:59:53Z
2020-04-23T18:56:34Z
2020-04-23T18:55:56Z
MEMBER
null
xref #33711, #33712
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33737/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33737/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33737.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33737", "merged_at": "2020-04-23T18:55:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33737.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33737" }
https://api.github.com/repos/pandas-dev/pandas/issues/33738
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33738/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33738/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33738/events
https://github.com/pandas-dev/pandas/issues/33738
605,202,515
MDU6SXNzdWU2MDUyMDI1MTU=
33,738
ENH: rejected support for Python data structures containing Pandas DataFrames/Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/10172392?v=4", "events_url": "https://api.github.com/users/xuancong84/events{/privacy}", "followers_url": "https://api.github.com/users/xuancong84/followers", "following_url": "https://api.github.com/users/xuancong84/following{/other_user}", "gists_url": "https://api.github.com/users/xuancong84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xuancong84", "id": 10172392, "login": "xuancong84", "node_id": "MDQ6VXNlcjEwMTcyMzky", "organizations_url": "https://api.github.com/users/xuancong84/orgs", "received_events_url": "https://api.github.com/users/xuancong84/received_events", "repos_url": "https://api.github.com/users/xuancong84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xuancong84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xuancong84/subscriptions", "type": "User", "url": "https://api.github.com/users/xuancong84" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
2
2020-04-23T03:01:14Z
2020-08-21T17:06:04Z
2020-04-23T03:21:28Z
NONE
null
It is great that you have implemented to_csv and read_csv() to export and import tables in CSV format. It would be even better to be able to serialize/deserialize Python data structures such as list and dict containing DataFrames/Series. For example, something like [this](https://github.com/xuancong84/pandas-serializer). Would that be possible? 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/33738/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33738/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33739
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33739/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33739/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33739/events
https://github.com/pandas-dev/pandas/pull/33739
605,222,487
MDExOlB1bGxSZXF1ZXN0NDA3NjY3MDc1
33,739
PERF: fix #32976 slow group by for categorical columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/19578629?v=4", "events_url": "https://api.github.com/users/rtlee9/events{/privacy}", "followers_url": "https://api.github.com/users/rtlee9/followers", "following_url": "https://api.github.com/users/rtlee9/following{/other_user}", "gists_url": "https://api.github.com/users/rtlee9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rtlee9", "id": 19578629, "login": "rtlee9", "node_id": "MDQ6VXNlcjE5NTc4NjI5", "organizations_url": "https://api.github.com/users/rtlee9/orgs", "received_events_url": "https://api.github.com/users/rtlee9/received_events", "repos_url": "https://api.github.com/users/rtlee9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rtlee9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rtlee9/subscriptions", "type": "User", "url": "https://api.github.com/users/rtlee9" }
[ { "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": "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": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
10
2020-04-23T04:05:52Z
2020-11-06T01:53:02Z
2020-11-06T01:53:02Z
CONTRIBUTOR
null
Aggregate categorical codes with fast cython aggregation for select `how` operations. Added new ASV benchmark copied from 32976 indicating > 99% improvement in performance for this case. - [x] closes #32976 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33739/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33739/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33739.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33739", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/33739.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33739" }
https://api.github.com/repos/pandas-dev/pandas/issues/33740
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33740/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33740/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33740/events
https://github.com/pandas-dev/pandas/issues/33740
605,268,319
MDU6SXNzdWU2MDUyNjgzMTk=
33,740
BUG: pandas merge suffixes accepting `set` can interchange right and left suffix order
{ "avatar_url": "https://avatars.githubusercontent.com/u/21996583?v=4", "events_url": "https://api.github.com/users/PuneethaPai/events{/privacy}", "followers_url": "https://api.github.com/users/PuneethaPai/followers", "following_url": "https://api.github.com/users/PuneethaPai/following{/other_user}", "gists_url": "https://api.github.com/users/PuneethaPai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PuneethaPai", "id": 21996583, "login": "PuneethaPai", "node_id": "MDQ6VXNlcjIxOTk2NTgz", "organizations_url": "https://api.github.com/users/PuneethaPai/orgs", "received_events_url": "https://api.github.com/users/PuneethaPai/received_events", "repos_url": "https://api.github.com/users/PuneethaPai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PuneethaPai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PuneethaPai/subscriptions", "type": "User", "url": "https://api.github.com/users/PuneethaPai" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-23T06:14:49Z
2020-06-08T01:36:52Z
2020-06-08T01:36:52Z
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- ```python df_b = pd.DataFrame(dict(p=[1,2,3], q=[2,3,4])) df_a = pd.DataFrame(dict(p=[2,3,4], q=[1,2,3])) pd.merge(left=df_b, right=df_a, on=['p'], how='outer', suffixes={'_b', '_a'}) ``` #### Current output:   | p | q_a | q_b -- | -- | -- | -- 0 | 1 | 2.0 | NaN 1 | 2 | 3.0 | 1.0 2 | 3 | 4.0 | 2.0 3 | 4 | NaN | 3.0 #### Expected Output:   | p | q_b | q_a -- | -- | -- | -- 0 |1 | 2.0 | NaN 1 | 2 | 3.0 | 1.0 2 | 3 | 4.0 | 2.0 3 | 4 | NaN | 3.0 #### Problem description This [line](https://github.com/pandas-dev/pandas/blob/837daf18d480cce18c25844c591c39da19437252/pandas/core/reshape/merge.py#L670 ) is causing the issue: ``` lsuf, rsuf = self.suffixes ``` When you unpack set it returns elements in sorted order: ``` l, r = (2, 1); print(l, r) # l=2, r=1 l, r = [2, 1]; print(l, r) # l=2, r=1 l, r = {2, 1}; print(l, r) # l=1, r=2 ``` #### Output of ``pd.show_versions()`` <details> [INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 4.14.165-133.209.amzn2.x86_64 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.3 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200330 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : 0.4.2 scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33740/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33740/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33741
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33741/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33741/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33741/events
https://github.com/pandas-dev/pandas/issues/33741
605,282,747
MDU6SXNzdWU2MDUyODI3NDc=
33,741
BUG: DatetimeIndex.get_indexer wrong result on mixed-type argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4", "events_url": "https://api.github.com/users/batterseapower/events{/privacy}", "followers_url": "https://api.github.com/users/batterseapower/followers", "following_url": "https://api.github.com/users/batterseapower/following{/other_user}", "gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/batterseapower", "id": 18488, "login": "batterseapower", "node_id": "MDQ6VXNlcjE4NDg4", "organizations_url": "https://api.github.com/users/batterseapower/orgs", "received_events_url": "https://api.github.com/users/batterseapower/received_events", "repos_url": "https://api.github.com/users/batterseapower/repos", "site_admin": false, "starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions", "type": "User", "url": "https://api.github.com/users/batterseapower" }
[ { "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": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-23T06:45:30Z
2020-06-01T00:28:41Z
2020-06-01T00:28:41Z
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. #### Code Sample, a copy-pastable example ```python import datetime import pandas as pd dates = pd.bdate_range('2020-04-20', '2020-04-25') print(dates.get_indexer([datetime.date(2020, 4, 20), datetime.date(2020, 4, 21)])) # [0, 1] print(dates.get_indexer([pd.Timestamp('2020-04-20'), datetime.date(2020, 4, 21)])) # [0, -1] ``` #### Problem description As a general rule I would expect that `index.get_indexer(as + bs) == np.concat([index.get_indexer(as), index.get_indexer(bs)])` for any lists `as` and `bs`, i.e. `index.get_indexer` operates elementwise. However in this case the type of a previous argument is surprisingly affecting the index that is assigned to a later one. #### Expected Output `[0, 1]` in both cases #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 63 Stepping 2, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United Kingdom.936 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200330 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33741/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33741/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33742
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33742/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33742/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33742/events
https://github.com/pandas-dev/pandas/issues/33742
605,299,476
MDU6SXNzdWU2MDUyOTk0NzY=
33,742
DOC:
{ "avatar_url": "https://avatars.githubusercontent.com/u/61982645?v=4", "events_url": "https://api.github.com/users/noobcoder486/events{/privacy}", "followers_url": "https://api.github.com/users/noobcoder486/followers", "following_url": "https://api.github.com/users/noobcoder486/following{/other_user}", "gists_url": "https://api.github.com/users/noobcoder486/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/noobcoder486", "id": 61982645, "login": "noobcoder486", "node_id": "MDQ6VXNlcjYxOTgyNjQ1", "organizations_url": "https://api.github.com/users/noobcoder486/orgs", "received_events_url": "https://api.github.com/users/noobcoder486/received_events", "repos_url": "https://api.github.com/users/noobcoder486/repos", "site_admin": false, "starred_url": "https://api.github.com/users/noobcoder486/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/noobcoder486/subscriptions", "type": "User", "url": "https://api.github.com/users/noobcoder486" }
[ { "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
2020-04-23T07:18:01Z
2020-04-24T15:04:19Z
2020-04-24T15:04:19Z
NONE
null
I am not able to read a CSV file which is uploaded on Github itself. I want pandas to read the file and provide me the data frame. But I am getting a Parse Error. The Error is as: df=pd.read_csv("https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv") ParserError Traceback (most recent call last) <ipython-input-8-91ca12bc272f> in <module> ----> 1 df=pd.read_csv("https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv") ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision) 700 skip_blank_lines=skip_blank_lines) 701 --> 702 return _read(filepath_or_buffer, kwds) 703 704 parser_f.__name__ = name ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds) 433 434 try: --> 435 data = parser.read(nrows) 436 finally: 437 parser.close() ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in read(self, nrows) 1137 def read(self, nrows=None): 1138 nrows = _validate_integer('nrows', nrows) -> 1139 ret = self._engine.read(nrows) 1140 1141 # May alter columns / col_dict ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in read(self, nrows) 1993 def read(self, nrows=None): 1994 try: -> 1995 data = self._reader.read(nrows) 1996 except StopIteration: 1997 if self._first_chunk: pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.read() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_rows() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows() pandas/_libs/parsers.pyx in pandas._libs.parsers.raise_parser_error() ParserError: Error tokenizing data. C error: Expected 1 fields in line 33, saw 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/33742/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33742/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33743
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33743/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33743/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33743/events
https://github.com/pandas-dev/pandas/issues/33743
605,320,523
MDU6SXNzdWU2MDUzMjA1MjM=
33,743
pandas boxplot props not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/6410859?v=4", "events_url": "https://api.github.com/users/mdf-github/events{/privacy}", "followers_url": "https://api.github.com/users/mdf-github/followers", "following_url": "https://api.github.com/users/mdf-github/following{/other_user}", "gists_url": "https://api.github.com/users/mdf-github/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mdf-github", "id": 6410859, "login": "mdf-github", "node_id": "MDQ6VXNlcjY0MTA4NTk=", "organizations_url": "https://api.github.com/users/mdf-github/orgs", "received_events_url": "https://api.github.com/users/mdf-github/received_events", "repos_url": "https://api.github.com/users/mdf-github/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mdf-github/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mdf-github/subscriptions", "type": "User", "url": "https://api.github.com/users/mdf-github" }
[ { "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
2
2020-04-23T07:54:18Z
2020-05-13T06:07:33Z
2020-05-13T06:07:33Z
NONE
null
I cannot change some of the plotting kwargs in `pd.DataFrame.boxplot`. I replot the same in matplotlib with almost the same code and I get the expected results. Here's a minimum working example: ``` np.random.seed(1234) df = pd.DataFrame(np.random.randn(10, 4), columns=['Col1', 'Col2', 'Col3', 'Col4']) df.boxplot(column=['Col1', 'Col2', 'Col3'], showmeans=True, meanprops={'markerfacecolor': 'r'}, boxprops={'linewidth':5,'color': 'r'} ) fig2, ax2 = plt.subplots() ax2.boxplot([df[c] for c in df.columns],showmeans=True, meanprops={'markerfacecolor': 'r'}, boxprops={'linewidth':5,'color': 'r'}) ``` The resulting plots are different. While the boxes are rendered in the correct color using `ax2.boxplot`, the `df.boxplot` version still has blue boxes (though thicker, which means `linewidth` works here).
{ "+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/33743/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33743/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33744
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33744/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33744/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33744/events
https://github.com/pandas-dev/pandas/issues/33744
605,361,693
MDU6SXNzdWU2MDUzNjE2OTM=
33,744
pandas statistics
{ "avatar_url": "https://avatars.githubusercontent.com/u/181628?v=4", "events_url": "https://api.github.com/users/nschloe/events{/privacy}", "followers_url": "https://api.github.com/users/nschloe/followers", "following_url": "https://api.github.com/users/nschloe/following{/other_user}", "gists_url": "https://api.github.com/users/nschloe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nschloe", "id": 181628, "login": "nschloe", "node_id": "MDQ6VXNlcjE4MTYyOA==", "organizations_url": "https://api.github.com/users/nschloe/orgs", "received_events_url": "https://api.github.com/users/nschloe/received_events", "repos_url": "https://api.github.com/users/nschloe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nschloe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nschloe/subscriptions", "type": "User", "url": "https://api.github.com/users/nschloe" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
1
2020-04-23T08:58:35Z
2020-08-21T17:06:04Z
2020-04-23T08:59:00Z
CONTRIBUTOR
null
Just a small heads-up of how well pandas is doing. I wrote [hotware](https://github.com/nschloe/hotware) to check the popularity of software on GitHub and StackOverflow, and in the scientific Python department, pandas is clearly number 1: ![pd](https://user-images.githubusercontent.com/181628/80079616-cfe52400-8550-11ea-95a6-cdcab06530c1.png) https://github.com/nschloe/hotware#scientific-python You might want to use this in your next funding proposal. :smile_cat: Congrats on a great piece of software!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33744/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33744/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33745
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33745/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33745/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33745/events
https://github.com/pandas-dev/pandas/pull/33745
605,397,533
MDExOlB1bGxSZXF1ZXN0NDA3ODA2MDAz
33,745
BUG: support skew function for custom BaseIndexer rolling windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" }
[ { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
9
2020-04-23T09:53:20Z
2020-04-26T06:01:34Z
2020-04-25T22:03:14Z
MEMBER
null
- [X] xref #32865 - [X] 1 tests added / 1 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Scope of PR This PR does a couple things to fix the performance of `skew`, and this also fixes the behavior of all the functions that have `require_min_periods` for small values of `min_periods`: * clarify docs. Name all sample methods uniformly, add a note to the caveat that users should in general be careful about using sample methods with windows * fix bug in `_apply` that made us never go into the `BaseIndexer` control flow branch * fix bug in `_apply`: pass `window_indexer.window_size` into `calc_min_periods` instead of `min_periods or 1`. We want the custom indexer window size there, so it's not clear to me why we were passing `min_periods or 1` . ## Details The algorithm itself is robust, but it defaults to sample skewness, which is why there was a difference between its output and `numpy`. To prevent misunderstandings, I clarified the docs a bit. We were also passing a wrong value to `calc_min_periods`, and we weren't going into the proper if branch, because we were checking the type of `window` instead of `self.window`. ## Background on the wider issue We currently don't support several rolling window functions when building a rolling window object using a custom class descended from `pandas.api.indexers.Baseindexer`. The implementations were written with backward-looking windows in mind, and this led to these functions breaking. Currently, using these functions returns a `NotImplemented` error thanks to #33057, but ideally we want to update the implementations, so that they will work without a performance hit. This is what I aim to do over a series of PRs. ## Perf notes No changes to algorithms.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33745/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33745/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33745.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33745", "merged_at": "2020-04-25T22:03:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33745.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33745" }
https://api.github.com/repos/pandas-dev/pandas/issues/33746
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33746/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33746/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33746/events
https://github.com/pandas-dev/pandas/issues/33746
605,454,478
MDU6SXNzdWU2MDU0NTQ0Nzg=
33,746
BUG: ExcelWriter: file is corrupted on save (and: does it accept a file object?)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1063219?v=4", "events_url": "https://api.github.com/users/kuraga/events{/privacy}", "followers_url": "https://api.github.com/users/kuraga/followers", "following_url": "https://api.github.com/users/kuraga/following{/other_user}", "gists_url": "https://api.github.com/users/kuraga/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuraga", "id": 1063219, "login": "kuraga", "node_id": "MDQ6VXNlcjEwNjMyMTk=", "organizations_url": "https://api.github.com/users/kuraga/orgs", "received_events_url": "https://api.github.com/users/kuraga/received_events", "repos_url": "https://api.github.com/users/kuraga/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuraga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuraga/subscriptions", "type": "User", "url": "https://api.github.com/users/kuraga" }
[ { "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": "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" } ]
open
false
null
[]
null
5
2020-04-23T11:25:05Z
2021-08-13T16:32:25Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example `first.py`: ```python import pandas as pd import openpyxl df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}) writer1 = pd.ExcelWriter('first.xlsx', engine='openpyxl') df.to_excel(writer1) writer1.save() writer1.close() ``` `second.py`: ```python import pandas as pd import openpyxl df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}) output2 = open('second.xlsx', 'wb') writer2 = pd.ExcelWriter(output2, engine='openpyxl') df.to_excel(writer2) writer2.save() writer2.close() output2.flush() output2.close() ``` **UPD 2**: ```python writer2.save() writer2.close() ``` Remove one line. It will start to work! **UPD:** `third.py` (see https://github.com/pandas-dev/pandas/issues/33746#issuecomment-640169769 by @lordgrenville): ```python import pandas as pd import openpyxl df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}) with open('third.xlsx', 'wb') as output3: writer3 = pd.ExcelWriter(output3, engine='openpyxl') df.to_excel(writer3) writer3.save() ``` #### Problem description ``` $ python first.py $ python second.py $ du -b first.xlsx second.xlsx third.xlsx 4737 first.xlsx 9474 second.xlsx 4737 third.xlsx ``` ~(Note: 9474 = 2 * 4737. But sometimes it's not true.)~ 1. Why files differ? 2. Documentation [says](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.ExcelWriter.html): `path - str - Path to xls or xlsx file.` So does `pd.ExcelWriter.__init__` accept a file-like object? #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Linux OS-release : 5.4.32-calculate machine : x86_64 processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz byteorder : little LC_ALL : None LANG : ru_RU.utf8 LOCALE : ru_RU.UTF-8 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200330 Cython : 0.29.15 pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.2.8 lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : 1.2.8 numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33746/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33746/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33747
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33747/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33747/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33747/events
https://github.com/pandas-dev/pandas/issues/33747
605,565,692
MDU6SXNzdWU2MDU1NjU2OTI=
33,747
CI not running linux / windows builds
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-23T14:03:19Z
2020-04-23T17:09:17Z
2020-04-23T17:09:17Z
CONTRIBUTOR
null
cc @pandas-dev/pandas-core
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33747/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33747/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33748
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33748/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33748/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33748/events
https://github.com/pandas-dev/pandas/issues/33748
605,634,527
MDU6SXNzdWU2MDU2MzQ1Mjc=
33,748
BUG: to_hdf and HDFStore raise KeyError for DataFrame subclasses
{ "avatar_url": "https://avatars.githubusercontent.com/u/5081109?v=4", "events_url": "https://api.github.com/users/sytham/events{/privacy}", "followers_url": "https://api.github.com/users/sytham/followers", "following_url": "https://api.github.com/users/sytham/following{/other_user}", "gists_url": "https://api.github.com/users/sytham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sytham", "id": 5081109, "login": "sytham", "node_id": "MDQ6VXNlcjUwODExMDk=", "organizations_url": "https://api.github.com/users/sytham/orgs", "received_events_url": "https://api.github.com/users/sytham/received_events", "repos_url": "https://api.github.com/users/sytham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sytham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sytham/subscriptions", "type": "User", "url": "https://api.github.com/users/sytham" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
4
2020-04-23T15:30:32Z
2020-12-19T02:19:00Z
2020-12-19T02:19:00Z
NONE
null
- [x ] I have checked that this issue has not already been reported. - [x ] I have confirmed this bug exists on the latest version of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd class SubDataFrame(pd.DataFrame): @property def _constructor(self): return SubDataFrame # fails with KeyError sdf = SubDataFrame({'a':[1,2], 'b':[3,4]}) sdf.to_hdf('test.h5', 'test') with pd.HDFStore('test.h5') as store: store.put('test', sdf) ``` #### Problem description ``to_hdf()`` and ``HDFStore.put()`` fail for DataFrame subclasses. This happens because in ``pandas/io/pytables.py`` in ``_create_storer`` line 1578 (or thereabouts), the ``_TYPE_MAP`` is accessed by ``type()``, whereas upon ``_create_storer`` entry, the check is done using ``isinstance()``. #### Expected Output The check upon entry of ``_create_storer`` should at least be consistent with the way ``_TYPE_MAP`` is accessed. So if the choice is not to support writing DataFrame subclasses to HDF, instead of a ``KeyError``, a ``TypeError("value must be None, Series, or DataFrame")`` should be raised. But ideally, storing subclasses of DataFrame to HDF should be supported. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.10.final.0 python-bits : 64 OS : Linux OS-release : 4.14.111-1.el7.centos.x86_64 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200325 Cython : None pytest : 5.4.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.10.2 pandas_datareader: None bs4 : 4.8.2 bottleneck : None fastparquet : 0.3.2 gcsfs : None lxml.etree : None matplotlib : 3.1.1 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.1 pyxlsb : None s3fs : 0.4.0 scipy : 1.2.1 sqlalchemy : 1.3.11 tables : 3.6.1 tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.46.0 </details>
{ "+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/33748/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33748/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33749
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33749/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33749/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33749/events
https://github.com/pandas-dev/pandas/pull/33749
605,707,197
MDExOlB1bGxSZXF1ZXN0NDA4MDU5NDk4
33,749
BUG: Fix mixed datetime dtype inference
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-04-23T17:16:03Z
2020-06-01T00:29:55Z
2020-06-01T00:28:41Z
MEMBER
null
- [x] closes #33741 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33749/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33749/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33749.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33749", "merged_at": "2020-06-01T00:28:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33749.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33749" }
https://api.github.com/repos/pandas-dev/pandas/issues/33750
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33750/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33750/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33750/events
https://github.com/pandas-dev/pandas/pull/33750
605,708,741
MDExOlB1bGxSZXF1ZXN0NDA4MDYwNzg0
33,750
CLN: Remove is_null_period
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "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
2
2020-04-23T17:18:22Z
2020-04-23T18:58:56Z
2020-04-23T18:56:18Z
MEMBER
null
is_null_period seems only to be an alias for checknull_with_nat so I think it can be removed?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33750/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33750/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33750.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33750", "merged_at": "2020-04-23T18:56:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33750.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33750" }
https://api.github.com/repos/pandas-dev/pandas/issues/33751
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33751/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33751/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33751/events
https://github.com/pandas-dev/pandas/pull/33751
605,818,819
MDExOlB1bGxSZXF1ZXN0NDA4MTUyMzEx
33,751
TST: pd.NA TypeError in drop_duplicates with object dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-23T19:49:07Z
2020-04-25T09:14:57Z
2020-04-24T22:25:24Z
MEMBER
null
- [ ] closes #32992 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33751/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33751/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33751.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33751", "merged_at": "2020-04-24T22:25:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33751.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33751" }
https://api.github.com/repos/pandas-dev/pandas/issues/33752
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33752/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33752/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33752/events
https://github.com/pandas-dev/pandas/issues/33752
605,832,644
MDU6SXNzdWU2MDU4MzI2NDQ=
33,752
BUG: weekday property raises TypeError in groupby method
{ "avatar_url": "https://avatars.githubusercontent.com/u/8366972?v=4", "events_url": "https://api.github.com/users/philipphanemann/events{/privacy}", "followers_url": "https://api.github.com/users/philipphanemann/followers", "following_url": "https://api.github.com/users/philipphanemann/following{/other_user}", "gists_url": "https://api.github.com/users/philipphanemann/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/philipphanemann", "id": 8366972, "login": "philipphanemann", "node_id": "MDQ6VXNlcjgzNjY5NzI=", "organizations_url": "https://api.github.com/users/philipphanemann/orgs", "received_events_url": "https://api.github.com/users/philipphanemann/received_events", "repos_url": "https://api.github.com/users/philipphanemann/repos", "site_admin": false, "starred_url": "https://api.github.com/users/philipphanemann/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/philipphanemann/subscriptions", "type": "User", "url": "https://api.github.com/users/philipphanemann" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
open
false
null
[]
null
7
2020-04-23T20:09:11Z
2021-07-31T04:38:09Z
null
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd n = 1000 s = pd.Series(range(n), index=pd.date_range('2020-01-01', periods=n, freq='H')) s.groupby(lambda x: (x.weekday, x.hour)).mean() ``` #### Problem description Used in the groupby method as a function argument in combination with another index time attribute `weekday` raises a TypeError whereas `dayofweek` works although they are both aliases for each other. #### Expected Output I do expect the same output as with ` s.groupby(lambda x: (x.dayofweek, x.hour)).mean()` since it works as a single argument: `s.groupby(lambda x: x.dayofweek).mean().equals(s.groupby(lambda x: x.weekday).mean())` #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-96-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : de_DE.UTF-8 LOCALE : de_DE.UTF-8 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200330 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33752/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33752/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33753
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33753/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33753/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33753/events
https://github.com/pandas-dev/pandas/pull/33753
605,876,128
MDExOlB1bGxSZXF1ZXN0NDA4MjAwNTE1
33,753
CLN: Parametrize dtype inference tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "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": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-23T21:11:22Z
2020-04-23T22:39:28Z
2020-04-23T22:38:15Z
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/33753/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33753/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33753.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33753", "merged_at": "2020-04-23T22:38:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33753.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33753" }
https://api.github.com/repos/pandas-dev/pandas/issues/33754
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33754/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33754/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33754/events
https://github.com/pandas-dev/pandas/issues/33754
605,909,539
MDU6SXNzdWU2MDU5MDk1Mzk=
33,754
ENH: .to_rpy2 method for DataFrame and Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/9061708?v=4", "events_url": "https://api.github.com/users/jolespin/events{/privacy}", "followers_url": "https://api.github.com/users/jolespin/followers", "following_url": "https://api.github.com/users/jolespin/following{/other_user}", "gists_url": "https://api.github.com/users/jolespin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jolespin", "id": 9061708, "login": "jolespin", "node_id": "MDQ6VXNlcjkwNjE3MDg=", "organizations_url": "https://api.github.com/users/jolespin/orgs", "received_events_url": "https://api.github.com/users/jolespin/received_events", "repos_url": "https://api.github.com/users/jolespin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jolespin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jolespin/subscriptions", "type": "User", "url": "https://api.github.com/users/jolespin" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
1
2020-04-23T22:16:29Z
2020-08-21T17:06:05Z
2020-04-25T06:02:25Z
NONE
null
#### Is your feature request related to a problem? https://rpy2.github.io/doc/v3.0.x/html/generated_rst/pandas.html I've been using rpy2 a lot and considering that pandas was inspired from R it would be nice to have a .to_rpy2 method for seemless conversion. #### Describe the solution you'd like ``` df = pd.DataFrame(data) r_df = df.to_rpy2() ``` #### API breaking implications It shouldn't affect the API at all. If `rpy2` isn't installed then throw an error just like writing excel files needs another package. #### Describe alternatives you've considered I made wrappers that I need to use. #### Additional context Current method with `rpy2` requires some boilerplate and is less seamless: ![image](https://user-images.githubusercontent.com/9061708/80154923-64617d80-8575-11ea-98bf-1fb88d5a689b.png) Here's my current hack: ![image](https://user-images.githubusercontent.com/9061708/80155790-4f85e980-8577-11ea-9498-8a8edbd2bebe.png)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33754/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33754/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33755
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33755/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33755/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33755/events
https://github.com/pandas-dev/pandas/pull/33755
605,923,041
MDExOlB1bGxSZXF1ZXN0NDA4MjM5MDg4
33,755
CI: Revert Cython Pin (take 2)
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-23T22:49:55Z
2020-04-27T23:47:08Z
2020-04-27T23:10:34Z
CONTRIBUTOR
null
- [x] closes #33507 reverts #33534 New Cython pre release available today - https://pypi.org/project/Cython/3.0a2/ cc @WillAyd Update: 3.0a2 (no such luck - seems there is a regression which is being looked at) https://mail.python.org/pipermail/cython-devel/2020-April/005340.html https://github.com/cython/cython/issues/3544 Update now trying 3.0a3
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33755/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33755/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33755.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33755", "merged_at": "2020-04-27T23:10:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33755.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33755" }
https://api.github.com/repos/pandas-dev/pandas/issues/33756
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33756/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33756/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33756/events
https://github.com/pandas-dev/pandas/issues/33756
605,963,140
MDU6SXNzdWU2MDU5NjMxNDA=
33,756
BUG: DataFrame.truncate() returns incorrect data if the index is sorted in descending order
{ "avatar_url": "https://avatars.githubusercontent.com/u/7295453?v=4", "events_url": "https://api.github.com/users/francislan/events{/privacy}", "followers_url": "https://api.github.com/users/francislan/followers", "following_url": "https://api.github.com/users/francislan/following{/other_user}", "gists_url": "https://api.github.com/users/francislan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/francislan", "id": 7295453, "login": "francislan", "node_id": "MDQ6VXNlcjcyOTU0NTM=", "organizations_url": "https://api.github.com/users/francislan/orgs", "received_events_url": "https://api.github.com/users/francislan/received_events", "repos_url": "https://api.github.com/users/francislan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/francislan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/francislan/subscriptions", "type": "User", "url": "https://api.github.com/users/francislan" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-24T00:52:47Z
2020-04-26T21:04:16Z
2020-04-26T21:04:16Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas (1.0.3) - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python df = pd.DataFrame(index=range(0, 5), data={'A': 1}) df.sort_index(ascending=False, inplace=True) df.truncate(before=3) ``` #### Problem description When the index is sorted in descending order, the truncate() function behaves incorrectly. In the example above, it should truncate all rows whose index is < 3. Instead it is truncating all rows whose index is > 3. Similarly when using after. #### Output ```python >>> df A 4 1 3 1 2 1 1 1 0 1 >>> df.truncate(before=3) A 3 1 2 1 1 1 0 1 ``` #### Expected Output ```python >>> df.truncate(before=3) A 4 1 3 1 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 19.4.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.2.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33756/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33756/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33757
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33757/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33757/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33757/events
https://github.com/pandas-dev/pandas/pull/33757
605,994,731
MDExOlB1bGxSZXF1ZXN0NDA4Mjk2MTY3
33,757
BUG: MonthOffset.name
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-24T02:38:17Z
2020-04-25T00:39:36Z
2020-04-25T00:30:01Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `is_anchored` is being accessed indirectly (its not a property). As a result we never go down the other path, which would raise AttributeError since there is no `code_rule`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33757/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33757/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33757.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33757", "merged_at": "2020-04-25T00:30:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33757.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33757" }
https://api.github.com/repos/pandas-dev/pandas/issues/33758
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33758/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33758/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33758/events
https://github.com/pandas-dev/pandas/pull/33758
606,170,039
MDExOlB1bGxSZXF1ZXN0NDA4NDMzNzk4
33,758
REGR: disallow mean of period column again
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
7
2020-04-24T09:20:59Z
2020-04-25T11:46:15Z
2020-04-24T21:35:45Z
MEMBER
null
This reverts parts of https://github.com/pandas-dev/pandas/pull/32426 and https://github.com/pandas-dev/pandas/pull/29941 (those are only on master, not yet released), to disallow taking the mean on a Period dtype column again. The mean for period is not supported on PeriodArray itself or for a Series of period dtype (on purpose, see discussion in https://github.com/pandas-dev/pandas/pull/24757 when mean for datetimelike was added), so for DataFrame columns it should also not work. See also comment at https://github.com/pandas-dev/pandas/pull/32426#issuecomment-618872954 cc @jbrockmendel
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33758/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33758/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33758.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33758", "merged_at": "2020-04-24T21:35:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33758.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33758" }
https://api.github.com/repos/pandas-dev/pandas/issues/33759
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33759/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33759/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33759/events
https://github.com/pandas-dev/pandas/issues/33759
606,172,744
MDU6SXNzdWU2MDYxNzI3NDQ=
33,759
Can we reduce the size of file generated with empty_df.to_hdf() below 2MB?
{ "avatar_url": "https://avatars.githubusercontent.com/u/29915202?v=4", "events_url": "https://api.github.com/users/mwouts/events{/privacy}", "followers_url": "https://api.github.com/users/mwouts/followers", "following_url": "https://api.github.com/users/mwouts/following{/other_user}", "gists_url": "https://api.github.com/users/mwouts/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mwouts", "id": 29915202, "login": "mwouts", "node_id": "MDQ6VXNlcjI5OTE1MjAy", "organizations_url": "https://api.github.com/users/mwouts/orgs", "received_events_url": "https://api.github.com/users/mwouts/received_events", "repos_url": "https://api.github.com/users/mwouts/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mwouts/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwouts/subscriptions", "type": "User", "url": "https://api.github.com/users/mwouts" }
[ { "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": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/86092192?v=4", "events_url": "https://api.github.com/users/trevorkask/events{/privacy}", "followers_url": "https://api.github.com/users/trevorkask/followers", "following_url": "https://api.github.com/users/trevorkask/following{/other_user}", "gists_url": "https://api.github.com/users/trevorkask/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/trevorkask", "id": 86092192, "login": "trevorkask", "node_id": "MDQ6VXNlcjg2MDkyMTky", "organizations_url": "https://api.github.com/users/trevorkask/orgs", "received_events_url": "https://api.github.com/users/trevorkask/received_events", "repos_url": "https://api.github.com/users/trevorkask/repos", "site_admin": false, "starred_url": "https://api.github.com/users/trevorkask/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevorkask/subscriptions", "type": "User", "url": "https://api.github.com/users/trevorkask" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/86092192?v=4", "events_url": "https://api.github.com/users/trevorkask/events{/privacy}", "followers_url": "https://api.github.com/users/trevorkask/followers", "following_url": "https://api.github.com/users/trevorkask/following{/other_user}", "gists_url": "https://api.github.com/users/trevorkask/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/trevorkask", "id": 86092192, "login": "trevorkask", "node_id": "MDQ6VXNlcjg2MDkyMTky", "organizations_url": "https://api.github.com/users/trevorkask/orgs", "received_events_url": "https://api.github.com/users/trevorkask/received_events", "repos_url": "https://api.github.com/users/trevorkask/repos", "site_admin": false, "starred_url": "https://api.github.com/users/trevorkask/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevorkask/subscriptions", "type": "User", "url": "https://api.github.com/users/trevorkask" } ]
{ "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
2020-04-24T09:25:19Z
2021-08-18T16:39:56Z
2021-08-18T14:07:49Z
NONE
null
I store my dataframes on disk with `df.to_hdf()`, but to my surprise, even for an empty dataframe the resulting file size is 2MB. Is there a way to make it smaller? Thanks! ```python import pandas as pd empty_df = pd.DataFrame() empty_df.to_hdf('empty_df.hdf', 'data') ``` NB: Versions tested: Pandas 0.21.1, Pandas 1.03.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33759/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33759/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33760
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33760/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33760/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33760/events
https://github.com/pandas-dev/pandas/issues/33760
606,175,676
MDU6SXNzdWU2MDYxNzU2NzY=
33,760
BUG: inconsistent median support for datetimelike dtypes
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" }, { "color": "547c03", "default": false, "description": "sum, mean, min, max, etc.", "id": 2365504383, "name": "Reduction Operations", "node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-04-24T09:30:01Z
2020-10-07T03:28:11Z
2020-10-07T03:28:11Z
MEMBER
null
https://github.com/pandas-dev/pandas/pull/29941 introduced support for taking the median of a datetime-like column. In released version, (pandas 1.0.3) we get: ``` In [20]: df = pd.DataFrame({'a': pd.date_range("2012", periods=3, freq='D')}) In [21]: df.median() Out[21]: Series([], dtype: float64) In [22]: df.median(numeric_only=False) ... TypeError: reduction operation 'median' not allowed for this dtype In [23]: df['a'].median() ... TypeError: DatetimeIndex cannot perform the operation median ``` on master we now allow this for DataFrame (warning it will be in the future by default, and already allow it with numeric_only=False): ``` In [2]: df.median() /home/joris/miniconda3/envs/dev/bin/ipython:1: FutureWarning: DataFrame.mean and DataFrame.median with numeric_only=None will include datetime64, datetime64tz, and PeriodDtype columns in a future version. #!/home/joris/miniconda3/envs/dev/bin/python Out[2]: Series([], dtype: float64) In [3]: df.median(numeric_only=False) Out[3]: a 2012-01-02 00:00:00 dtype: object ``` but for a single column it still fails: ``` In [4]: df['a'].median() ... TypeError: cannot perform median with type datetime64[ns] ``` So we should make this support consistent (add "median" support on DatetimeArray, so it also works for Series) cc @jbrockmendel
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33760/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33760/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33761
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33761/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33761/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33761/events
https://github.com/pandas-dev/pandas/pull/33761
606,181,490
MDExOlB1bGxSZXF1ZXN0NDA4NDQzMjM1
33,761
REGR: fix DataFrame reduction with EA columns and numeric_only=True
{ "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-05-30T15:21:05Z", "closed_issues": 94, "created_at": "2020-03-19T21:32:28Z", "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": "on-merge: backport to 1.0.x", "due_on": "2020-06-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/72", "id": 5219206, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels", "node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==", "number": 72, "open_issues": 0, "state": "closed", "title": "1.0.4", "updated_at": "2020-06-24T17:57:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72" }
8
2020-04-24T09:39:35Z
2020-05-26T09:36:02Z
2020-05-01T18:19:12Z
MEMBER
null
Closes #33256 For the block-wise path in `DataFrame._reduce`, we ensure to use the EA reduction for blocks holding EAs, instead of passing the EA to the `op` function (which is typically the `nanops` nan function). This needs https://github.com/pandas-dev/pandas/pull/33758 to be merged, since that PR fixes the test that is failing here.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33761/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33761/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33761.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33761", "merged_at": "2020-05-01T18:19:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33761.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33761" }
https://api.github.com/repos/pandas-dev/pandas/issues/33762
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33762/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33762/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33762/events
https://github.com/pandas-dev/pandas/pull/33762
606,311,360
MDExOlB1bGxSZXF1ZXN0NDA4NTQ5NDAy
33,762
Stratified sampling
{ "avatar_url": "https://avatars.githubusercontent.com/u/8702703?v=4", "events_url": "https://api.github.com/users/flaboss/events{/privacy}", "followers_url": "https://api.github.com/users/flaboss/followers", "following_url": "https://api.github.com/users/flaboss/following{/other_user}", "gists_url": "https://api.github.com/users/flaboss/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flaboss", "id": 8702703, "login": "flaboss", "node_id": "MDQ6VXNlcjg3MDI3MDM=", "organizations_url": "https://api.github.com/users/flaboss/orgs", "received_events_url": "https://api.github.com/users/flaboss/received_events", "repos_url": "https://api.github.com/users/flaboss/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flaboss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flaboss/subscriptions", "type": "User", "url": "https://api.github.com/users/flaboss" }
[]
closed
false
null
[]
null
5
2020-04-24T13:24:32Z
2020-04-25T17:55:35Z
2020-04-25T17:55:34Z
NONE
null
- [ ] Added new method stratified_sample - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33762/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33762/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33762.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33762", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/33762.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33762" }
https://api.github.com/repos/pandas-dev/pandas/issues/33763
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33763/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33763/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33763/events
https://github.com/pandas-dev/pandas/pull/33763
606,362,990
MDExOlB1bGxSZXF1ZXN0NDA4NTkwMzY0
33,763
TYP/CLN: rogue type comment not caught by code checks
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-24T14:38:53Z
2020-04-24T15:38:30Z
2020-04-24T15:26:48Z
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/33763/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33763/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33763.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33763", "merged_at": "2020-04-24T15:26:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33763.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33763" }
https://api.github.com/repos/pandas-dev/pandas/issues/33764
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33764/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33764/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33764/events
https://github.com/pandas-dev/pandas/pull/33764
606,369,803
MDExOlB1bGxSZXF1ZXN0NDA4NTk1ODIx
33,764
REF: simplify _try_cast
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-24T14:48:10Z
2020-04-24T22:21:12Z
2020-04-24T21:34:25Z
MEMBER
null
Part of a sequence of PRs aimed at sharing code between Series/Index/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/33764/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33764/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33764.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33764", "merged_at": "2020-04-24T21:34:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33764.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33764" }
https://api.github.com/repos/pandas-dev/pandas/issues/33765
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33765/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33765/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33765/events
https://github.com/pandas-dev/pandas/issues/33765
606,423,757
MDU6SXNzdWU2MDY0MjM3NTc=
33,765
BUG: RecursionError when aligning column MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/1694892?v=4", "events_url": "https://api.github.com/users/epizut/events{/privacy}", "followers_url": "https://api.github.com/users/epizut/followers", "following_url": "https://api.github.com/users/epizut/following{/other_user}", "gists_url": "https://api.github.com/users/epizut/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/epizut", "id": 1694892, "login": "epizut", "node_id": "MDQ6VXNlcjE2OTQ4OTI=", "organizations_url": "https://api.github.com/users/epizut/orgs", "received_events_url": "https://api.github.com/users/epizut/received_events", "repos_url": "https://api.github.com/users/epizut/repos", "site_admin": false, "starred_url": "https://api.github.com/users/epizut/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/epizut/subscriptions", "type": "User", "url": "https://api.github.com/users/epizut" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2020-04-24T16:07:03Z
2021-04-29T23:34:45Z
2021-04-29T23:34:45Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- When trying to do arithmetic on two dataframes with a common MultiIndex level, I am having a max recursion error. Please note that if using string column names (ie: labels) instead of ints, I have no recursion error but still a buggy NaN result. ```python df1 = pd.DataFrame([[1, 2, 3]], columns=['Level1', 'Level2', 'Value']) df1 = df1.set_index(['Level1', 'Level2']).T df1 ``` ![image](https://user-images.githubusercontent.com/1694892/80232081-972e7300-8654-11ea-8daf-1a36b7dfa9e1.png) ```python df2 = pd.DataFrame([[1, 3]], columns=['Level1', 'Value']) df2 = df2.set_index(['Level1']).T df2 ``` ![image](https://user-images.githubusercontent.com/1694892/80232116-a7465280-8654-11ea-8410-2b3b21986b24.png) ```python df1 - df2 ``` #### RecursionError on atlest pandas 1.0.2 and 1.0.3 ![image](https://user-images.githubusercontent.com/1694892/80232163-bfb66d00-8654-11ea-8b3b-c2351d223bc2.png) #### Expected Output, working fine on pandas 1.0.1 ![image](https://user-images.githubusercontent.com/1694892/80233171-5d5e6c00-8656-11ea-8990-19c406fa54df.png) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United States.1252 pandas : 1.0.3 numpy : 1.18.3 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.2.0 Cython : None pytest : 5.4.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.1 pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33765/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33765/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33766
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33766/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33766/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33766/events
https://github.com/pandas-dev/pandas/issues/33766
606,429,976
MDU6SXNzdWU2MDY0Mjk5NzY=
33,766
BUG: read_json returns wrong value for big integer
{ "avatar_url": "https://avatars.githubusercontent.com/u/57996662?v=4", "events_url": "https://api.github.com/users/mle-els/events{/privacy}", "followers_url": "https://api.github.com/users/mle-els/followers", "following_url": "https://api.github.com/users/mle-els/following{/other_user}", "gists_url": "https://api.github.com/users/mle-els/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mle-els", "id": 57996662, "login": "mle-els", "node_id": "MDQ6VXNlcjU3OTk2NjYy", "organizations_url": "https://api.github.com/users/mle-els/orgs", "received_events_url": "https://api.github.com/users/mle-els/received_events", "repos_url": "https://api.github.com/users/mle-els/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mle-els/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mle-els/subscriptions", "type": "User", "url": "https://api.github.com/users/mle-els" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": 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
2020-04-24T16:16:55Z
2020-04-24T16:55:42Z
2020-04-24T16:55:12Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. --- #### Code Sample, a copy-pastable example ```bash $ cat first-line.json {"col":"72057594038135102"} ``` ```python >>> pd.read_json("first-line.json", lines=True) col 0 72057594038135104 >>> pd.read_json("first-line.json", lines=True, dtype=False) col 0 72057594038135102 ``` #### Problem description `pd.read_json()` silently returns a wrong value when reading a big integer. This creates a problem when the integers are used as unique IDs. #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 17.7.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.3 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.0.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33766/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33766/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33767
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33767/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33767/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33767/events
https://github.com/pandas-dev/pandas/pull/33767
606,432,127
MDExOlB1bGxSZXF1ZXN0NDA4NjQ1MDE5
33,767
BUG: Fix missing tick labels on twinned axes
{ "avatar_url": "https://avatars.githubusercontent.com/u/724661?v=4", "events_url": "https://api.github.com/users/ebardie/events{/privacy}", "followers_url": "https://api.github.com/users/ebardie/followers", "following_url": "https://api.github.com/users/ebardie/following{/other_user}", "gists_url": "https://api.github.com/users/ebardie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ebardie", "id": 724661, "login": "ebardie", "node_id": "MDQ6VXNlcjcyNDY2MQ==", "organizations_url": "https://api.github.com/users/ebardie/orgs", "received_events_url": "https://api.github.com/users/ebardie/received_events", "repos_url": "https://api.github.com/users/ebardie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ebardie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ebardie/subscriptions", "type": "User", "url": "https://api.github.com/users/ebardie" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
14
2020-04-24T16:20:26Z
2020-09-30T07:30:48Z
2020-09-30T00:11:53Z
CONTRIBUTOR
null
## Background: Multi-row and/or multi-column subplots can utilize shared axes. An external share happens at axis creation when a sharex or sharey parameter is specified. An internal share, or twinning, occurs when an overlayed axis is created by the Axes.twinx() or Axes.twiny() calls. The two types of sharing can be distinguished after the fact in the following manner. If two axes sharing an axis also have the same position, they are not in an external axis share, they are twinned. For externally shared axes Pandas automatically removes tick labels for all but the last row and/or first column in ./pandas/plotting/_matplotlib/tools.py's function _handle_shared_axes(). ## The problem: _handle_shared_axes() should be interested in externally shared axes, whether or not they are also twinned. It should, but doesn't, ignore axes which are only twinned. Which means that twinned-only axes wrongly lose their tick labels. ## The cure: This commit introduces _has_externally_shared_axis() which identifies externally shared axes and uses it to expand upon the existing use of len(Axes.get_shared_{x,y}_axes().get_siblings(a{x,y})) in _handle_shared_axes() which miss these cases. ## The demonstration test case: Note especially the axis labels (and associated tick labels). ```python #!/usr/bin/python3 import matplotlib.pyplot as plt import numpy as np import pandas as pd # Create data df = pd.DataFrame({'a': np.random.randn(1000), 'b': np.random.randn(1000)}) # Create figure fig = plt.figure() plots = fig.subplots(2, 3) # Create *externally* shared axes plots[0][0] = plt.subplot(231, sharex=plots[1][0]) # note: no plots[0][1] that's the twin only case plots[0][2] = plt.subplot(233, sharex=plots[1][2]) # Create *internally* shared axes # note: no plots[0][0] that's the external only case twin_ax1 = plots[0][1].twinx() twin_ax2 = plots[0][2].twinx() # Plot data to primary axes df['a'].plot(ax=plots[0][0], title="External share only").set_xlabel("this label should never be visible") df['a'].plot(ax=plots[1][0]) df['a'].plot(ax=plots[0][1], title="Internal share (twin) only").set_xlabel("this label should always be visible") df['a'].plot(ax=plots[1][1]) df['a'].plot(ax=plots[0][2], title="Both").set_xlabel("this label should never be visible") df['a'].plot(ax=plots[1][2]) # Plot data to twinned axes df['b'].plot(ax=twin_ax1, color='green') df['b'].plot(ax=twin_ax2, color='yellow') # Do it plt.show() ``` See images produced by this code for problem and fixed cases at the bug report: #33819. - [x] closes #33819 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33767/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33767/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33767.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33767", "merged_at": "2020-09-30T00:11:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33767.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33767" }
https://api.github.com/repos/pandas-dev/pandas/issues/33768
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33768/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33768/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33768/events
https://github.com/pandas-dev/pandas/pull/33768
606,442,596
MDExOlB1bGxSZXF1ZXN0NDA4NjUzNDAw
33,768
DOC: data_columns can take bool
{ "avatar_url": "https://avatars.githubusercontent.com/u/13602468?v=4", "events_url": "https://api.github.com/users/klieret/events{/privacy}", "followers_url": "https://api.github.com/users/klieret/followers", "following_url": "https://api.github.com/users/klieret/following{/other_user}", "gists_url": "https://api.github.com/users/klieret/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klieret", "id": 13602468, "login": "klieret", "node_id": "MDQ6VXNlcjEzNjAyNDY4", "organizations_url": "https://api.github.com/users/klieret/orgs", "received_events_url": "https://api.github.com/users/klieret/received_events", "repos_url": "https://api.github.com/users/klieret/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klieret/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klieret/subscriptions", "type": "User", "url": "https://api.github.com/users/klieret" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-24T16:37:52Z
2020-04-24T18:08:28Z
2020-04-24T18:08:24Z
CONTRIBUTOR
null
The ``data_columns`` argument of ``df.to_hdf`` can take ``True`` as an argument, meaning "all columns", yet the type hint is ``Optional[List[str]]``, triggering warnings in e.g. pyCharm. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33768/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33768/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33768.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33768", "merged_at": "2020-04-24T18:08:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33768.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33768" }
https://api.github.com/repos/pandas-dev/pandas/issues/33769
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33769/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33769/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33769/events
https://github.com/pandas-dev/pandas/pull/33769
606,459,805
MDExOlB1bGxSZXF1ZXN0NDA4NjY2Nzc1
33,769
BUG: Adjust truncate for decreasing index
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-24T17:08:07Z
2020-04-26T21:47:37Z
2020-04-26T21:04:16Z
MEMBER
null
- [x] closes #33756 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33769/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33769/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33769.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33769", "merged_at": "2020-04-26T21:04:16Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33769.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33769" }
https://api.github.com/repos/pandas-dev/pandas/issues/33770
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33770/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33770/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33770/events
https://github.com/pandas-dev/pandas/issues/33770
606,462,681
MDU6SXNzdWU2MDY0NjI2ODE=
33,770
BUG: ExtensionArrays whose elements are non-numeric numpy arrays crash Series.__repr__()
{ "avatar_url": "https://avatars.githubusercontent.com/u/12436991?v=4", "events_url": "https://api.github.com/users/frreiss/events{/privacy}", "followers_url": "https://api.github.com/users/frreiss/followers", "following_url": "https://api.github.com/users/frreiss/following{/other_user}", "gists_url": "https://api.github.com/users/frreiss/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frreiss", "id": 12436991, "login": "frreiss", "node_id": "MDQ6VXNlcjEyNDM2OTkx", "organizations_url": "https://api.github.com/users/frreiss/orgs", "received_events_url": "https://api.github.com/users/frreiss/received_events", "repos_url": "https://api.github.com/users/frreiss/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frreiss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frreiss/subscriptions", "type": "User", "url": "https://api.github.com/users/frreiss" }
[ { "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": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-24T17:13:15Z
2020-05-01T20:36:03Z
2020-05-01T20:36:03Z
CONTRIBUTOR
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [X] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example Prerequisites: ```console $ pip install pandas numpy memoized-property $ pip install git+https://github.com/frreiss/text-extensions-for-pandas ``` Reproduce the problem, using [`TensorArray`](https://github.com/frreiss/text-extensions-for-pandas/blob/master/text_extensions_for_pandas/array/tensor.py), our extension type for storing tensors in a Pandas series: ```python >>> import pandas as pd >>> import numpy as np >>> import text_extensions_for_pandas as tp >>> # Integers work int_tensors = np.array([[1, 2], [3, 4]]) int_tensor_series = pd.Series(tp.TensorArray(int_tensors)) int_tensor_series 0 [1 2] 1 [3 4] dtype: TensorType >>> # Boolean values don't work bool_tensors = np.array([[True, False], [False, True]]) bool_tensor_series = pd.Series(tp.TensorArray(bool_tensors)) bool_tensor_series --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~/pd/covid-notebooks/env/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 type_pprinters=self.type_printers, 701 deferred_pprinters=self.deferred_printers) --> 702 printer.pretty(obj) 703 printer.flush() 704 return stream.getvalue() [...many lines of stack trace...] ~/pd/covid-notebooks/env/lib/python3.7/site-packages/pandas/io/formats/format.py in _format_strings(self) 1255 fmt_values = [] 1256 for i, v in enumerate(vals): -> 1257 if not is_float_type[i] and leading_space: 1258 fmt_values.append(" {v}".format(v=_format(v))) 1259 elif is_float_type[i]: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ``` #### Problem description `Series.__repr__()` invokes `ExtensionArrayFormatter` to render extension types. If the individual elements managed by an ExtensionArray are numpy arrays (or slices of a larger numpy array), then `ExtensionArrayFormatter` uses Pandas' facilities for rendering numpy arrays. These facilities comprise the base class `GenericArrayFormatter` and subclasses such as `FloatArrayFormatter` for handling specific types (see `pandas/io/formats/format.py`). The formatters for numeric types can render numpy arrays with more than one dimension, but the base class `GenericArrayFormatter` cannot. The limitation appears to be an oversight. I will submit a small pull request with a fix in a few minutes. #### Expected Output The above code should output something like this: ```python 0 [True False] 1 [False True] dtype: TensorType ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 19.4.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200330 Cython : 0.29.15 pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : 0.3.3 gcsfs : None lxml.etree : None matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.13.0 pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : 0.8.3 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.49.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33770/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33770/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33771
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33771/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33771/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33771/events
https://github.com/pandas-dev/pandas/pull/33771
606,468,435
MDExOlB1bGxSZXF1ZXN0NDA4NjczNTYw
33,771
[#33770] bug fix to prevent ExtensionArrays from crashing Series.__repr__()
{ "avatar_url": "https://avatars.githubusercontent.com/u/12436991?v=4", "events_url": "https://api.github.com/users/frreiss/events{/privacy}", "followers_url": "https://api.github.com/users/frreiss/followers", "following_url": "https://api.github.com/users/frreiss/following{/other_user}", "gists_url": "https://api.github.com/users/frreiss/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frreiss", "id": 12436991, "login": "frreiss", "node_id": "MDQ6VXNlcjEyNDM2OTkx", "organizations_url": "https://api.github.com/users/frreiss/orgs", "received_events_url": "https://api.github.com/users/frreiss/received_events", "repos_url": "https://api.github.com/users/frreiss/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frreiss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frreiss/subscriptions", "type": "User", "url": "https://api.github.com/users/frreiss" }
[ { "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": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-24T17:23:45Z
2020-05-01T20:36:04Z
2020-05-01T20:36:04Z
CONTRIBUTOR
null
- [X] closes #33770 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry This pull request fixes a bug in `GenericArrayFormatter` that caused a crash when rendering arrays of arrays. This problem causes `Series.__repr__()` to fail with certain extension types; see #33770 for more information. The root cause is this line: ``` python 1231 is_float_type = lib.map_infer(vals, is_float) & notna(vals) ``` The call to `notna()` here returns a 2D array if `vals` is a 2D array, while `lib.map_infer(vals, is_float)` returns a 1D array if `vals` is a 2D array. In addition to fixing that line, this PR also adds tests for the issue.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33771/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33771/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33771.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33771", "merged_at": "2020-05-01T20:36:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33771.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33771" }
https://api.github.com/repos/pandas-dev/pandas/issues/33772
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33772/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33772/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33772/events
https://github.com/pandas-dev/pandas/pull/33772
606,471,321
MDExOlB1bGxSZXF1ZXN0NDA4Njc1ODU0
33,772
BUG: DataFrame.truncate() handles decreasing order(#33756)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7295453?v=4", "events_url": "https://api.github.com/users/francislan/events{/privacy}", "followers_url": "https://api.github.com/users/francislan/followers", "following_url": "https://api.github.com/users/francislan/following{/other_user}", "gists_url": "https://api.github.com/users/francislan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/francislan", "id": 7295453, "login": "francislan", "node_id": "MDQ6VXNlcjcyOTU0NTM=", "organizations_url": "https://api.github.com/users/francislan/orgs", "received_events_url": "https://api.github.com/users/francislan/received_events", "repos_url": "https://api.github.com/users/francislan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/francislan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/francislan/subscriptions", "type": "User", "url": "https://api.github.com/users/francislan" }
[]
closed
false
null
[]
null
1
2020-04-24T17:29:02Z
2020-04-24T17:31:59Z
2020-04-24T17:31:59Z
NONE
null
- [x] closes #33756 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33772/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33772/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33772.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33772", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/33772.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33772" }
https://api.github.com/repos/pandas-dev/pandas/issues/33773
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33773/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33773/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33773/events
https://github.com/pandas-dev/pandas/pull/33773
606,487,573
MDExOlB1bGxSZXF1ZXN0NDA4Njg4NjU3
33,773
TST: more accurate freq attr in `expected`s
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-24T17:58:25Z
2020-04-24T22:17:44Z
2020-04-24T22:00:42Z
MEMBER
null
preparing to add a freq check to assert_index_equal
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33773/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33773/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33773.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33773", "merged_at": "2020-04-24T22:00:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33773.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33773" }
https://api.github.com/repos/pandas-dev/pandas/issues/33774
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33774/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33774/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33774/events
https://github.com/pandas-dev/pandas/pull/33774
606,497,809
MDExOlB1bGxSZXF1ZXN0NDA4Njk2OTgw
33,774
REF: misplaced sort_index tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-24T18:18:03Z
2020-04-24T22:19:20Z
2020-04-24T21:33:30Z
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/33774/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33774/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33774.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33774", "merged_at": "2020-04-24T21:33:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33774.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33774" }
https://api.github.com/repos/pandas-dev/pandas/issues/33775
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33775/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33775/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33775/events
https://github.com/pandas-dev/pandas/pull/33775
606,509,974
MDExOlB1bGxSZXF1ZXN0NDA4NzA3MDY1
33,775
BUG: Changing way of applying numpy functions on Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/38814059?v=4", "events_url": "https://api.github.com/users/mproszewska/events{/privacy}", "followers_url": "https://api.github.com/users/mproszewska/followers", "following_url": "https://api.github.com/users/mproszewska/following{/other_user}", "gists_url": "https://api.github.com/users/mproszewska/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mproszewska", "id": 38814059, "login": "mproszewska", "node_id": "MDQ6VXNlcjM4ODE0MDU5", "organizations_url": "https://api.github.com/users/mproszewska/orgs", "received_events_url": "https://api.github.com/users/mproszewska/received_events", "repos_url": "https://api.github.com/users/mproszewska/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mproszewska/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mproszewska/subscriptions", "type": "User", "url": "https://api.github.com/users/mproszewska" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
null
14
2020-04-24T18:41:29Z
2020-06-09T22:49:54Z
2020-06-09T22:49:54Z
CONTRIBUTOR
null
- [x] closes #33492 - [x] tests added and passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] numpy functions on Series are called like other functions
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33775/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33775/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33775.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33775", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/33775.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33775" }
https://api.github.com/repos/pandas-dev/pandas/issues/33776
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33776/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33776/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33776/events
https://github.com/pandas-dev/pandas/pull/33776
606,511,798
MDExOlB1bGxSZXF1ZXN0NDA4NzA4NTM2
33,776
CLN: avoid getattr(obj, "values", obj)
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-24T18:45:06Z
2020-04-25T21:03:58Z
2020-04-25T20:48:05Z
MEMBER
null
xref #27167 @mroeschke can you pls double-check me on the change in window.rolling
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33776/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33776/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33776.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33776", "merged_at": "2020-04-25T20:48:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33776.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33776" }
https://api.github.com/repos/pandas-dev/pandas/issues/33777
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33777/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33777/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33777/events
https://github.com/pandas-dev/pandas/issues/33777
606,512,160
MDU6SXNzdWU2MDY1MTIxNjA=
33,777
ENH: stratified samplig as a DataFrame method
{ "avatar_url": "https://avatars.githubusercontent.com/u/8702703?v=4", "events_url": "https://api.github.com/users/flaboss/events{/privacy}", "followers_url": "https://api.github.com/users/flaboss/followers", "following_url": "https://api.github.com/users/flaboss/following{/other_user}", "gists_url": "https://api.github.com/users/flaboss/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flaboss", "id": 8702703, "login": "flaboss", "node_id": "MDQ6VXNlcjg3MDI3MDM=", "organizations_url": "https://api.github.com/users/flaboss/orgs", "received_events_url": "https://api.github.com/users/flaboss/received_events", "repos_url": "https://api.github.com/users/flaboss/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flaboss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flaboss/subscriptions", "type": "User", "url": "https://api.github.com/users/flaboss" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "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": 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
2020-04-24T18:45:49Z
2020-04-25T11:50:19Z
2020-04-25T11:50:19Z
NONE
null
#### Is your feature request related to a problem? Often times when conducting hypothesis tests we need to prepare the data and sample it using stratified sampling (i.e.: a sample that mimics the population distribution according to a variable or strata). Pandas has a sample feature, but it does not take strata into account today. #### Describe the solution you'd like I would like to propose a solution (in fact I have already pulled the pandas repo and developed it). I wrote a stratified_sample method that does exactly that. Given a DataFrame columns, it performs a stratified sample. This is a method of the object DataFrame just as the "sample" method. It returns a sampled DataFrame using proportionate stratification. #### API breaking implications I think that this simple method will not break the api since it just samples a DataFrame object. #### Describe alternatives you've considered The method I developed returns a sampled DataFrame. The parameters it takes are: * *n*: sample size. If not provided it estimates a sample size using the Adjusted Cochran sampling formula. * *strata*: a list containing columns to be used as strata * *random_state*: for reproducibility * *reset_index*: True or False #### Additional context https://en.wikipedia.org/wiki/Stratified_sampling
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33777/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33777/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33778
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33778/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33778/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33778/events
https://github.com/pandas-dev/pandas/issues/33778
606,549,379
MDU6SXNzdWU2MDY1NDkzNzk=
33,778
BUG: Undocumented behaviour of MultiIndex.rename
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "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": "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": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
open
false
null
[]
null
0
2020-04-24T19:58:49Z
2021-07-31T04:41:09Z
null
MEMBER
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python >>> import numpy as np >>> import pandas as pd >>> >>> pd.__version__ '1.1.0.dev0+1349.g930a7f837' >>> >>> df = pd.DataFrame( ... [[1, 2]], ... columns=pd.MultiIndex.from_product([["a", "b"], ["c"]], names=["level0", "level1"]), ... ) >>> df level0 a b level1 c c 0 1 2 >>> >>> >>> df.columns.rename(["foo", "bar"], False) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\simon\pandas\pandas\core\indexes\base.py", line 1248, in set_names raise TypeError("Names must be a string when a single level is provided.") TypeError: Names must be a string when a single level is provided. >>> ``` #### Problem description from docs `Index.rename(self, name, inplace=False)` Undocumented behaviour arising from https://github.com/pandas-dev/pandas/blob/73fd8a797dc45ab1ced1c1712e04852d8d4a7d09/pandas/core/indexes/multi.py#L247 This allows passing a level to rename since MultiIndex.rename is an alias for MutliIndex.set_names https://pandas.pydata.org/docs/dev/reference/api/pandas.Index.set_names.html there is no documentation for MultiIndex.rename, the documentation for Index.rename includes examples for MutliIndex so the second argument is interpreted as `level`, but from the docs should be `inplace` https://pandas.pydata.org/docs/dev/reference/api/pandas.Index.rename.html #### Expected Output ``` MultiIndex([('a', 'c'), ('b', 'c')], names=['foo', 'bar']) >>> ``` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33778/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33778/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33779
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33779/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33779/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33779/events
https://github.com/pandas-dev/pandas/pull/33779
606,571,661
MDExOlB1bGxSZXF1ZXN0NDA4NzU1OTMy
33,779
BUG: freq not retained on apply_index
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-24T20:41:39Z
2020-04-24T23:28:13Z
2020-04-24T23:23:26Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33779/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33779/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33779.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33779", "merged_at": "2020-04-24T23:23:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33779.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33779" }
https://api.github.com/repos/pandas-dev/pandas/issues/33780
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33780/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33780/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33780/events
https://github.com/pandas-dev/pandas/issues/33780
606,633,801
MDU6SXNzdWU2MDY2MzM4MDE=
33,780
API: Should indexing on columns give views or copies?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "70e5ca", "default": false, "description": "", "id": 2085877452, "name": "Copy / view semantics", "node_id": "MDU6TGFiZWwyMDg1ODc3NDUy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics" } ]
closed
false
null
[]
null
0
2020-04-24T23:21:34Z
2020-09-05T19:03:15Z
2020-09-05T19:03:15Z
MEMBER
null
Migrating the discussion from #33597: We can improve performance (and memory footprint) by returning views in more cases. The downsides are 1) the returned DataFrames are less-consolidated and 2) users may be relying on getting copies in some situations.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33780/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33780/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33781
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33781/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33781/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33781/events
https://github.com/pandas-dev/pandas/pull/33781
606,658,595
MDExOlB1bGxSZXF1ZXN0NDA4ODI1Mzg2
33,781
TST: more specific freq attrs
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-25T01:15:24Z
2020-04-26T19:27:20Z
2020-04-26T19:23:05Z
MEMBER
null
Getting ready to check matching freq in assert_index_equal
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33781/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33781/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33781.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33781", "merged_at": "2020-04-26T19:23:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33781.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33781" }
https://api.github.com/repos/pandas-dev/pandas/issues/33782
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33782/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33782/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33782/events
https://github.com/pandas-dev/pandas/pull/33782
606,666,685
MDExOlB1bGxSZXF1ZXN0NDA4ODMxNjE0
33,782
BUG: Add warning if rows have more columns than expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/38814059?v=4", "events_url": "https://api.github.com/users/mproszewska/events{/privacy}", "followers_url": "https://api.github.com/users/mproszewska/followers", "following_url": "https://api.github.com/users/mproszewska/following{/other_user}", "gists_url": "https://api.github.com/users/mproszewska/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mproszewska", "id": 38814059, "login": "mproszewska", "node_id": "MDQ6VXNlcjM4ODE0MDU5", "organizations_url": "https://api.github.com/users/mproszewska/orgs", "received_events_url": "https://api.github.com/users/mproszewska/received_events", "repos_url": "https://api.github.com/users/mproszewska/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mproszewska/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mproszewska/subscriptions", "type": "User", "url": "https://api.github.com/users/mproszewska" }
[ { "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
[]
null
11
2020-04-25T02:08:16Z
2021-01-01T21:54:02Z
2021-01-01T21:54:02Z
CONTRIBUTOR
null
- [x] closes #33037 - [x] tests added and passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] warning when read rows have more columns than expected
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33782/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33782/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33782.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33782", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/33782.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33782" }
https://api.github.com/repos/pandas-dev/pandas/issues/33783
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33783/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33783/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33783/events
https://github.com/pandas-dev/pandas/pull/33783
606,675,761
MDExOlB1bGxSZXF1ZXN0NDA4ODM4NTcy
33,783
DOC: fix doc for crosstab with Categorical data input
{ "avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4", "events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}", "followers_url": "https://api.github.com/users/GYHHAHA/followers", "following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}", "gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GYHHAHA", "id": 41546976, "login": "GYHHAHA", "node_id": "MDQ6VXNlcjQxNTQ2OTc2", "organizations_url": "https://api.github.com/users/GYHHAHA/orgs", "received_events_url": "https://api.github.com/users/GYHHAHA/received_events", "repos_url": "https://api.github.com/users/GYHHAHA/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions", "type": "User", "url": "https://api.github.com/users/GYHHAHA" }
[ { "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
9
2020-04-25T03:10:39Z
2020-04-27T02:17:12Z
2020-04-27T02:16:26Z
CONTRIBUTOR
null
Crosstab function should set dropna=False to keep the categories which not appear in the data, but in the DOC, it seems to be inconsistent with the description. Two examples for comparison may be better for users to get this point. https://pandas.pydata.org/docs/dev/user_guide/reshaping.html#cross-tabulations
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33783/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33783/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33783.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33783", "merged_at": "2020-04-27T02:16:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33783.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33783" }
https://api.github.com/repos/pandas-dev/pandas/issues/33784
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33784/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33784/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33784/events
https://github.com/pandas-dev/pandas/pull/33784
606,689,589
MDExOlB1bGxSZXF1ZXN0NDA4ODQ5MTEw
33,784
BUG, TST, DOC: fix core.missing._akima_interpolate will raise AttributeError
{ "avatar_url": "https://avatars.githubusercontent.com/u/29909203?v=4", "events_url": "https://api.github.com/users/hkennyv/events{/privacy}", "followers_url": "https://api.github.com/users/hkennyv/followers", "following_url": "https://api.github.com/users/hkennyv/following{/other_user}", "gists_url": "https://api.github.com/users/hkennyv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hkennyv", "id": 29909203, "login": "hkennyv", "node_id": "MDQ6VXNlcjI5OTA5MjAz", "organizations_url": "https://api.github.com/users/hkennyv/orgs", "received_events_url": "https://api.github.com/users/hkennyv/received_events", "repos_url": "https://api.github.com/users/hkennyv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hkennyv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hkennyv/subscriptions", "type": "User", "url": "https://api.github.com/users/hkennyv" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-25T04:54:33Z
2020-04-26T19:57:42Z
2020-04-26T19:57:38Z
CONTRIBUTOR
null
- [x] closes #33426 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Wasn't sure if this warranted a whatsnew entry since its mostly code cleanup
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33784/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33784/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33784.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33784", "merged_at": "2020-04-26T19:57:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33784.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33784" }
https://api.github.com/repos/pandas-dev/pandas/issues/33785
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33785/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33785/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33785/events
https://github.com/pandas-dev/pandas/issues/33785
606,691,019
MDU6SXNzdWU2MDY2OTEwMTk=
33,785
Pandas won't drop index after rename using said index
{ "avatar_url": "https://avatars.githubusercontent.com/u/45440797?v=4", "events_url": "https://api.github.com/users/veranscoto/events{/privacy}", "followers_url": "https://api.github.com/users/veranscoto/followers", "following_url": "https://api.github.com/users/veranscoto/following{/other_user}", "gists_url": "https://api.github.com/users/veranscoto/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/veranscoto", "id": 45440797, "login": "veranscoto", "node_id": "MDQ6VXNlcjQ1NDQwNzk3", "organizations_url": "https://api.github.com/users/veranscoto/orgs", "received_events_url": "https://api.github.com/users/veranscoto/received_events", "repos_url": "https://api.github.com/users/veranscoto/repos", "site_admin": false, "starred_url": "https://api.github.com/users/veranscoto/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/veranscoto/subscriptions", "type": "User", "url": "https://api.github.com/users/veranscoto" }
[ { "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
5
2020-04-25T05:05:51Z
2020-04-25T18:01:10Z
2020-04-25T18:00:49Z
NONE
null
So, there should probably be a 'drop' option as part of the rename function to drop said index if using it, but like the title says, if you rename using an index, you can't then use the drop function to drop said index (tested with xlsx and csv) works for whatever index, 1, 2, 3, etc. [testfile.xlsx](https://github.com/pandas-dev/pandas/files/4532369/testfile.xlsx) ``` dataframe = pandas.read_excel(ENVT_SETTINGS['working_dir'] + 'testfile.xlsx', engine='openpyxl', header=None) print(dataframe.head(5)) dataframe.rename(columns = dataframe.iloc[0], inplace = True) print(dataframe.head(5)) dataframe.drop(dataframe.index[0]) print(dataframe.head(5)) ``` interestingly, you CAN drop it if you then recreate the dataframe like ` dataframe = dataframe[1:]` to literally cut out that row from the dataset, but otherwise, it won't go away. [testfile.xlsx](https://github.com/pandas-dev/pandas/files/4532379/testfile.xlsx) [testresult.xlsx](https://github.com/pandas-dev/pandas/files/4532380/testresult.xlsx)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33785/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33785/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33786
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33786/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33786/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33786/events
https://github.com/pandas-dev/pandas/issues/33786
606,749,593
MDU6SXNzdWU2MDY3NDk1OTM=
33,786
BUG: DataFrame with index having tzlocal() timezone could not be saved to parquet
{ "avatar_url": "https://avatars.githubusercontent.com/u/1324881?v=4", "events_url": "https://api.github.com/users/vfilimonov/events{/privacy}", "followers_url": "https://api.github.com/users/vfilimonov/followers", "following_url": "https://api.github.com/users/vfilimonov/following{/other_user}", "gists_url": "https://api.github.com/users/vfilimonov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vfilimonov", "id": 1324881, "login": "vfilimonov", "node_id": "MDQ6VXNlcjEzMjQ4ODE=", "organizations_url": "https://api.github.com/users/vfilimonov/orgs", "received_events_url": "https://api.github.com/users/vfilimonov/received_events", "repos_url": "https://api.github.com/users/vfilimonov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vfilimonov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vfilimonov/subscriptions", "type": "User", "url": "https://api.github.com/users/vfilimonov" }
[ { "color": "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": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
open
false
null
[]
null
2
2020-04-25T11:27:57Z
2020-04-25T12:40:20Z
null
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- If Dataframe has index which timezone is set to `dateutil.tz.tzlocal()`, it could not be saved to parquet. It might be related to #24310 #### Code Sample, a copy-pastable example ```python from dateutil.tz import tzlocal ind = pd.date_range('2020-02-01','2020-04-14').tz_localize(tzlocal()) x = pd.DataFrame([[1,2]]*len(ind), index=ind, columns=['A','B']) x.to_parquet('tmp.parquet') ``` #### Problem description The code raises `ValueError: Unable to convert timezone "tzlocal()" to string`. However saving to e.g. CSV works well: ```python x.to_csv('tmp.csv') ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.1.final.0 python-bits : 64 OS : Darwin OS-release : 18.7.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 42.0.1.post20191125 Cython : None pytest : 5.3.0 hypothesis : None sphinx : 2.2.0 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.1 html5lib : None pymysql : 0.9.3 psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.13.0 pandas_datareader: None bs4 : 4.6.3 bottleneck : None fastparquet : 0.3.2 gcsfs : None lxml.etree : 4.4.1 matplotlib : 3.1.3 numexpr : 2.7.0 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.16.0 pytables : None pytest : 5.3.0 pyxlsb : None s3fs : 0.4.2 scipy : 1.3.1 sqlalchemy : 1.3.13 tables : 3.4.4 tabulate : None xarray : None xlrd : 1.1.0 xlwt : None xlsxwriter : None numba : 0.46.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33786/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33786/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33787
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33787/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33787/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33787/events
https://github.com/pandas-dev/pandas/issues/33787
606,752,708
MDU6SXNzdWU2MDY3NTI3MDg=
33,787
BUG: Pandas 1.0.x read_json unable to convert lists with date values
{ "avatar_url": "https://avatars.githubusercontent.com/u/38673037?v=4", "events_url": "https://api.github.com/users/reneeburton/events{/privacy}", "followers_url": "https://api.github.com/users/reneeburton/followers", "following_url": "https://api.github.com/users/reneeburton/following{/other_user}", "gists_url": "https://api.github.com/users/reneeburton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/reneeburton", "id": 38673037, "login": "reneeburton", "node_id": "MDQ6VXNlcjM4NjczMDM3", "organizations_url": "https://api.github.com/users/reneeburton/orgs", "received_events_url": "https://api.github.com/users/reneeburton/received_events", "repos_url": "https://api.github.com/users/reneeburton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/reneeburton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reneeburton/subscriptions", "type": "User", "url": "https://api.github.com/users/reneeburton" }
[ { "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": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/44500643?v=4", "events_url": "https://api.github.com/users/horaceklai/events{/privacy}", "followers_url": "https://api.github.com/users/horaceklai/followers", "following_url": "https://api.github.com/users/horaceklai/following{/other_user}", "gists_url": "https://api.github.com/users/horaceklai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/horaceklai", "id": 44500643, "login": "horaceklai", "node_id": "MDQ6VXNlcjQ0NTAwNjQz", "organizations_url": "https://api.github.com/users/horaceklai/orgs", "received_events_url": "https://api.github.com/users/horaceklai/received_events", "repos_url": "https://api.github.com/users/horaceklai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/horaceklai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/horaceklai/subscriptions", "type": "User", "url": "https://api.github.com/users/horaceklai" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/44500643?v=4", "events_url": "https://api.github.com/users/horaceklai/events{/privacy}", "followers_url": "https://api.github.com/users/horaceklai/followers", "following_url": "https://api.github.com/users/horaceklai/following{/other_user}", "gists_url": "https://api.github.com/users/horaceklai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/horaceklai", "id": 44500643, "login": "horaceklai", "node_id": "MDQ6VXNlcjQ0NTAwNjQz", "organizations_url": "https://api.github.com/users/horaceklai/orgs", "received_events_url": "https://api.github.com/users/horaceklai/received_events", "repos_url": "https://api.github.com/users/horaceklai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/horaceklai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/horaceklai/subscriptions", "type": "User", "url": "https://api.github.com/users/horaceklai" } ]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
2
2020-04-25T11:47:07Z
2021-08-05T12:02:33Z
2021-08-05T12:02:33Z
NONE
null
- [ X] I have checked that this issue has not already been reported. - [ X] I have confirmed this bug exists on the latest version of pandas. - [ X] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd # this works fine in 0.25.x and 1.0.x json_line= pd.DataFrame([([1, 2], "hector")], columns=['accounts', 'name']).to_json(lines=True, orient='records') data = pd.read_json(json_line) # this works fine in 0.25.x and 1.0.x --- convert_dates = False (non-default behavior) json_line= pd.DataFrame([([1, 2], ['2020-03-05', '2020-04-08T09:58:49+00:00'], "hector")], columns=['accounts', 'date', 'name']).to_json(lines=True, orient='records') json_line data = pd.read_json(json_line, convert_dates=False) # this does not error in 0.25.x but errors in 1.0.x -- error list is unhashable json_line= pd.DataFrame([([1, 2], ['2020-03-05', '2020-04-08T09:58:49+00:00'], "hector")], columns=['accounts', 'date', 'name']).to_json(lines=True, orient='records') json_line data = pd.read_json(json_line) ``` #### Problem description In pandas 0.25.x (and below), pandas read_json(path, lines=True) was able to read newline-delimited json files with blobs with entries that contained lists of all types. In Pandas 1.0.x, this same data causes a unhashable object error. The error appears to be due to lists that contain date-like objects that are converted by default with convert_dates=True. In pandas 0.25.x, it handles the lists of dates, but does not convert those items. they are kept as strings. #### Expected Output pandas dataframe containing lists without error. ``` df.to_json() ``` returns ``` '{"accounts":{"0":[1,2]},"event_time":{"0":["2020-04-08T09:50:49+00:00","2020-04-08T09:58:49+00:00"]},"name":{"0":"hector"}}' ``` #### Output of 1.0.3 Using pd.read_json(json_line, lines=True) Errors vary slightly depending on context: * TypeError: unhashable type: 'list' * TypeError: <class 'list'> is not convertible to datetime. in the small example above using pd.read_json(json_line, lines=True, convert_dates=False) returns expected output consistent with pandas 0.25.x. [paste the output of 0.25.3 here leaving a blank line after the details tag] ``` '{"accounts":{"0":[1,2]},"event_time":{"0":["2020-04-08T09:50:49+00:00","2020-04-08T09:58:49+00:00"]},"name":{"0":"hector"}}' ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33787/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33787/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33788
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33788/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33788/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33788/events
https://github.com/pandas-dev/pandas/pull/33788
606,781,408
MDExOlB1bGxSZXF1ZXN0NDA4OTE2NTY3
33,788
DOC: Remove ambiguity in fill_value documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/13381361?v=4", "events_url": "https://api.github.com/users/Bharat123rox/events{/privacy}", "followers_url": "https://api.github.com/users/Bharat123rox/followers", "following_url": "https://api.github.com/users/Bharat123rox/following{/other_user}", "gists_url": "https://api.github.com/users/Bharat123rox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bharat123rox", "id": 13381361, "login": "Bharat123rox", "node_id": "MDQ6VXNlcjEzMzgxMzYx", "organizations_url": "https://api.github.com/users/Bharat123rox/orgs", "received_events_url": "https://api.github.com/users/Bharat123rox/received_events", "repos_url": "https://api.github.com/users/Bharat123rox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bharat123rox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bharat123rox/subscriptions", "type": "User", "url": "https://api.github.com/users/Bharat123rox" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-25T14:30:52Z
2020-04-26T08:00:14Z
2020-04-25T21:48:50Z
CONTRIBUTOR
null
- [x] closes #33380 - [ ] tests added / passed (Not needed) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (Not needed)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33788/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33788/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33788.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33788", "merged_at": "2020-04-25T21:48:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33788.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33788" }
https://api.github.com/repos/pandas-dev/pandas/issues/33789
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33789/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33789/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33789/events
https://github.com/pandas-dev/pandas/pull/33789
606,782,234
MDExOlB1bGxSZXF1ZXN0NDA4OTE3MTc1
33,789
CLN: Pass numpy args as kwargs
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-25T14:35:04Z
2020-04-25T22:00:36Z
2020-04-25T21:47:28Z
MEMBER
null
This is already done in some places for PandasArray, e.g., min / max, and seems cleaner with less boilerplate
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33789/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33789/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33789.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33789", "merged_at": "2020-04-25T21:47:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33789.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33789" }
https://api.github.com/repos/pandas-dev/pandas/issues/33790
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33790/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33790/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33790/events
https://github.com/pandas-dev/pandas/issues/33790
606,784,678
MDU6SXNzdWU2MDY3ODQ2Nzg=
33,790
API: Dispatch mechanism for EA reductions
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
open
false
null
[]
null
4
2020-04-25T14:48:00Z
2021-11-20T16:56:47Z
null
MEMBER
null
https://github.com/pandas-dev/pandas/pull/33538 implemented sum as a standalone method for IntegerArray which somewhat duplicates the already-existing _reduce path taken by DataFrame / Series for certain reductions (see https://github.com/pandas-dev/pandas/pull/33538#pullrequestreview-393402534). Likely it makes sense to implement these at the IntegerArray / BooleanArray / etc. level using that same approach, e.g., something like defining each reduction to simply call _reduce with the appropriate operation name instead of copy / pasting the logic into each 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/33790/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33790/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33791
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33791/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33791/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33791/events
https://github.com/pandas-dev/pandas/pull/33791
606,786,989
MDExOlB1bGxSZXF1ZXN0NDA4OTIwNjg2
33,791
DOC: Link to table schema and remove reference to internal API
{ "avatar_url": "https://avatars.githubusercontent.com/u/13381361?v=4", "events_url": "https://api.github.com/users/Bharat123rox/events{/privacy}", "followers_url": "https://api.github.com/users/Bharat123rox/followers", "following_url": "https://api.github.com/users/Bharat123rox/following{/other_user}", "gists_url": "https://api.github.com/users/Bharat123rox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bharat123rox", "id": 13381361, "login": "Bharat123rox", "node_id": "MDQ6VXNlcjEzMzgxMzYx", "organizations_url": "https://api.github.com/users/Bharat123rox/orgs", "received_events_url": "https://api.github.com/users/Bharat123rox/received_events", "repos_url": "https://api.github.com/users/Bharat123rox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bharat123rox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bharat123rox/subscriptions", "type": "User", "url": "https://api.github.com/users/Bharat123rox" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
8
2020-04-25T14:59:44Z
2020-04-29T22:49:11Z
2020-04-29T22:49:08Z
CONTRIBUTOR
null
- [x] closes #33130 - [ ] tests added / passed (Not needed) - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (Markdown link which will not be shown) - [ ] whatsnew entry (Not needed)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33791/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33791/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33791.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33791", "merged_at": "2020-04-29T22:49:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33791.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33791" }
https://api.github.com/repos/pandas-dev/pandas/issues/33792
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33792/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33792/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33792/events
https://github.com/pandas-dev/pandas/pull/33792
606,812,874
MDExOlB1bGxSZXF1ZXN0NDA4OTM5MzE2
33,792
REF: remove need to override get_indexer_non_unique in DatetimeIndexOpsMixin
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-25T17:05:31Z
2020-04-25T21:03:17Z
2020-04-25T20:51:26Z
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/33792/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33792/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33792.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33792", "merged_at": "2020-04-25T20:51:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33792.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33792" }
https://api.github.com/repos/pandas-dev/pandas/issues/33793
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33793/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33793/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33793/events
https://github.com/pandas-dev/pandas/pull/33793
606,828,170
MDExOlB1bGxSZXF1ZXN0NDA4OTUwMzMx
33,793
DOC: Fix typos and improve parts of docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/15113365?v=4", "events_url": "https://api.github.com/users/eu42/events{/privacy}", "followers_url": "https://api.github.com/users/eu42/followers", "following_url": "https://api.github.com/users/eu42/following{/other_user}", "gists_url": "https://api.github.com/users/eu42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eu42", "id": 15113365, "login": "eu42", "node_id": "MDQ6VXNlcjE1MTEzMzY1", "organizations_url": "https://api.github.com/users/eu42/orgs", "received_events_url": "https://api.github.com/users/eu42/received_events", "repos_url": "https://api.github.com/users/eu42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eu42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eu42/subscriptions", "type": "User", "url": "https://api.github.com/users/eu42" }
[ { "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
2020-04-25T18:28:13Z
2020-05-12T07:59:38Z
2020-05-11T00:32:33Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33793/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33793/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33793.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33793", "merged_at": "2020-05-11T00:32:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33793.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33793" }
https://api.github.com/repos/pandas-dev/pandas/issues/33794
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33794/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33794/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33794/events
https://github.com/pandas-dev/pandas/issues/33794
606,833,001
MDU6SXNzdWU2MDY4MzMwMDE=
33,794
BUG: can't import pandas in directory containing file named inspect.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/10449105?v=4", "events_url": "https://api.github.com/users/Ysgorg/events{/privacy}", "followers_url": "https://api.github.com/users/Ysgorg/followers", "following_url": "https://api.github.com/users/Ysgorg/following{/other_user}", "gists_url": "https://api.github.com/users/Ysgorg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Ysgorg", "id": 10449105, "login": "Ysgorg", "node_id": "MDQ6VXNlcjEwNDQ5MTA1", "organizations_url": "https://api.github.com/users/Ysgorg/orgs", "received_events_url": "https://api.github.com/users/Ysgorg/received_events", "repos_url": "https://api.github.com/users/Ysgorg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Ysgorg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ysgorg/subscriptions", "type": "User", "url": "https://api.github.com/users/Ysgorg" }
[ { "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
[]
null
1
2020-04-25T18:55:05Z
2020-08-21T17:06:05Z
2020-04-25T19:14:50Z
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```bash $ python3 -c "import pandas;print(pandas.__version__)" && touch inspect.py && python3 -c "import pandas" 1.0.3 Traceback (most recent call last): <error> ``` The error message: <details> File "<string>", line 1, in <module> File "/home/f/.local/lib/python3.6/site-packages/pandas/__init__.py", line 55, in <module> from pandas.core.api import ( File "/home/f/.local/lib/python3.6/site-packages/pandas/core/api.py", line 29, in <module> from pandas.core.groupby import Grouper, NamedAgg File "/home/f/.local/lib/python3.6/site-packages/pandas/core/groupby/__init__.py", line 1, in <module> from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy File "/home/f/.local/lib/python3.6/site-packages/pandas/core/groupby/generic.py", line 60, in <module> from pandas.core.frame import DataFrame File "/home/f/.local/lib/python3.6/site-packages/pandas/core/frame.py", line 104, in <module> from pandas.core.generic import NDFrame, _shared_docs File "/home/f/.local/lib/python3.6/site-packages/pandas/core/generic.py", line 151, in <module> class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin): File "/home/f/.local/lib/python3.6/site-packages/pandas/core/generic.py", line 1111, in NDFrame def rename_axis(self, mapper=lib.no_default, **kwargs): File "/home/f/.local/lib/python3.6/site-packages/pandas/util/_decorators.py", line 229, in decorate kind = inspect.Parameter.POSITIONAL_OR_KEYWORD AttributeError: module 'inspect' has no attribute 'Parameter' </details> #### Problem description When using pandas in a project, I must take care not to use the filename `inspect.py`. #### Expected Output No error #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.9.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-96-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 9.0.1 setuptools : 41.5.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : 0.999999999 pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : None pandas_datareader: None bs4 : 4.7.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 2.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : 0.8.3 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33794/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33794/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33795
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33795/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33795/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33795/events
https://github.com/pandas-dev/pandas/issues/33795
606,853,845
MDU6SXNzdWU2MDY4NTM4NDU=
33,795
BUG: quantile with list of quantiles fails on MultiIndex column and groupby
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696847?v=4", "events_url": "https://api.github.com/users/kurtforrester/events{/privacy}", "followers_url": "https://api.github.com/users/kurtforrester/followers", "following_url": "https://api.github.com/users/kurtforrester/following{/other_user}", "gists_url": "https://api.github.com/users/kurtforrester/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kurtforrester", "id": 1696847, "login": "kurtforrester", "node_id": "MDQ6VXNlcjE2OTY4NDc=", "organizations_url": "https://api.github.com/users/kurtforrester/orgs", "received_events_url": "https://api.github.com/users/kurtforrester/received_events", "repos_url": "https://api.github.com/users/kurtforrester/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kurtforrester/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kurtforrester/subscriptions", "type": "User", "url": "https://api.github.com/users/kurtforrester" }
[ { "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "006b75", "default": false, "description": "quantile method", "id": 1631984902, "name": "quantile", "node_id": "MDU6TGFiZWwxNjMxOTg0OTAy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/quantile" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
1
2020-04-25T20:57:34Z
2020-12-02T15:40:01Z
2020-12-02T15:40:01Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd import numpy as np steps = 6 simulations = 20 alpha = 0.05 idx_interim_date_forecast = pd.IndexSlice["2020-04-01":] df_return_forecast = pd.concat( [ pd.DataFrame( data=np.random.rand(steps, simulations), index=pd.date_range( start=idx_interim_date_forecast.start, periods=steps, freq="M" ), columns=pd.MultiIndex.from_product( [("sample",), range(0, simulations)], names=["scenario", "simulation"] ), ), pd.DataFrame( data=np.random.rand(steps, simulations), index=pd.date_range( start=idx_interim_date_forecast.start, periods=steps, freq="M" ), columns=pd.MultiIndex.from_product( [("trend",), range(0, simulations)], names=["scenario", "simulation"] ), ), ], axis=1, sort=True, ) df_return_forecast.groupby(axis=1, level=0).quantile(q=alpha / 2) df_return_forecast.groupby(axis=1, level=0).quantile(q=1 - alpha / 2) df_return_forecast.groupby(axis=1, level=0).quantile(q=[alpha / 2, 1 - alpha / 2]) ``` ```python Traceback (most recent call last): File "<ipython-input-1-6a99a78036cb>", line 37, in <module> df_return_forecast.groupby(axis=1, level=0).quantile(q=[alpha / 2, 1 - alpha / 2]) File "C:\Users\Kurt\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 1951, in quantile indices = np.arange(len(result)).reshape([len(q), self.ngroups]).T.flatten() ``` #### Problem description I would expect the ```quantile``` call with an iterable list of quantiles to return at the specified locations. Individual calls at the required locations returns the correct quantiles. The issue seems to be a result of the multiindex column/groupby. If instead I do the following I am able to get the desired result without error. ```python df_return_forecast.T.groupby(axis=0, level=0).quantile(q=[alpha / 2, 1 - alpha / 2]).T ``` So there is a workaround but the behaviour is not as expected and I am not sure of the performance issues it my induce for large dataframes. #### Expected Output As per result obtained by: ```python df_return_forecast.T.groupby(axis=0, level=0).quantile(q=[alpha / 2, 1 - alpha / 2]).T ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : None.None pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200325 Cython : 0.29.16 pytest : 5.4.1 hypothesis : 5.10.4 sphinx : 3.0.2 blosc : None feather : None xlsxwriter : 1.2.8 lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.13.0 pandas_datareader: None bs4 : 4.9.0 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.1 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : 0.16.0 pytables : None pytest : 5.4.1 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.15 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.8 numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33795/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33795/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33796
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33796/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33796/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33796/events
https://github.com/pandas-dev/pandas/pull/33796
606,854,314
MDExOlB1bGxSZXF1ZXN0NDA4OTY5NTIz
33,796
CLN: remove unused PeriodEngine methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" }, { "color": "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-25T21:00:30Z
2020-04-25T21:40:33Z
2020-04-25T21:39:32Z
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/33796/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33796/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33796.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33796", "merged_at": "2020-04-25T21:39:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33796.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33796" }
https://api.github.com/repos/pandas-dev/pandas/issues/33797
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33797/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33797/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33797/events
https://github.com/pandas-dev/pandas/pull/33797
606,865,939
MDExOlB1bGxSZXF1ZXN0NDA4OTc3ODk2
33,797
REF: mix NDArrayBackedExtensionArray into PandasArray
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-25T22:12:03Z
2020-04-26T14:09:12Z
2020-04-25T23:56:02Z
MEMBER
null
Share several more methods in NDArrayBackedExtensionArray.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33797/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33797/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33797.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33797", "merged_at": "2020-04-25T23:56:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33797.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33797" }
https://api.github.com/repos/pandas-dev/pandas/issues/33798
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33798/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33798/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33798/events
https://github.com/pandas-dev/pandas/pull/33798
606,889,155
MDExOlB1bGxSZXF1ZXN0NDA4OTk1MDIz
33,798
IO: Fix feather s3 and http paths
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "color": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-26T01:01:29Z
2020-04-27T23:47:23Z
2020-04-26T19:31:34Z
CONTRIBUTOR
null
- [x] closes #29055 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33798/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33798/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33798.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33798", "merged_at": "2020-04-26T19:31:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33798.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33798" }
https://api.github.com/repos/pandas-dev/pandas/issues/33799
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33799/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33799/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33799/events
https://github.com/pandas-dev/pandas/issues/33799
606,892,819
MDU6SXNzdWU2MDY4OTI4MTk=
33,799
BUG: pandas.dataframe.eval fails to assign values to a subset of a column in some cases
{ "avatar_url": "https://avatars.githubusercontent.com/u/61692085?v=4", "events_url": "https://api.github.com/users/yaelcurl/events{/privacy}", "followers_url": "https://api.github.com/users/yaelcurl/followers", "following_url": "https://api.github.com/users/yaelcurl/following{/other_user}", "gists_url": "https://api.github.com/users/yaelcurl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yaelcurl", "id": 61692085, "login": "yaelcurl", "node_id": "MDQ6VXNlcjYxNjkyMDg1", "organizations_url": "https://api.github.com/users/yaelcurl/orgs", "received_events_url": "https://api.github.com/users/yaelcurl/received_events", "repos_url": "https://api.github.com/users/yaelcurl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yaelcurl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yaelcurl/subscriptions", "type": "User", "url": "https://api.github.com/users/yaelcurl" }
[ { "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": 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
2020-04-26T01:29:02Z
2020-04-26T01:46:18Z
2020-04-26T01:32:50Z
NONE
null
- [ ] I have checked that this issue has not already been reported. - [ ] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python # Your code here `>>> import pandas as pd >>> df=pd.DataFrame({'A':[1,2,0,0],'B':[3,4,0,0]}) >>> df A B 0 1 3 1 2 4 2 0 0 3 0 0 >>> df.loc[0:1,:].eval('A=B',inplace=True) >>> df A B 0 3 3 1 4 4 2 0 0 3 0 0 >>> df.loc[0:1,:].eval('A=1000',inplace=True) >>> df A B 0 3 3 1 4 4 2 0 0 3 0 0 >>> df[0:2].eval('A=B*10',inplace=True) >>> df A B 0 30 3 1 40 4 2 0 0 3 0 0 >>> df.loc[0:1,:].eval('C=A+B',inplace=True) >>> df A B 0 30 3 1 40 4 2 0 0 3 0 0 >>> df[0:2].eval('C=A+B',inplace=True) >>> df A B 0 30 3 1 40 4 2 0 0 3 0 0 >>> df.eval('C=A+B',inplace=True) >>> df A B C 0 30 3 33 1 40 4 44 2 0 0 0 3 0 0 0 >>> df['D']=0 >>> df.loc[0:1,:].eval('D=A+B',inplace=True) >>> df A B C D 0 30 3 33 0 1 40 4 44 0 2 0 0 0 0 3 0 0 0 0 >>> df.insert(4,'E',0) >>> df.loc[0:1,:].eval('E=A+B',inplace=True) >>> df A B C D E 0 30 3 33 0 0 1 40 4 44 0 0 2 0 0 0 0 0 3 0 0 0 0 0 >>> df=df.assign(F=0) >>> df A B C D E F 0 30 3 33 0 0 0 1 40 4 44 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 >>> df.loc[0:1,:].eval('F=9',inplace=True) >>> df A B C D E F 0 30 3 33 0 0 0 1 40 4 44 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 >>> df.loc[0:1,:].eval('F=A',inplace=True) >>> df A B C D E F 0 30 3 33 0 0 0 1 40 4 44 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 >>> df=df.assign(F=0) >>> df.loc[0:1,:].eval('F=A',inplace=True) >>> df A B C D E F 0 3 3 6 0 0 3 1 4 4 8 0 0 4 2 0 0 0 0 0 0 3 0 0 0 0 0 0` #### Problem description eval() assignment with inplace=True on dataframe subset fails in the following cases: - when trying to assign an integer A=1000 (it did work for A=B) - when trying to assign an integer or column operation to a new column C=A+B - when trying to assign an integer or column operation to a column added after dataframe initialization F=9 , F=A (it did work after the second df=df.assign(F=0)) #### Expected Output eval() should have changed the original df in all cases #### Output of ``pd.show_versions()`` <details> </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33799/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33799/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33800
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33800/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33800/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33800/events
https://github.com/pandas-dev/pandas/issues/33800
606,895,170
MDU6SXNzdWU2MDY4OTUxNzA=
33,800
BUG: get_dummies does not create dummy columns for values passed to CategoricalDtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/1554354?v=4", "events_url": "https://api.github.com/users/queirozfcom/events{/privacy}", "followers_url": "https://api.github.com/users/queirozfcom/followers", "following_url": "https://api.github.com/users/queirozfcom/following{/other_user}", "gists_url": "https://api.github.com/users/queirozfcom/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/queirozfcom", "id": 1554354, "login": "queirozfcom", "node_id": "MDQ6VXNlcjE1NTQzNTQ=", "organizations_url": "https://api.github.com/users/queirozfcom/orgs", "received_events_url": "https://api.github.com/users/queirozfcom/received_events", "repos_url": "https://api.github.com/users/queirozfcom/repos", "site_admin": false, "starred_url": "https://api.github.com/users/queirozfcom/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/queirozfcom/subscriptions", "type": "User", "url": "https://api.github.com/users/queirozfcom" }
[ { "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
[]
null
0
2020-04-26T01:48:02Z
2020-08-21T17:06:06Z
2020-04-26T02:32:43Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd from pandas.api.types import CategoricalDtype df = pd.DataFrame({'country': ['russia', 'germany', 'russia', 'germany', 'germany']}) df["country"] = df["country"].astype('category',CategoricalDtype(categories=["germany","russia","japan"])) # there should be a column called `japan`, but it's missing pd.get_dummies(df["country"]) ``` #### Problem description Calling `pd.get_dummies()` on a DataFrame column of type `category` having extra `categories` passed does **not** generate columns for **extra categories** other than those that exist in the DataFrame. #### Expected Output The output should be a dataframe with one-hot encoded columns for values `germany`, `russia` **and** for `japan`. (This was the output in Pandas 0.24 when we could still use `.astype('category', categories=[...])` without needing to define a `CategoricalDtype`) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.9.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-42-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : pt_BR.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33800/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33800/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33801
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33801/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33801/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33801/events
https://github.com/pandas-dev/pandas/pull/33801
606,898,234
MDExOlB1bGxSZXF1ZXN0NDA5MDAxNjU2
33,801
BUG: incorrect freq in PeriodIndex-Period
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-26T02:11:24Z
2020-04-26T19:34:01Z
2020-04-26T19:23:57Z
MEMBER
null
introduced in #33552
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33801/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33801/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33801.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33801", "merged_at": "2020-04-26T19:23:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33801.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33801" }
https://api.github.com/repos/pandas-dev/pandas/issues/33802
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33802/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33802/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33802/events
https://github.com/pandas-dev/pandas/issues/33802
606,948,286
MDU6SXNzdWU2MDY5NDgyODY=
33,802
Why not support `GroupBy.rank(numeric_only=False)`?
{ "avatar_url": "https://avatars.githubusercontent.com/u/14334826?v=4", "events_url": "https://api.github.com/users/UlionTse/events{/privacy}", "followers_url": "https://api.github.com/users/UlionTse/followers", "following_url": "https://api.github.com/users/UlionTse/following{/other_user}", "gists_url": "https://api.github.com/users/UlionTse/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/UlionTse", "id": 14334826, "login": "UlionTse", "node_id": "MDQ6VXNlcjE0MzM0ODI2", "organizations_url": "https://api.github.com/users/UlionTse/orgs", "received_events_url": "https://api.github.com/users/UlionTse/received_events", "repos_url": "https://api.github.com/users/UlionTse/repos", "site_admin": false, "starred_url": "https://api.github.com/users/UlionTse/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/UlionTse/subscriptions", "type": "User", "url": "https://api.github.com/users/UlionTse" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
6
2020-04-26T07:54:43Z
2020-09-04T13:05:19Z
2020-09-04T12:59:57Z
NONE
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33802/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33802/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33803
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33803/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33803/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33803/events
https://github.com/pandas-dev/pandas/issues/33803
606,949,750
MDU6SXNzdWU2MDY5NDk3NTA=
33,803
BUG: .corr() fails when input is Int64Dtype()
{ "avatar_url": "https://avatars.githubusercontent.com/u/51492342?v=4", "events_url": "https://api.github.com/users/akanz1/events{/privacy}", "followers_url": "https://api.github.com/users/akanz1/followers", "following_url": "https://api.github.com/users/akanz1/following{/other_user}", "gists_url": "https://api.github.com/users/akanz1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/akanz1", "id": 51492342, "login": "akanz1", "node_id": "MDQ6VXNlcjUxNDkyMzQy", "organizations_url": "https://api.github.com/users/akanz1/orgs", "received_events_url": "https://api.github.com/users/akanz1/received_events", "repos_url": "https://api.github.com/users/akanz1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/akanz1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akanz1/subscriptions", "type": "User", "url": "https://api.github.com/users/akanz1" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-26T08:02:46Z
2020-04-27T23:53:59Z
2020-04-27T23:53:59Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] This bug exists on the master branch of pandas. [see below](https://github.com/pandas-dev/pandas/issues/33803#issuecomment-619574491) --- #### Code Sample, a copy-pastable example ```python df = pd.DataFrame({'First':[1,2,3,4,np.nan], 'Second':[True, True, False, False, True], 'Third':[2,3,8,5,6]}) print(df.dtypes) print(df.corr()) df ``` ``` df_conv = df.convert_dtypes() print(df_conv.dtypes) print(df_conv) df_conv.corr() # results in the following TypeError TypeError: float() argument must be a string or a number, not 'NAType' ``` #### Problem description When applying convert_dtypes() to a DataFrame, columns containing NaNs (np.nan) and integer values (stored as float64) are converted to "pd.NA" and actual integers (Int64). While this is desirable, it results in an error when calling the .corr() method on the DataFrame with the new dtypes. **Before convert_dtypes():** ![before_conv](https://user-images.githubusercontent.com/51492342/80301427-5c3b5500-87a4-11ea-87fe-e3727c240a90.png) **After convert_dtypes():** ![after_conv](https://user-images.githubusercontent.com/51492342/80301430-60677280-87a4-11ea-898c-7d0c9352edc9.png) **Error message:** ![corr_error](https://user-images.githubusercontent.com/51492342/80301434-652c2680-87a4-11ea-94a9-7dd9b1a0c7f5.png) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3.post20200325 Cython : None pytest : 5.4.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.13.0 pandas_datareader: None bs4 : 4.9.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.1 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33803/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33803/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33804
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33804/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33804/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33804/events
https://github.com/pandas-dev/pandas/pull/33804
606,958,457
MDExOlB1bGxSZXF1ZXN0NDA5MDQ1MTA0
33,804
BUG: support corr and cov functions for custom BaseIndexer rolling windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" }
[ { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
6
2020-04-26T08:51:23Z
2020-07-09T15:12:53Z
2020-04-27T18:59:44Z
MEMBER
null
- [X] closes #32865 - [X] reverts #33057 - [X] 2 tests added / 2 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Scope of PR This is the final PR needed to solve #32865. It fixes `cov` and `corr` by passing the correct argument to `rolling` constructors if the functions are called with a custom `BaseIndexer` subclass. A separate test is added for `cov` and `corr` as the previous tests were single-variable and wouldn't work with two columns of data. I also propose we revert #33057. ## Details The reason `cov` and `corr` didn't work was that we were passing `_get_window` results (usually, window width), instead of the `BaseIndexer` subclass to `rolling` constructors called inside the function. Passing `self.window` (when necessary) fixes the issue. The new test asserts only against an explicit array, because shoehorning a comparison against `np.cov` an `np.corrcoef` is ugly (I've tried). Our `rolling.apply` isn't really suited to be called with bivariate statistics functions, and the necessary gymnastics didn't look good to me. I don't believe the minor benefit would be worth, but please say if you think coomparing against numpy is necessary. Thanks to @mroeschke for implementing the `NotImplemented` error-raising behavior in #33057 . Now that all the functions are fixed, I propose we revert that commit. ## Background on the wider issue We currently don't support several rolling window functions when building a rolling window object using a custom class descended from `pandas.api.indexers.Baseindexer`. The implementations were written with backward-looking windows in mind, and this led to these functions breaking. Currently, using these functions returns a `NotImplemented` error thanks to #33057, but ideally we want to update the implementations, so that they will work without a performance hit. This is what I aim to do over a series of PRs. ## Perf notes No changes to algorithms.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33804/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33804/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33804.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33804", "merged_at": "2020-04-27T18:59:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33804.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33804" }
https://api.github.com/repos/pandas-dev/pandas/issues/33805
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33805/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33805/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33805/events
https://github.com/pandas-dev/pandas/pull/33805
606,972,183
MDExOlB1bGxSZXF1ZXN0NDA5MDU0NzU1
33,805
BUG: can't concatenate DataFrame with Series with duplicate keys
{ "avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4", "events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}", "followers_url": "https://api.github.com/users/MarcoGorelli/followers", "following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}", "gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcoGorelli", "id": 33491632, "login": "MarcoGorelli", "node_id": "MDQ6VXNlcjMzNDkxNjMy", "organizations_url": "https://api.github.com/users/MarcoGorelli/orgs", "received_events_url": "https://api.github.com/users/MarcoGorelli/received_events", "repos_url": "https://api.github.com/users/MarcoGorelli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcoGorelli" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-26T10:01:32Z
2020-05-01T17:23:29Z
2020-05-01T16:50:31Z
MEMBER
null
- [x] closes #33654 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33805/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33805/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33805.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33805", "merged_at": "2020-05-01T16:50:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33805.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33805" }
https://api.github.com/repos/pandas-dev/pandas/issues/33806
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33806/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33806/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33806/events
https://github.com/pandas-dev/pandas/pull/33806
607,046,207
MDExOlB1bGxSZXF1ZXN0NDA5MTA4MDM5
33,806
TST: Added message to bare pytest.raises in test_join_multi_levels (#…
{ "avatar_url": "https://avatars.githubusercontent.com/u/24456081?v=4", "events_url": "https://api.github.com/users/Dom-L-G/events{/privacy}", "followers_url": "https://api.github.com/users/Dom-L-G/followers", "following_url": "https://api.github.com/users/Dom-L-G/following{/other_user}", "gists_url": "https://api.github.com/users/Dom-L-G/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dom-L-G", "id": 24456081, "login": "Dom-L-G", "node_id": "MDQ6VXNlcjI0NDU2MDgx", "organizations_url": "https://api.github.com/users/Dom-L-G/orgs", "received_events_url": "https://api.github.com/users/Dom-L-G/received_events", "repos_url": "https://api.github.com/users/Dom-L-G/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dom-L-G/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dom-L-G/subscriptions", "type": "User", "url": "https://api.github.com/users/Dom-L-G" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-26T16:01:09Z
2020-04-26T20:31:07Z
2020-04-26T19:50:19Z
CONTRIBUTOR
null
…30999) Updated tests in test_join_multi_levels to include messages for pytest.raises. - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33806/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33806/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33806.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33806", "merged_at": "2020-04-26T19:50:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33806.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33806" }
https://api.github.com/repos/pandas-dev/pandas/issues/33807
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33807/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33807/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33807/events
https://github.com/pandas-dev/pandas/issues/33807
607,057,066
MDU6SXNzdWU2MDcwNTcwNjY=
33,807
API: always treat tuples as object-dtype-scalars for arithmetic?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" }, { "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
[]
null
1
2020-04-26T16:48:16Z
2020-09-22T01:33:43Z
null
MEMBER
null
For arithmetic-like ops when we see a list we cast it to ndarray, while with tuple we _sometimes_ cast to ndarray, sometimes treat it as scalar-like. We should be consistent about this. I lean towards always-scalar-like, but would be fine either way.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33807/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33807/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33808
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33808/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33808/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33808/events
https://github.com/pandas-dev/pandas/pull/33808
607,060,095
MDExOlB1bGxSZXF1ZXN0NDA5MTE4NTM3
33,808
CLN: use unpack_zerodim_and_defer in timedeltas
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" }, { "color": "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-04-26T17:00:34Z
2020-04-26T19:33:14Z
2020-04-26T19:24:46Z
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/33808/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33808/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33808.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33808", "merged_at": "2020-04-26T19:24:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33808.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33808" }
https://api.github.com/repos/pandas-dev/pandas/issues/33809
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33809/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33809/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33809/events
https://github.com/pandas-dev/pandas/pull/33809
607,087,248
MDExOlB1bGxSZXF1ZXN0NDA5MTM5MDIx
33,809
BUG: Don't raise in DataFrame.corr with pd.NA
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-26T19:00:04Z
2020-09-27T03:27:52Z
2020-04-27T23:53:59Z
MEMBER
null
- [x] closes #33803 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33809/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33809/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33809.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33809", "merged_at": "2020-04-27T23:53:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33809.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33809" }
https://api.github.com/repos/pandas-dev/pandas/issues/33810
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33810/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33810/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33810/events
https://github.com/pandas-dev/pandas/issues/33810
607,094,629
MDU6SXNzdWU2MDcwOTQ2Mjk=
33,810
TST: add Feather V2 round-trip test
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" } ]
{ "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
2020-04-26T19:33:30Z
2021-08-03T09:11:56Z
2021-07-31T04:46:05Z
CONTRIBUTOR
null
no that pyarrow 0.17 has landed, we should have a round-trip Feather V2 test to ensure we have dtype preservation (we can likely re-use some of our test frames from the parquet tests).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33810/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33810/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33811
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33811/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33811/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33811/events
https://github.com/pandas-dev/pandas/pull/33811
607,098,439
MDExOlB1bGxSZXF1ZXN0NDA5MTQ2OTI1
33,811
BUG: pickle after _with_freq
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-26T19:51:44Z
2020-04-26T20:55:29Z
2020-04-26T20:52:37Z
MEMBER
null
introduced in #33552
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33811/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33811/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33811.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33811", "merged_at": "2020-04-26T20:52:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33811.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33811" }
https://api.github.com/repos/pandas-dev/pandas/issues/33812
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33812/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33812/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33812/events
https://github.com/pandas-dev/pandas/pull/33812
607,101,638
MDExOlB1bGxSZXF1ZXN0NDA5MTQ5MjE4
33,812
TST: check freq in assert_equal
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-04-26T20:07:40Z
2020-04-26T20:55:14Z
2020-04-26T20:53:29Z
MEMBER
null
Before long we'll move this check into assert_index_equal, for now just want to get validation in place where feasible.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33812/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33812/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33812.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33812", "merged_at": "2020-04-26T20:53:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33812.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33812" }
https://api.github.com/repos/pandas-dev/pandas/issues/33813
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33813/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33813/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33813/events
https://github.com/pandas-dev/pandas/pull/33813
607,105,920
MDExOlB1bGxSZXF1ZXN0NDA5MTUyNDIy
33,813
TST: Clean moments consistency
{ "avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4", "events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}", "followers_url": "https://api.github.com/users/charlesdong1991/followers", "following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}", "gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/charlesdong1991", "id": 9269816, "login": "charlesdong1991", "node_id": "MDQ6VXNlcjkyNjk4MTY=", "organizations_url": "https://api.github.com/users/charlesdong1991/orgs", "received_events_url": "https://api.github.com/users/charlesdong1991/received_events", "repos_url": "https://api.github.com/users/charlesdong1991/repos", "site_admin": false, "starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions", "type": "User", "url": "https://api.github.com/users/charlesdong1991" }
[ { "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": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-04-26T20:28:20Z
2020-05-03T00:38:59Z
2020-04-26T21:23:58Z
MEMBER
null
As discussed in https://github.com/pandas-dev/pandas/pull/30577#issuecomment-570014613 This PR is the first step to achieve it, it basically does one thing: break up the giant consistency test in `common` into four tests based on test contents: `var`, `std`, `cov`, and `series data`. cc @jreback
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33813/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33813/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33813.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33813", "merged_at": "2020-04-26T21:23:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33813.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33813" }
https://api.github.com/repos/pandas-dev/pandas/issues/33814
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33814/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33814/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33814/events
https://github.com/pandas-dev/pandas/issues/33814
607,142,128
MDU6SXNzdWU2MDcxNDIxMjg=
33,814
BUG: Merge between partial index and index fails if result is empty
{ "avatar_url": "https://avatars.githubusercontent.com/u/6571068?v=4", "events_url": "https://api.github.com/users/Rufflewind/events{/privacy}", "followers_url": "https://api.github.com/users/Rufflewind/followers", "following_url": "https://api.github.com/users/Rufflewind/following{/other_user}", "gists_url": "https://api.github.com/users/Rufflewind/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Rufflewind", "id": 6571068, "login": "Rufflewind", "node_id": "MDQ6VXNlcjY1NzEwNjg=", "organizations_url": "https://api.github.com/users/Rufflewind/orgs", "received_events_url": "https://api.github.com/users/Rufflewind/received_events", "repos_url": "https://api.github.com/users/Rufflewind/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Rufflewind/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rufflewind/subscriptions", "type": "User", "url": "https://api.github.com/users/Rufflewind" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2020-04-26T23:32:41Z
2021-01-03T23:21:42Z
2021-01-03T23:21:42Z
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas pandas.merge( pandas.DataFrame({'a': [1], 'i': [2]}).set_index(['a', 'i']), pandas.DataFrame({'i': [1]}).set_index(['i']), left_on=['i'], right_index=True, ) ``` #### Problem description This merge fails with the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/site-packages/pandas/core/reshape/merge.py", line 88, in merge return op.get_result() File "/usr/lib/python3.8/site-packages/pandas/core/reshape/merge.py", line 668, in get_result self._maybe_add_join_keys(result, left_indexer, right_indexer) File "/usr/lib/python3.8/site-packages/pandas/core/reshape/merge.py", line 824, in _maybe_add_join_keys key_col.name = name AttributeError: 'numpy.ndarray' object has no attribute 'name' ``` Thing is, it works fine if I change `i` in the left DataFrame from `[2]` to `[1]`. It only fails if there's no overlap between the join keys. This behavior is problematic because the failure depends on the outcome of the merge, so it's difficult to avoid. #### Expected Output I expect this to not fail and just return an empty result. #### Output of ``pd.show_versions()`` <details> ``` >>> pandas.show_versions() INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 5.6.2-arch1-2 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : en_FYL.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.3 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.1.3 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.13.0 pandas_datareader: None bs4 : 4.8.2 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.15 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33814/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33814/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/33815
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33815/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33815/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33815/events
https://github.com/pandas-dev/pandas/pull/33815
607,179,784
MDExOlB1bGxSZXF1ZXN0NDA5MjA4ODg4
33,815
TST: check freq on series.index in assert_series_equal
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
13
2020-04-27T02:14:35Z
2020-05-06T20:08:13Z
2020-04-27T13:00:18Z
MEMBER
null
Before long we'll roll that check into assert_index_equal
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33815/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33815/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33815.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33815", "merged_at": "2020-04-27T13:00:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33815.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33815" }
https://api.github.com/repos/pandas-dev/pandas/issues/33816
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/33816/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/33816/comments
https://api.github.com/repos/pandas-dev/pandas/issues/33816/events
https://github.com/pandas-dev/pandas/pull/33816
607,242,021
MDExOlB1bGxSZXF1ZXN0NDA5MjU2NjMz
33,816
ERR: Add NumbaUtilError
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-04-27T05:18:54Z
2020-04-27T20:46:12Z
2020-04-27T20:17:45Z
MEMBER
null
- xref https://github.com/pandas-dev/pandas/pull/33388#discussion_r415172278 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/33816/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/33816/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/33816.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/33816", "merged_at": "2020-04-27T20:17:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/33816.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33816" }