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/36819
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36819/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36819/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36819/events
https://github.com/pandas-dev/pandas/issues/36819
713,944,534
MDU6SXNzdWU3MTM5NDQ1MzQ=
36,819
ENH: Infer Enums as categorical
{ "avatar_url": "https://avatars.githubusercontent.com/u/16160230?v=4", "events_url": "https://api.github.com/users/dzimmanck/events{/privacy}", "followers_url": "https://api.github.com/users/dzimmanck/followers", "following_url": "https://api.github.com/users/dzimmanck/following{/other_user}", "gists_url": "https://api.github.com/users/dzimmanck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dzimmanck", "id": 16160230, "login": "dzimmanck", "node_id": "MDQ6VXNlcjE2MTYwMjMw", "organizations_url": "https://api.github.com/users/dzimmanck/orgs", "received_events_url": "https://api.github.com/users/dzimmanck/received_events", "repos_url": "https://api.github.com/users/dzimmanck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dzimmanck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dzimmanck/subscriptions", "type": "User", "url": "https://api.github.com/users/dzimmanck" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
open
false
null
[]
null
2
2020-10-02T23:03:34Z
2020-10-06T21:30:29Z
null
NONE
null
#### Is your feature request related to a problem? This relates to #36124, but I think has other benefits. #### Describe the solution you'd like I would like pandas to infer an array of Enums as categorical data. Today, IntEnums are turned into Ints, which is not ideal behavior. #### API breaking implications This is a change to the way part of the current API behaves, but I believe it provides a more intuitive processing of Enum data. #### Describe alternatives you've considered #### Additional context ```python # Your code here, if applicable ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36819/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36819/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36820
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36820/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36820/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36820/events
https://github.com/pandas-dev/pandas/pull/36820
713,953,065
MDExOlB1bGxSZXF1ZXN0NDk3MTc2MjQ3
36,820
Issue36124 display of int enums
{ "avatar_url": "https://avatars.githubusercontent.com/u/16160230?v=4", "events_url": "https://api.github.com/users/dzimmanck/events{/privacy}", "followers_url": "https://api.github.com/users/dzimmanck/followers", "following_url": "https://api.github.com/users/dzimmanck/following{/other_user}", "gists_url": "https://api.github.com/users/dzimmanck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dzimmanck", "id": 16160230, "login": "dzimmanck", "node_id": "MDQ6VXNlcjE2MTYwMjMw", "organizations_url": "https://api.github.com/users/dzimmanck/orgs", "received_events_url": "https://api.github.com/users/dzimmanck/received_events", "repos_url": "https://api.github.com/users/dzimmanck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dzimmanck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dzimmanck/subscriptions", "type": "User", "url": "https://api.github.com/users/dzimmanck" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
null
8
2020-10-02T23:33:30Z
2021-04-11T00:51:03Z
2021-04-11T00:51:02Z
NONE
null
- [x] closes #36124 - [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/36820/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36820/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36820.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36820", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36820.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36820" }
https://api.github.com/repos/pandas-dev/pandas/issues/36821
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36821/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36821/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36821/events
https://github.com/pandas-dev/pandas/pull/36821
713,954,607
MDExOlB1bGxSZXF1ZXN0NDk3MTc3MzYx
36,821
DOC: update code style for development doc and user guide #36777
{ "avatar_url": "https://avatars.githubusercontent.com/u/1895498?v=4", "events_url": "https://api.github.com/users/karasinski/events{/privacy}", "followers_url": "https://api.github.com/users/karasinski/followers", "following_url": "https://api.github.com/users/karasinski/following{/other_user}", "gists_url": "https://api.github.com/users/karasinski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/karasinski", "id": 1895498, "login": "karasinski", "node_id": "MDQ6VXNlcjE4OTU0OTg=", "organizations_url": "https://api.github.com/users/karasinski/orgs", "received_events_url": "https://api.github.com/users/karasinski/received_events", "repos_url": "https://api.github.com/users/karasinski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/karasinski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/karasinski/subscriptions", "type": "User", "url": "https://api.github.com/users/karasinski" }
[ { "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
2
2020-10-02T23:39:23Z
2020-10-03T15:00:04Z
2020-10-03T14:25:29Z
CONTRIBUTOR
null
Addresses part of #36777 Ran blacken-tools and checked for warnings from flake8-rst for 4 additional doc files.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36821/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36821/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36821.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36821", "merged_at": "2020-10-03T14:25:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36821.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36821" }
https://api.github.com/repos/pandas-dev/pandas/issues/36822
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36822/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36822/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36822/events
https://github.com/pandas-dev/pandas/pull/36822
713,956,429
MDExOlB1bGxSZXF1ZXN0NDk3MTc4Nzgx
36,822
BUG: Raise ValueError with nan in timeaware windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "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-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" }
10
2020-10-02T23:47:22Z
2020-10-15T18:54:02Z
2020-10-15T00:28:32Z
MEMBER
null
- [x] closes #34617 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Raising a ValueError when NaN is in timeaware window. cc @mroeschke
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36822/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36822/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36822.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36822", "merged_at": "2020-10-15T00:28:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36822.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36822" }
https://api.github.com/repos/pandas-dev/pandas/issues/36823
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36823/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36823/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36823/events
https://github.com/pandas-dev/pandas/pull/36823
713,960,179
MDExOlB1bGxSZXF1ZXN0NDk3MTgxNjEz
36,823
DOC: update code style for user guide for #36777
{ "avatar_url": "https://avatars.githubusercontent.com/u/1895498?v=4", "events_url": "https://api.github.com/users/karasinski/events{/privacy}", "followers_url": "https://api.github.com/users/karasinski/followers", "following_url": "https://api.github.com/users/karasinski/following{/other_user}", "gists_url": "https://api.github.com/users/karasinski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/karasinski", "id": 1895498, "login": "karasinski", "node_id": "MDQ6VXNlcjE4OTU0OTg=", "organizations_url": "https://api.github.com/users/karasinski/orgs", "received_events_url": "https://api.github.com/users/karasinski/received_events", "repos_url": "https://api.github.com/users/karasinski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/karasinski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/karasinski/subscriptions", "type": "User", "url": "https://api.github.com/users/karasinski" }
[ { "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-10-03T00:03:01Z
2020-10-03T15:00:39Z
2020-10-03T14:30:49Z
CONTRIBUTOR
null
Addresses part of #36777 Ran blacken-tools and checked for warnings from flake8-rst for 5 additional doc files.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36823/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36823/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36823.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36823", "merged_at": "2020-10-03T14:30:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36823.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36823" }
https://api.github.com/repos/pandas-dev/pandas/issues/36824
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36824/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36824/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36824/events
https://github.com/pandas-dev/pandas/pull/36824
714,002,422
MDExOlB1bGxSZXF1ZXN0NDk3MjEzMjU4
36,824
DOC: use black to fix code style in doc pandas-dev#36777
{ "avatar_url": "https://avatars.githubusercontent.com/u/44412790?v=4", "events_url": "https://api.github.com/users/PrayagS/events{/privacy}", "followers_url": "https://api.github.com/users/PrayagS/followers", "following_url": "https://api.github.com/users/PrayagS/following{/other_user}", "gists_url": "https://api.github.com/users/PrayagS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PrayagS", "id": 44412790, "login": "PrayagS", "node_id": "MDQ6VXNlcjQ0NDEyNzkw", "organizations_url": "https://api.github.com/users/PrayagS/orgs", "received_events_url": "https://api.github.com/users/PrayagS/received_events", "repos_url": "https://api.github.com/users/PrayagS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PrayagS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PrayagS/subscriptions", "type": "User", "url": "https://api.github.com/users/PrayagS" }
[ { "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": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
closed
false
null
[]
null
2
2020-10-03T04:34:51Z
2020-10-06T12:21:29Z
2020-10-03T14:35:03Z
CONTRIBUTOR
null
Partially addresses #36777. Fixed the following files: - `doc/source/development/extending.rst` - `doc/source/user_guide/duplicates.rst` - `doc/source/user_guide/gotchas.rst` - `doc/source/user_guide/scale.rst`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36824/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36824/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36824.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36824", "merged_at": "2020-10-03T14:35:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36824.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36824" }
https://api.github.com/repos/pandas-dev/pandas/issues/36825
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36825/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36825/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36825/events
https://github.com/pandas-dev/pandas/pull/36825
714,018,864
MDExOlB1bGxSZXF1ZXN0NDk3MjI1Nzg0
36,825
DOC: Fix extending.rst code style #36777
{ "avatar_url": "https://avatars.githubusercontent.com/u/40813941?v=4", "events_url": "https://api.github.com/users/aniaan/events{/privacy}", "followers_url": "https://api.github.com/users/aniaan/followers", "following_url": "https://api.github.com/users/aniaan/following{/other_user}", "gists_url": "https://api.github.com/users/aniaan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aniaan", "id": 40813941, "login": "aniaan", "node_id": "MDQ6VXNlcjQwODEzOTQx", "organizations_url": "https://api.github.com/users/aniaan/orgs", "received_events_url": "https://api.github.com/users/aniaan/received_events", "repos_url": "https://api.github.com/users/aniaan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aniaan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aniaan/subscriptions", "type": "User", "url": "https://api.github.com/users/aniaan" }
[]
closed
false
null
[]
null
5
2020-10-03T06:31:44Z
2020-10-03T14:48:26Z
2020-10-03T14:46:51Z
CONTRIBUTOR
null
ref #36777 I tried to format development/extending.rst, please review cc @dsaxton
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36825/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36825/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36825.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36825", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36825.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36825" }
https://api.github.com/repos/pandas-dev/pandas/issues/36826
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36826/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36826/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36826/events
https://github.com/pandas-dev/pandas/pull/36826
714,020,838
MDExOlB1bGxSZXF1ZXN0NDk3MjI3MDcx
36,826
CI add end-of-file-fixer
{ "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
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" }
4
2020-10-03T06:43:25Z
2020-10-07T07:26:31Z
2020-10-06T22:54:42Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/pull/36600#issuecomment-702976850 > ok if you'd fix the EOF issue can merge (and yes good idea to add to the pre-commit hook / separate PR pls) Note: in addition to adding the end-of-file-fixer pre-commit hook, I applied the following ```diff diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py index c417f58f6..c6d00eb58 100755 --- a/scripts/generate_pip_deps_from_conda.py +++ b/scripts/generate_pip_deps_from_conda.py @@ -94,7 +94,7 @@ def main(conda_fname, pip_fname, compare=False): f"# This file is auto-generated from {fname}, do not modify.\n" "# See that file for comments about the need/usage of each dependency.\n\n" ) - pip_content = header + "\n".join(pip_deps) + pip_content = header + "\n".join(pip_deps) + "\n" if compare: with open(pip_fname) as pip_fd: ``` ---- I don't know how many of these we want to apply this to, for now I'm just excluding licenses (which I don't think should be touched?), html, txt, svg,and csv files
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36826/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36826/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36826.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36826", "merged_at": "2020-10-06T22:54:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36826.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36826" }
https://api.github.com/repos/pandas-dev/pandas/issues/36827
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36827/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36827/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36827/events
https://github.com/pandas-dev/pandas/issues/36827
714,054,812
MDU6SXNzdWU3MTQwNTQ4MTI=
36,827
BUG: python engine in pd.read_csv fails to use header=None correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/7307488?v=4", "events_url": "https://api.github.com/users/alisterburt/events{/privacy}", "followers_url": "https://api.github.com/users/alisterburt/followers", "following_url": "https://api.github.com/users/alisterburt/following{/other_user}", "gists_url": "https://api.github.com/users/alisterburt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alisterburt", "id": 7307488, "login": "alisterburt", "node_id": "MDQ6VXNlcjczMDc0ODg=", "organizations_url": "https://api.github.com/users/alisterburt/orgs", "received_events_url": "https://api.github.com/users/alisterburt/received_events", "repos_url": "https://api.github.com/users/alisterburt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alisterburt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alisterburt/subscriptions", "type": "User", "url": "https://api.github.com/users/alisterburt" }
[ { "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
2
2020-10-03T09:56:06Z
2021-08-13T03:47:44Z
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 For the following example file: ``` # comment data_block_1 300.000000 2.700000 0.070000 1 400 1.04000 2 # comment data_block_2 000001@0001_sum_particles.mrcs 0001_sum.mrc 587.000000 1268.000000 -51.52270 000001@0001_sum_particles.mrcs 0002_sum.mrc 685.000000 1268.000000 -51.52270 ``` ```python df1 = pd.read_csv(fname, skiprows=3, skipfooter=7, delim_whitespace=True, engine='python', comment='#', header=None) df2 = pd.read_csv(fname, skiprows=3, skipfooter=7, delim_whitespace=True, engine='python', comment='#', header=0) ``` ```python >>> df1 Empty DataFrame Columns: [0, 1, 2, 3, 4, 5, 6] Index: [] >>> df2 Empty DataFrame Columns: [300.000000, 2.700000, 0.070000, 1, 400, 1.04000, 2] Index: [] ``` #### Problem description Trying to read data_block_1 with the python engine (to be able to use skipfooter) yields an empty DataFrame ##### Expected behaviour - When `header=None` is passed to `read_csv()`, the dataframe returned should have shape `(1,7)` and contain the values from `data_block_1` (this does not happen) - When `header=0` is passed, the values in `data_block_1` end up as `df.columns` of an empty DataFrame (this happens) #### Expected Output ``` 0 1 2 3 4 5 6 0 300.000000 2.700000 0.070000 1 400 1.04000 2 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.5.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-7642-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 49.6.0.post20200814 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 : 3.0.5 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/36827/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36827/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36828
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36828/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36828/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36828/events
https://github.com/pandas-dev/pandas/issues/36828
714,061,307
MDU6SXNzdWU3MTQwNjEzMDc=
36,828
to_csv fails silently when writing to S3 (only 1 time out of 50,000)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44227154?v=4", "events_url": "https://api.github.com/users/dverney/events{/privacy}", "followers_url": "https://api.github.com/users/dverney/followers", "following_url": "https://api.github.com/users/dverney/following{/other_user}", "gists_url": "https://api.github.com/users/dverney/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dverney", "id": 44227154, "login": "dverney", "node_id": "MDQ6VXNlcjQ0MjI3MTU0", "organizations_url": "https://api.github.com/users/dverney/orgs", "received_events_url": "https://api.github.com/users/dverney/received_events", "repos_url": "https://api.github.com/users/dverney/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dverney/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dverney/subscriptions", "type": "User", "url": "https://api.github.com/users/dverney" }
[ { "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" }, { "color": "e4a5f1", "default": false, "description": "Local or Cloud (AWS, GCS, etc.) IO Issues", "id": 49381477, "name": "IO Network", "node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network" } ]
closed
false
null
[]
null
2
2020-10-03T10:38:17Z
2021-08-13T03:56:33Z
2021-08-13T03:56:33Z
NONE
null
#### Code Sample, a copy-pastable example ```python def save_df_to_s3(df, bucket, key): s3_url = f"s3://{bucket}/{key}" try: response = df.to_csv(s3_url, index=True, header=True, encoding='utf-8') except Exception as e: error_type = type(e).__name__ logger.error(f"{error_type}: {e}") logger.info(response) else: file_name = re.split('/', key)[-1] logger.info(f"'{file_name}' was uploaded/updated to bucket '{bucket}'") return response ``` #### Problem description This code is executed by a lambda which is triggered every 10 seconds. This code works perfectly for days on end. But in rare cases, the writing of the csv file on the bucket s3 fails silently (approximately 1 time out of 50,000). Does this relate to the following information provided by AWS "S3 Standard is designed for 99.99% availability"? I activated "Server access logging" on my bucket to try to have more information on the next failure. #### Expected Output Raise some exception #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2ca0a2665b2d169c97de87b8e778dbed86aea07 python : 3.7.9.final.0 python-bits : 64 OS : Linux OS-release : 4.14.177-104.253.amzn2.x86_64 Version : #1 SMP Fri May 1 02:01:13 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.1 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.1.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 fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : 0.4.2 scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : 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/36828/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36828/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36829
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36829/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36829/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36829/events
https://github.com/pandas-dev/pandas/pull/36829
714,061,402
MDExOlB1bGxSZXF1ZXN0NDk3MjU0Nzk2
36,829
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/44315225?v=4", "events_url": "https://api.github.com/users/Mikhaylov-yv/events{/privacy}", "followers_url": "https://api.github.com/users/Mikhaylov-yv/followers", "following_url": "https://api.github.com/users/Mikhaylov-yv/following{/other_user}", "gists_url": "https://api.github.com/users/Mikhaylov-yv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Mikhaylov-yv", "id": 44315225, "login": "Mikhaylov-yv", "node_id": "MDQ6VXNlcjQ0MzE1MjI1", "organizations_url": "https://api.github.com/users/Mikhaylov-yv/orgs", "received_events_url": "https://api.github.com/users/Mikhaylov-yv/received_events", "repos_url": "https://api.github.com/users/Mikhaylov-yv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Mikhaylov-yv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mikhaylov-yv/subscriptions", "type": "User", "url": "https://api.github.com/users/Mikhaylov-yv" }
[]
closed
false
null
[]
null
0
2020-10-03T10:39:00Z
2020-10-03T14:00:04Z
2020-10-03T14:00:04Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36829/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36829/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36829.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36829", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36829.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36829" }
https://api.github.com/repos/pandas-dev/pandas/issues/36830
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36830/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36830/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36830/events
https://github.com/pandas-dev/pandas/issues/36830
714,063,264
MDU6SXNzdWU3MTQwNjMyNjQ=
36,830
QST: while trying to convert categorical variables which are ordinal , i ran the following code
{ "avatar_url": "https://avatars.githubusercontent.com/u/68556350?v=4", "events_url": "https://api.github.com/users/senthilguna79/events{/privacy}", "followers_url": "https://api.github.com/users/senthilguna79/followers", "following_url": "https://api.github.com/users/senthilguna79/following{/other_user}", "gists_url": "https://api.github.com/users/senthilguna79/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/senthilguna79", "id": 68556350, "login": "senthilguna79", "node_id": "MDQ6VXNlcjY4NTU2MzUw", "organizations_url": "https://api.github.com/users/senthilguna79/orgs", "received_events_url": "https://api.github.com/users/senthilguna79/received_events", "repos_url": "https://api.github.com/users/senthilguna79/repos", "site_admin": false, "starred_url": "https://api.github.com/users/senthilguna79/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/senthilguna79/subscriptions", "type": "User", "url": "https://api.github.com/users/senthilguna79" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
2
2020-10-03T10:50:58Z
2020-10-03T12:17:16Z
2020-10-03T12:17:15Z
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas **Note**: If you'd still like to submit a question, 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 question. ```python # Your code here, if applicable ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36830/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36830/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36831
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36831/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36831/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36831/events
https://github.com/pandas-dev/pandas/pull/36831
714,066,730
MDExOlB1bGxSZXF1ZXN0NDk3MjU4ODQ0
36,831
DOC: reformat doc groupby.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4", "events_url": "https://api.github.com/users/erfannariman/events{/privacy}", "followers_url": "https://api.github.com/users/erfannariman/followers", "following_url": "https://api.github.com/users/erfannariman/following{/other_user}", "gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/erfannariman", "id": 34067903, "login": "erfannariman", "node_id": "MDQ6VXNlcjM0MDY3OTAz", "organizations_url": "https://api.github.com/users/erfannariman/orgs", "received_events_url": "https://api.github.com/users/erfannariman/received_events", "repos_url": "https://api.github.com/users/erfannariman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions", "type": "User", "url": "https://api.github.com/users/erfannariman" }
[]
closed
false
null
[]
null
2
2020-10-03T11:12:18Z
2020-10-04T22:33:14Z
2020-10-03T18:09:22Z
CONTRIBUTOR
null
ref #36777
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36831/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36831/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36831.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36831", "merged_at": "2020-10-03T18:09:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36831.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36831" }
https://api.github.com/repos/pandas-dev/pandas/issues/36832
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36832/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36832/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36832/events
https://github.com/pandas-dev/pandas/pull/36832
714,075,084
MDExOlB1bGxSZXF1ZXN0NDk3MjY1MDUx
36,832
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/44315225?v=4", "events_url": "https://api.github.com/users/Mikhaylov-yv/events{/privacy}", "followers_url": "https://api.github.com/users/Mikhaylov-yv/followers", "following_url": "https://api.github.com/users/Mikhaylov-yv/following{/other_user}", "gists_url": "https://api.github.com/users/Mikhaylov-yv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Mikhaylov-yv", "id": 44315225, "login": "Mikhaylov-yv", "node_id": "MDQ6VXNlcjQ0MzE1MjI1", "organizations_url": "https://api.github.com/users/Mikhaylov-yv/orgs", "received_events_url": "https://api.github.com/users/Mikhaylov-yv/received_events", "repos_url": "https://api.github.com/users/Mikhaylov-yv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Mikhaylov-yv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mikhaylov-yv/subscriptions", "type": "User", "url": "https://api.github.com/users/Mikhaylov-yv" }
[]
closed
false
null
[]
null
0
2020-10-03T12:01:16Z
2020-10-03T14:00:50Z
2020-10-03T14:00:50Z
CONTRIBUTOR
null
update code style computation.rst for #36777
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36832/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36832/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36832.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36832", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36832.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36832" }
https://api.github.com/repos/pandas-dev/pandas/issues/36833
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36833/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36833/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36833/events
https://github.com/pandas-dev/pandas/pull/36833
714,080,327
MDExOlB1bGxSZXF1ZXN0NDk3MjY4OTM4
36,833
REF: NDFrame describe
{ "avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4", "events_url": "https://api.github.com/users/ivanovmg/events{/privacy}", "followers_url": "https://api.github.com/users/ivanovmg/followers", "following_url": "https://api.github.com/users/ivanovmg/following{/other_user}", "gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ivanovmg", "id": 41443370, "login": "ivanovmg", "node_id": "MDQ6VXNlcjQxNDQzMzcw", "organizations_url": "https://api.github.com/users/ivanovmg/orgs", "received_events_url": "https://api.github.com/users/ivanovmg/received_events", "repos_url": "https://api.github.com/users/ivanovmg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions", "type": "User", "url": "https://api.github.com/users/ivanovmg" }
[ { "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": "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": "78bced", "default": false, "description": "Waiting for review/response from a maintainer.", "id": 2324533627, "name": "Needs Review", "node_id": "MDU6TGFiZWwyMzI0NTMzNjI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Review" } ]
closed
false
null
[]
null
5
2020-10-03T12:31:44Z
2021-01-11T12:27:21Z
2020-12-29T20:46:38Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Refactor ``NDFrame.describe`` method. - Create module ``pandas/io/formats/describe.py`` - Delegate ``NDFrame.describe`` to function ``describe_ndframe`` in the new module - Implement polymorphism for describing series and dataframe - Implement strategy pattern for describing series of different kinds (categorical, numeric, timestamp) Benefits: - Reduce complexity in ``pandas/core/generic.py`` - Straightforward logic how to treat each datatype (reduced if/elif/else workflow) - Enable potential for further extension
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36833/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36833/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36833.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36833", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36833.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36833" }
https://api.github.com/repos/pandas-dev/pandas/issues/36834
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36834/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36834/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36834/events
https://github.com/pandas-dev/pandas/pull/36834
714,095,943
MDExOlB1bGxSZXF1ZXN0NDk3MjgwMjkw
36,834
Fix/empty string datetimelike conversion/issue 36550
{ "avatar_url": "https://avatars.githubusercontent.com/u/49879400?v=4", "events_url": "https://api.github.com/users/nrebena/events{/privacy}", "followers_url": "https://api.github.com/users/nrebena/followers", "following_url": "https://api.github.com/users/nrebena/following{/other_user}", "gists_url": "https://api.github.com/users/nrebena/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nrebena", "id": 49879400, "login": "nrebena", "node_id": "MDQ6VXNlcjQ5ODc5NDAw", "organizations_url": "https://api.github.com/users/nrebena/orgs", "received_events_url": "https://api.github.com/users/nrebena/received_events", "repos_url": "https://api.github.com/users/nrebena/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nrebena/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nrebena/subscriptions", "type": "User", "url": "https://api.github.com/users/nrebena" }
[ { "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
null
5
2020-10-03T13:57:31Z
2020-11-27T18:47:26Z
2020-11-27T18:47:26Z
CONTRIBUTOR
null
- [x] xref #36550 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry # Empty string conversion The actual comportment of Timedelta, Timestamp and to_datetime is to return NaT. ```python import pandas as pd pd.to_datetime("", errors="raise") # NaT pd.to_datetime("", errors="coerce") # NaT pd.to_datetime("", errors="ignore") # NaT pd.Timedelta("") # NaT pd.Timestamp("") # NaT ``` I would propose to raise a ValueError instead, same as for string that are not datetimelike, as follow: ```python import pandas as pd import pytest with pytest.raises(ValueError): pd.to_datetime("", errors="raise") pd.to_datetime("", errors="coerce") # NaT pd.to_datetime("", errors="ignore") # '' with pytest.raises(ValueError): pd.Timedelta("") with pytest.raises(ValueError): pd.Timestamp("") ``` # Tests I added the relevant test for the expected comportment. I still will have to fix some test that rely on the current behaviors. # Benchmark I ran the following command `asv continuous -E virtualenv -f 1.1 upstream/master HEAD -b "^tslibs.(timestamp|timedelta|tslib)"` <details> ``` before after ratio [8f6ec1e8] [4393cc9e] <master> <fix/empty-string-datetimelike-conversion/issue-36550> + 173±1ns 202±10ns 1.17 tslibs.timestamp.TimestampProperties.time_is_leap_year(tzlocal(), 'B') + 162±2ns 188±4ns 1.16 tslibs.timestamp.TimestampProperties.time_is_quarter_start(tzlocal(), None) + 178±1ns 205±20ns 1.15 tslibs.timestamp.TimestampProperties.time_dayofweek(tzfile('/usr/share/zoneinfo/US/Central'), 'B') + 163±2ns 186±10ns 1.15 tslibs.timestamp.TimestampProperties.time_is_year_end(tzlocal(), None) + 162±1ns 185±10ns 1.15 tslibs.timestamp.TimestampProperties.time_is_year_end(tzfile('/usr/share/zoneinfo/US/Central'), None) + 162±2ns 185±10ns 1.14 tslibs.timestamp.TimestampProperties.time_is_year_end(<UTC>, None) + 169±2ns 193±10ns 1.14 tslibs.timestamp.TimestampProperties.time_is_quarter_end(tzlocal(), None) + 164±2ns 186±4ns 1.14 tslibs.timestamp.TimestampProperties.time_is_quarter_start(tzutc(), None) + 4.60±0.03μs 5.16±0.3μs 1.12 tslibs.timestamp.TimestampProperties.time_is_year_end(datetime.timezone(datetime.timedelta(seconds=3600)), 'B') + 147±1ns 163±4ns 1.11 tslibs.timestamp.TimestampProperties.time_microsecond(<DstTzInfo 'Europe/Amsterdam' LMT+0:20:00 STD>, 'B') + 170±2ns 188±7ns 1.11 tslibs.timestamp.TimestampProperties.time_is_quarter_end(tzfile('/usr/share/zoneinfo/US/Central'), None) + 179±0.7ns 197±10ns 1.10 tslibs.timestamp.TimestampProperties.time_dayofweek(datetime.timezone(datetime.timedelta(seconds=3600)), None) + 174±0.3ns 191±10ns 1.10 tslibs.timestamp.TimestampProperties.time_is_leap_year(<DstTzInfo 'Europe/Amsterdam' LMT+0:20:00 STD>, 'B') SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY. PERFORMANCE DECREASED. ``` </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/36834/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36834/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36834.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36834", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36834.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36834" }
https://api.github.com/repos/pandas-dev/pandas/issues/36835
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36835/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36835/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36835/events
https://github.com/pandas-dev/pandas/pull/36835
714,099,055
MDExOlB1bGxSZXF1ZXN0NDk3MjgyNjI5
36,835
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/44315225?v=4", "events_url": "https://api.github.com/users/Mikhaylov-yv/events{/privacy}", "followers_url": "https://api.github.com/users/Mikhaylov-yv/followers", "following_url": "https://api.github.com/users/Mikhaylov-yv/following{/other_user}", "gists_url": "https://api.github.com/users/Mikhaylov-yv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Mikhaylov-yv", "id": 44315225, "login": "Mikhaylov-yv", "node_id": "MDQ6VXNlcjQ0MzE1MjI1", "organizations_url": "https://api.github.com/users/Mikhaylov-yv/orgs", "received_events_url": "https://api.github.com/users/Mikhaylov-yv/received_events", "repos_url": "https://api.github.com/users/Mikhaylov-yv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Mikhaylov-yv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mikhaylov-yv/subscriptions", "type": "User", "url": "https://api.github.com/users/Mikhaylov-yv" }
[]
closed
false
null
[]
null
1
2020-10-03T14:12:21Z
2020-10-03T14:59:04Z
2020-10-03T14:59:04Z
CONTRIBUTOR
null
…omputation.rst #36832 - [ ] 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/36835/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36835/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36835.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36835", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36835.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36835" }
https://api.github.com/repos/pandas-dev/pandas/issues/36836
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36836/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36836/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36836/events
https://github.com/pandas-dev/pandas/pull/36836
714,114,365
MDExOlB1bGxSZXF1ZXN0NDk3Mjk0MDY4
36,836
DOC: Update docs on estimated time of running full asv suite (36344)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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-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-10-03T15:32:45Z
2020-10-08T00:59:47Z
2020-10-08T00:59:25Z
CONTRIBUTOR
null
- [x] closes #36344 - [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/36836/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36836/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36836.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36836", "merged_at": "2020-10-08T00:59:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36836.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36836" }
https://api.github.com/repos/pandas-dev/pandas/issues/36837
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36837/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36837/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36837/events
https://github.com/pandas-dev/pandas/issues/36837
714,133,530
MDU6SXNzdWU3MTQxMzM1MzA=
36,837
Add hacktoberfest topic to the repo
{ "avatar_url": "https://avatars.githubusercontent.com/u/44412790?v=4", "events_url": "https://api.github.com/users/PrayagS/events{/privacy}", "followers_url": "https://api.github.com/users/PrayagS/followers", "following_url": "https://api.github.com/users/PrayagS/following{/other_user}", "gists_url": "https://api.github.com/users/PrayagS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PrayagS", "id": 44412790, "login": "PrayagS", "node_id": "MDQ6VXNlcjQ0NDEyNzkw", "organizations_url": "https://api.github.com/users/PrayagS/orgs", "received_events_url": "https://api.github.com/users/PrayagS/received_events", "repos_url": "https://api.github.com/users/PrayagS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PrayagS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PrayagS/subscriptions", "type": "User", "url": "https://api.github.com/users/PrayagS" }
[ { "color": "0bbec4", "default": false, "description": "Community topics (meetings, etc.)", "id": 2187005593, "name": "Community", "node_id": "MDU6TGFiZWwyMTg3MDA1NTkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Community" } ]
closed
false
null
[]
null
12
2020-10-03T17:10:12Z
2021-10-03T23:30:53Z
2021-02-28T12:22:32Z
CONTRIBUTOR
null
Hacktoberfest 2020 has undergone some changes due to the excessive spamming that occurred this year. The rules for a PR to be accepted have been modified. Detailed post on their official website can be found [here](https://hacktoberfest.digitalocean.com/hacktoberfest-update). Here is the most important part for maintainers: ![](https://user-images.githubusercontent.com/44412790/94985906-ef5c9000-0577-11eb-9eaa-850fcd0b0942.png) As one can see, the maintainers need to add the `hacktoberfest` topic to the repo in order for all the PRs to be considered valid. This is completely opt-in and this issue serves as a notification for the maintainers in case they want to take part.
{ "+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/36837/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36837/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36838
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36838/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36838/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36838/events
https://github.com/pandas-dev/pandas/pull/36838
714,138,116
MDExOlB1bGxSZXF1ZXN0NDk3MzExNTgw
36,838
DEPR: Deprecate use of strings denoting units with 'M', 'Y' or 'y' in pd.to_timedelta (36666)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "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" }
13
2020-10-03T17:35:09Z
2020-10-31T18:52:13Z
2020-10-31T18:52:07Z
CONTRIBUTOR
null
- [x] closes #36666 - [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/36838/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36838/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36838.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36838", "merged_at": "2020-10-31T18:52:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36838.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36838" }
https://api.github.com/repos/pandas-dev/pandas/issues/36839
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36839/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36839/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36839/events
https://github.com/pandas-dev/pandas/pull/36839
714,170,553
MDExOlB1bGxSZXF1ZXN0NDk3MzM0NTI1
36,839
PERF: Add asv benchmarks for select_dtypes (14588)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
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" }
3
2020-10-03T20:31:48Z
2020-10-05T17:41:34Z
2020-10-05T17:41:30Z
CONTRIBUTOR
null
- [x] closes #14588 - [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/36839/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36839/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36839.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36839", "merged_at": "2020-10-05T17:41:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36839.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36839" }
https://api.github.com/repos/pandas-dev/pandas/issues/36840
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36840/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36840/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36840/events
https://github.com/pandas-dev/pandas/pull/36840
714,186,954
MDExOlB1bGxSZXF1ZXN0NDk3MzQ1NjA4
36,840
PERF: Index._shallow_copy shares _cache with copies of self
{ "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": "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": "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-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" }
4
2020-10-03T22:20:37Z
2020-11-28T18:25:04Z
2020-10-06T15:33:14Z
CONTRIBUTOR
null
#32640 copied the cache when copying indexes. Indexes are immutable, so some refactoring allows us to __share__ the cache instead. This means potentially fewer expensive index ops. ```python >>> idx = pd.CategoricalIndex(np.arange(100_000)) >>> copied = idx.copy() >>> copied._cache {} >>> idx.get_loc(99_999) >>> copied._cache {'_engine': <pandas._libs.index.Int32Engine at 0x1fd3a6934c8>} # don't need to recreate _engine on copied ``` Performance example: ```python >>> idx = pd.CategoricalIndex(np.arange(100_000)) >>> %timeit idx._shallow_copy().get_loc(99_999) 4.09 ms ± 65 µs per loop # master 7.71 µs ± 355 ns per loop # this PR ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36840/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36840/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36840.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36840", "merged_at": "2020-10-06T15:33:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36840.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36840" }
https://api.github.com/repos/pandas-dev/pandas/issues/36841
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36841/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36841/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36841/events
https://github.com/pandas-dev/pandas/pull/36841
714,187,324
MDExOlB1bGxSZXF1ZXN0NDk3MzQ1ODM4
36,841
TST: Verify parsing of data with encoded special characters (16218)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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-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" }
4
2020-10-03T22:23:18Z
2020-10-12T06:38:38Z
2020-10-12T06:38:30Z
CONTRIBUTOR
null
- [x] closes #16218 - [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/36841/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36841/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36841.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36841", "merged_at": "2020-10-12T06:38:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36841.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36841" }
https://api.github.com/repos/pandas-dev/pandas/issues/36842
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36842/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36842/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36842/events
https://github.com/pandas-dev/pandas/pull/36842
714,196,080
MDExOlB1bGxSZXF1ZXN0NDk3MzUxNjM0
36,842
BUG: Groupy dropped nan groups from result when grouping over single column
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
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" }
18
2020-10-03T23:31:55Z
2020-11-04T21:12:38Z
2020-11-04T02:59:03Z
MEMBER
null
- [x] closes #35646 - [x] closes #35542 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When grouping over 2 columns with only ``nans`` this raised an error previously. Realised this, when running tests for my fix, because this case was tests with one grouping column. Added test to cover fixed behavior for more than one column. cc @mroeschke Takes same path as two or more grouping columns now.
{ "+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/36842/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36842/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36842.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36842", "merged_at": "2020-11-04T02:59:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36842.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36842" }
https://api.github.com/repos/pandas-dev/pandas/issues/36843
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36843/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36843/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36843/events
https://github.com/pandas-dev/pandas/pull/36843
714,197,272
MDExOlB1bGxSZXF1ZXN0NDk3MzUyMzc4
36,843
REF: separate flex from non-flex DataFrame ops
{ "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": "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-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" }
7
2020-10-03T23:42:40Z
2020-10-10T22:45:58Z
2020-10-10T22:27:19Z
MEMBER
null
- [x] closes #36796 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Unless supporting this is intentional, in which case we should deprecate and explicitly implement flex-bool operations. If/when this is done, we can stop passing `special` and even `cls`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36843/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36843/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36843.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36843", "merged_at": "2020-10-10T22:27:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36843.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36843" }
https://api.github.com/repos/pandas-dev/pandas/issues/36844
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36844/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36844/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36844/events
https://github.com/pandas-dev/pandas/pull/36844
714,200,493
MDExOlB1bGxSZXF1ZXN0NDk3MzU0MzY0
36,844
DOC: Typo fix
{ "avatar_url": "https://avatars.githubusercontent.com/u/50599110?v=4", "events_url": "https://api.github.com/users/lrjball/events{/privacy}", "followers_url": "https://api.github.com/users/lrjball/followers", "following_url": "https://api.github.com/users/lrjball/following{/other_user}", "gists_url": "https://api.github.com/users/lrjball/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lrjball", "id": 50599110, "login": "lrjball", "node_id": "MDQ6VXNlcjUwNTk5MTEw", "organizations_url": "https://api.github.com/users/lrjball/orgs", "received_events_url": "https://api.github.com/users/lrjball/received_events", "repos_url": "https://api.github.com/users/lrjball/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lrjball/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lrjball/subscriptions", "type": "User", "url": "https://api.github.com/users/lrjball" }
[ { "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-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-10-04T00:09:36Z
2020-10-04T03:27:58Z
2020-10-04T03:27:50Z
CONTRIBUTOR
null
Noticed a minor typo when using the docs
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36844/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36844/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36844.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36844", "merged_at": "2020-10-04T03:27:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36844.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36844" }
https://api.github.com/repos/pandas-dev/pandas/issues/36845
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36845/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36845/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36845/events
https://github.com/pandas-dev/pandas/pull/36845
714,203,723
MDExOlB1bGxSZXF1ZXN0NDk3MzU2NTgz
36,845
DOC: normalize usage of word "pandas"
{ "avatar_url": "https://avatars.githubusercontent.com/u/16039329?v=4", "events_url": "https://api.github.com/users/LeviMatus/events{/privacy}", "followers_url": "https://api.github.com/users/LeviMatus/followers", "following_url": "https://api.github.com/users/LeviMatus/following{/other_user}", "gists_url": "https://api.github.com/users/LeviMatus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LeviMatus", "id": 16039329, "login": "LeviMatus", "node_id": "MDQ6VXNlcjE2MDM5MzI5", "organizations_url": "https://api.github.com/users/LeviMatus/orgs", "received_events_url": "https://api.github.com/users/LeviMatus/received_events", "repos_url": "https://api.github.com/users/LeviMatus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LeviMatus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LeviMatus/subscriptions", "type": "User", "url": "https://api.github.com/users/LeviMatus" }
[ { "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
3
2020-10-04T00:34:52Z
2020-10-04T23:16:35Z
2020-10-04T20:13:32Z
CONTRIBUTOR
null
changes references to the library, pandas, to match the standard lowercase spelling. This changes applicable `.rst` files under the `doc/source` path. References such as Pandas, **pandas**, *pandas*, and ``pandas`` have been replaced with pandas. - [x] closes #32316 - [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/36845/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36845/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36845.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36845", "merged_at": "2020-10-04T20:13:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36845.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36845" }
https://api.github.com/repos/pandas-dev/pandas/issues/36846
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36846/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36846/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36846/events
https://github.com/pandas-dev/pandas/pull/36846
714,218,023
MDExOlB1bGxSZXF1ZXN0NDk3MzY1OTkx
36,846
Update documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/35962310?v=4", "events_url": "https://api.github.com/users/trishitapingolia/events{/privacy}", "followers_url": "https://api.github.com/users/trishitapingolia/followers", "following_url": "https://api.github.com/users/trishitapingolia/following{/other_user}", "gists_url": "https://api.github.com/users/trishitapingolia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/trishitapingolia", "id": 35962310, "login": "trishitapingolia", "node_id": "MDQ6VXNlcjM1OTYyMzEw", "organizations_url": "https://api.github.com/users/trishitapingolia/orgs", "received_events_url": "https://api.github.com/users/trishitapingolia/received_events", "repos_url": "https://api.github.com/users/trishitapingolia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/trishitapingolia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trishitapingolia/subscriptions", "type": "User", "url": "https://api.github.com/users/trishitapingolia" }
[]
closed
false
null
[]
null
1
2020-10-04T02:40:08Z
2020-10-04T03:18:19Z
2020-10-04T03:18:12Z
NONE
null
Capitalization error
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36846/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36846/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36846.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36846", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36846.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36846" }
https://api.github.com/repos/pandas-dev/pandas/issues/36847
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36847/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36847/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36847/events
https://github.com/pandas-dev/pandas/pull/36847
714,219,387
MDExOlB1bGxSZXF1ZXN0NDk3MzY2ODA1
36,847
CI: pin pymysql #36465
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" }, { "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" }, { "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-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-10-04T02:51:52Z
2020-10-10T21:32:25Z
2020-10-10T16:24:07Z
MEMBER
null
Part of #36465
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36847/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36847/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36847.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36847", "merged_at": "2020-10-10T16:24:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36847.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36847" }
https://api.github.com/repos/pandas-dev/pandas/issues/36848
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36848/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36848/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36848/events
https://github.com/pandas-dev/pandas/pull/36848
714,219,716
MDExOlB1bGxSZXF1ZXN0NDk3MzY2OTQy
36,848
REF: IndexOpsMixin wrapping
{ "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" } ]
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-10-04T02:54:10Z
2020-10-08T21:19:55Z
2020-10-08T20:46:38Z
MEMBER
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/36848/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36848/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36848.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36848", "merged_at": "2020-10-08T20:46:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36848.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36848" }
https://api.github.com/repos/pandas-dev/pandas/issues/36849
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36849/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36849/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36849/events
https://github.com/pandas-dev/pandas/pull/36849
714,232,044
MDExOlB1bGxSZXF1ZXN0NDk3Mzc0ODA0
36,849
DOC: black enhancingperf.rst and 10min.rst code style
{ "avatar_url": "https://avatars.githubusercontent.com/u/40813941?v=4", "events_url": "https://api.github.com/users/aniaan/events{/privacy}", "followers_url": "https://api.github.com/users/aniaan/followers", "following_url": "https://api.github.com/users/aniaan/following{/other_user}", "gists_url": "https://api.github.com/users/aniaan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aniaan", "id": 40813941, "login": "aniaan", "node_id": "MDQ6VXNlcjQwODEzOTQx", "organizations_url": "https://api.github.com/users/aniaan/orgs", "received_events_url": "https://api.github.com/users/aniaan/received_events", "repos_url": "https://api.github.com/users/aniaan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aniaan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aniaan/subscriptions", "type": "User", "url": "https://api.github.com/users/aniaan" }
[]
closed
false
null
[]
null
3
2020-10-04T04:38:34Z
2020-10-05T05:57:39Z
2020-10-04T17:39:24Z
CONTRIBUTOR
null
ref #36777
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36849/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36849/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36849.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36849", "merged_at": "2020-10-04T17:39:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36849.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36849" }
https://api.github.com/repos/pandas-dev/pandas/issues/36850
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36850/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36850/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36850/events
https://github.com/pandas-dev/pandas/issues/36850
714,234,614
MDU6SXNzdWU3MTQyMzQ2MTQ=
36,850
DOC: `.loc` behavior undocumented for Index argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/39277069?v=4", "events_url": "https://api.github.com/users/hickmanw/events{/privacy}", "followers_url": "https://api.github.com/users/hickmanw/followers", "following_url": "https://api.github.com/users/hickmanw/following{/other_user}", "gists_url": "https://api.github.com/users/hickmanw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hickmanw", "id": 39277069, "login": "hickmanw", "node_id": "MDQ6VXNlcjM5Mjc3MDY5", "organizations_url": "https://api.github.com/users/hickmanw/orgs", "received_events_url": "https://api.github.com/users/hickmanw/received_events", "repos_url": "https://api.github.com/users/hickmanw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hickmanw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hickmanw/subscriptions", "type": "User", "url": "https://api.github.com/users/hickmanw" }
[ { "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": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/19281800?v=4", "events_url": "https://api.github.com/users/hongshaoyang/events{/privacy}", "followers_url": "https://api.github.com/users/hongshaoyang/followers", "following_url": "https://api.github.com/users/hongshaoyang/following{/other_user}", "gists_url": "https://api.github.com/users/hongshaoyang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hongshaoyang", "id": 19281800, "login": "hongshaoyang", "node_id": "MDQ6VXNlcjE5MjgxODAw", "organizations_url": "https://api.github.com/users/hongshaoyang/orgs", "received_events_url": "https://api.github.com/users/hongshaoyang/received_events", "repos_url": "https://api.github.com/users/hongshaoyang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hongshaoyang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hongshaoyang/subscriptions", "type": "User", "url": "https://api.github.com/users/hongshaoyang" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/19281800?v=4", "events_url": "https://api.github.com/users/hongshaoyang/events{/privacy}", "followers_url": "https://api.github.com/users/hongshaoyang/followers", "following_url": "https://api.github.com/users/hongshaoyang/following{/other_user}", "gists_url": "https://api.github.com/users/hongshaoyang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hongshaoyang", "id": 19281800, "login": "hongshaoyang", "node_id": "MDQ6VXNlcjE5MjgxODAw", "organizations_url": "https://api.github.com/users/hongshaoyang/orgs", "received_events_url": "https://api.github.com/users/hongshaoyang/received_events", "repos_url": "https://api.github.com/users/hongshaoyang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hongshaoyang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hongshaoyang/subscriptions", "type": "User", "url": "https://api.github.com/users/hongshaoyang" } ]
{ "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" }
2
2020-10-04T05:00:52Z
2020-11-29T18:06:24Z
2020-11-29T18:06:24Z
NONE
null
#### Location of the documentation [pandas.Series.loc](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.loc.html) [pandas.DataFrame.loc](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.loc.html) #### Documentation problem The documentation does not mention `pandas.Index` as a valid argument for `.loc`. I expected the result to be the same as passing the values of the index, but the result is instead the same as `reindex` (as long as the result has at least one element, otherwise it raises `KeyError`). I discovered the difference when relying on the index name to remain unchanged after `.loc`. Below is a minimal demonstration of the current behavior for `pandas.Series`. Analogous behavior occurs for both axes of `pandas.DataFrame`. ```python In [2]: foo = pd.Index(range(2), name='foo') bar = pd.Index(range(1), name='bar') baz = pd.Index([2], name='baz') s = pd.Series(list('ab'), index=foo) s Out [2]: foo 0 a 1 b dtype: object In [3]: s.loc[bar] Out [3]: bar 0 a dtype: object In [4]: s.loc[bar].index is bar Out [4]: True In [5]: s.reindex(bar).index is bar Out [5]: True In [6]: s.loc[baz] Out [6]: KeyError: "None of [Int64Index([2], dtype='int64', name='baz')] are in the [index]" ``` Output of `pd.show_versions` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.6.7.final.0 python-bits : 64 OS : Linux OS-release : 4.14.193-149.317.amzn2.x86_64 Version : #1 SMP Thu Sep 3 19:04:44 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.3 setuptools : 50.3.0 Cython : None pytest : 5.4.3 hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.1 numexpr : None odfpy : None openpyxl : 3.0.5 pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.2.12 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None numba : 0.51.0 </details> #### Suggested fix for documentation Add an entry to explain the current/intended behavior when passing an `Index` to `.loc`, especially mentioning that the index will be replaced. Doing so would complement the clarity recently provided by #35506 for alignable boolean series.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36850/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36850/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36851
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36851/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36851/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36851/events
https://github.com/pandas-dev/pandas/pull/36851
714,241,114
MDExOlB1bGxSZXF1ZXN0NDk3MzgxMDEw
36,851
DOC: Standardize references to pandas in the documentation for #32316
{ "avatar_url": "https://avatars.githubusercontent.com/u/44315225?v=4", "events_url": "https://api.github.com/users/Mikhaylov-yv/events{/privacy}", "followers_url": "https://api.github.com/users/Mikhaylov-yv/followers", "following_url": "https://api.github.com/users/Mikhaylov-yv/following{/other_user}", "gists_url": "https://api.github.com/users/Mikhaylov-yv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Mikhaylov-yv", "id": 44315225, "login": "Mikhaylov-yv", "node_id": "MDQ6VXNlcjQ0MzE1MjI1", "organizations_url": "https://api.github.com/users/Mikhaylov-yv/orgs", "received_events_url": "https://api.github.com/users/Mikhaylov-yv/received_events", "repos_url": "https://api.github.com/users/Mikhaylov-yv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Mikhaylov-yv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mikhaylov-yv/subscriptions", "type": "User", "url": "https://api.github.com/users/Mikhaylov-yv" }
[]
closed
false
null
[]
null
1
2020-10-04T05:49:02Z
2020-10-04T21:05:49Z
2020-10-04T21:05:48Z
CONTRIBUTOR
null
Standardize references to pandas in the documentation for #32316
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36851/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36851/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36851.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36851", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36851.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36851" }
https://api.github.com/repos/pandas-dev/pandas/issues/36852
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36852/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36852/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36852/events
https://github.com/pandas-dev/pandas/pull/36852
714,253,267
MDExOlB1bGxSZXF1ZXN0NDk3Mzg5Mjk2
36,852
REF/CLN: pandas/io/parsers.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4", "events_url": "https://api.github.com/users/ivanovmg/events{/privacy}", "followers_url": "https://api.github.com/users/ivanovmg/followers", "following_url": "https://api.github.com/users/ivanovmg/following{/other_user}", "gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ivanovmg", "id": 41443370, "login": "ivanovmg", "node_id": "MDQ6VXNlcjQxNDQzMzcw", "organizations_url": "https://api.github.com/users/ivanovmg/orgs", "received_events_url": "https://api.github.com/users/ivanovmg/received_events", "repos_url": "https://api.github.com/users/ivanovmg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions", "type": "User", "url": "https://api.github.com/users/ivanovmg" }
[ { "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": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "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" }
7
2020-10-04T07:17:43Z
2020-10-22T07:31:10Z
2020-10-14T17:54:46Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Refactor/cleanup ``pandas/io/parsers.py`` - Extract method _refresh_kwargs_based_on_dialect - Extract method _validate_skipfooter - Drop local variable engine_specified - Clean-up FutureWarning 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/36852/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36852/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36852.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36852", "merged_at": "2020-10-14T17:54:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36852.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36852" }
https://api.github.com/repos/pandas-dev/pandas/issues/36853
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36853/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36853/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36853/events
https://github.com/pandas-dev/pandas/issues/36853
714,260,521
MDU6SXNzdWU3MTQyNjA1MjE=
36,853
DOC: Add freq strings reference link for Period
{ "avatar_url": "https://avatars.githubusercontent.com/u/4676330?v=4", "events_url": "https://api.github.com/users/nixphix/events{/privacy}", "followers_url": "https://api.github.com/users/nixphix/followers", "following_url": "https://api.github.com/users/nixphix/following{/other_user}", "gists_url": "https://api.github.com/users/nixphix/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nixphix", "id": 4676330, "login": "nixphix", "node_id": "MDQ6VXNlcjQ2NzYzMzA=", "organizations_url": "https://api.github.com/users/nixphix/orgs", "received_events_url": "https://api.github.com/users/nixphix/received_events", "repos_url": "https://api.github.com/users/nixphix/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nixphix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nixphix/subscriptions", "type": "User", "url": "https://api.github.com/users/nixphix" }
[ { "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": "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" } ]
open
false
null
[]
null
2
2020-10-04T08:07:26Z
2021-08-13T03:56:58Z
null
CONTRIBUTOR
null
#### Location of the documentation [pandas.Period](https://pandas.pydata.org/docs/reference/api/pandas.Period.html) #### Documentation problem The doc does not provide much information on the possible offset-aliases for the `freq` parameter #### Suggested fix for documentation A link to [offset-aliases](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases) for the `freq` parameter for quick reference
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36853/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36853/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36854
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36854/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36854/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36854/events
https://github.com/pandas-dev/pandas/pull/36854
714,264,805
MDExOlB1bGxSZXF1ZXN0NDk3Mzk3Mjcz
36,854
TYP: update setup.cfg
{ "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" }
[]
closed
false
null
[]
null
2
2020-10-04T08:35:04Z
2020-10-05T09:36:00Z
2020-10-04T22:39: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/36854/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36854/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36854.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36854", "merged_at": "2020-10-04T22:39:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36854.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36854" }
https://api.github.com/repos/pandas-dev/pandas/issues/36855
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36855/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36855/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36855/events
https://github.com/pandas-dev/pandas/issues/36855
714,265,050
MDU6SXNzdWU3MTQyNjUwNTA=
36,855
BUG: Column name is missing after concat if the key contain only one column of string data
{ "avatar_url": "https://avatars.githubusercontent.com/u/3852502?v=4", "events_url": "https://api.github.com/users/Super169/events{/privacy}", "followers_url": "https://api.github.com/users/Super169/followers", "following_url": "https://api.github.com/users/Super169/following{/other_user}", "gists_url": "https://api.github.com/users/Super169/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Super169", "id": 3852502, "login": "Super169", "node_id": "MDQ6VXNlcjM4NTI1MDI=", "organizations_url": "https://api.github.com/users/Super169/orgs", "received_events_url": "https://api.github.com/users/Super169/received_events", "repos_url": "https://api.github.com/users/Super169/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Super169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Super169/subscriptions", "type": "User", "url": "https://api.github.com/users/Super169" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "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
[]
null
9
2020-10-04T08:36:33Z
2020-10-07T09:00:17Z
2020-10-07T09:00:17Z
NONE
null
I'm going to develop a simple application to compare two dataframe with given keys (multiple index columns). I need to generate 3 dataframe as below, - final_1 : contain all rows in df1, plus empty row with keys in df2 only - final_2 : contain all rows in df2, plus empty row with keys in df1 only - compare_result: contain information of merge ('both','left_only','right_only'), together with column comparison result Please find the source beblow, there has some problem with particular keys combination. I try to make a simple dataset and include in the source. In the attached dataset, - It works find with the keys ['org_code','sub_key'], but with error if only ['org_code'] - It also work after I convert the 'org_code' to create a int column of 'dummy_code'. - It also failed using ['user_name'] as keys, but no error for ['amount']. It seems that there will have problem if the keys contain only one column of string data (e.g. 'org_code'). It was found that the index column name is missing for df_all in those fail cases. Which cause the error like: **KeyError: "['org_code'] not in index"** df_all is generated using concat command, and it need to get a merged dataframe with columns of df1 and df2 under different group, and join by the key_columns. ```python df_all = pd.concat([df1.set_index(key_columns), df2.set_index(key_columns)], axis='columns', keys=['df1', 'df2']) ``` The workaround is to set the index name after df_all is generated if the key contain only one column. i.e. ```Python if len(key_columns) == 1: df_all.index.name = key_columns[0] ``` But it doesn't work if similar problem occurred in multiple columns situation. So it'd be better if concat can keep the original column name. May I know if this is the problem in concat command, or anything wrong in my case? Thanks. #### Code Sample, a copy-pastable example ```python import tkinter as tk from TableChecker import TableChecker import pandas as pd df1 = pd.DataFrame({ 'org_code': ['A222', 'A252', 'B100019'], 'dummy_code': [222, 252, 100019], 'sub_key': [1,2,3], 'user_name': ['mary', 'john', 'david'], 'amount': [222, 313, 100019], }) df2= pd.DataFrame({ 'org_code': ['S6258', 'B100019'], 'dummy_code': [6258, 100019], 'sub_key': [4,3], 'user_name': ['peter', 'david'], 'amount': [2232, 126], }) org_columns = list(df1.keys()) result_columns = list(df1.keys()) result_columns.append('_merge') key_columns = ['org_code'] df_merge = pd.merge(df1[key_columns], df2[key_columns], how='outer', indicator=True) df_merge.set_index(key_columns, inplace=True) df_all = pd.concat([df1.set_index(key_columns), df2.set_index(key_columns)], axis='columns', keys=['df1', 'df2']) df_diff = df_all['df1'] != df_all['df2'] result = pd.concat([df_merge, df_diff], axis=1) compare_result = result.reset_index()[result_columns] final_1 = df_all['df1'].reset_index()[org_columns] final_2 = df_all['df2'].reset_index()[org_columns] ``` #### Problem description By modifying the line key_columns = ['org_code'] to change the key columns, it will have different result. 1) Error for single string data column: e.g., ['org_code'] or ['user_name'] 2) No error for single numeric data column: e.g., ['dummy_code'], ['sub_key'] or ['amount'] 3) No error for combined keys: e.g., ['org_code','sub_key'] ,['org_code','user_name'] or ['org_code','dummy_code','sub_key'] #### Expected Output The column name of index column in df_all should not be empty, it should contain the original column name. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.8.5.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United States.950 pandas : 1.1.2 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.3 setuptools : 49.6.0 Cython : None pytest : 5.4.2 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.18.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.1 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : 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/36855/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36855/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36856
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36856/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36856/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36856/events
https://github.com/pandas-dev/pandas/pull/36856
714,276,036
MDExOlB1bGxSZXF1ZXN0NDk3NDA0ODIx
36,856
DOC: blacken-docs doc/source/ecosystem.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/44519203?v=4", "events_url": "https://api.github.com/users/Meghana-12/events{/privacy}", "followers_url": "https://api.github.com/users/Meghana-12/followers", "following_url": "https://api.github.com/users/Meghana-12/following{/other_user}", "gists_url": "https://api.github.com/users/Meghana-12/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Meghana-12", "id": 44519203, "login": "Meghana-12", "node_id": "MDQ6VXNlcjQ0NTE5MjAz", "organizations_url": "https://api.github.com/users/Meghana-12/orgs", "received_events_url": "https://api.github.com/users/Meghana-12/received_events", "repos_url": "https://api.github.com/users/Meghana-12/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Meghana-12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Meghana-12/subscriptions", "type": "User", "url": "https://api.github.com/users/Meghana-12" }
[]
closed
false
null
[]
null
3
2020-10-04T09:41:10Z
2020-10-04T11:45:52Z
2020-10-04T11:45:43Z
CONTRIBUTOR
null
- [x] xref #36777 - [ ] tests added / passed - [x] 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/36856/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36856/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36856.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36856", "merged_at": "2020-10-04T11:45:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36856.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36856" }
https://api.github.com/repos/pandas-dev/pandas/issues/36857
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36857/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36857/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36857/events
https://github.com/pandas-dev/pandas/pull/36857
714,281,126
MDExOlB1bGxSZXF1ZXN0NDk3NDA4NTEx
36,857
DOC: doc/source/whatsnew
{ "avatar_url": "https://avatars.githubusercontent.com/u/44519203?v=4", "events_url": "https://api.github.com/users/Meghana-12/events{/privacy}", "followers_url": "https://api.github.com/users/Meghana-12/followers", "following_url": "https://api.github.com/users/Meghana-12/following{/other_user}", "gists_url": "https://api.github.com/users/Meghana-12/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Meghana-12", "id": 44519203, "login": "Meghana-12", "node_id": "MDQ6VXNlcjQ0NTE5MjAz", "organizations_url": "https://api.github.com/users/Meghana-12/orgs", "received_events_url": "https://api.github.com/users/Meghana-12/received_events", "repos_url": "https://api.github.com/users/Meghana-12/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Meghana-12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Meghana-12/subscriptions", "type": "User", "url": "https://api.github.com/users/Meghana-12" }
[ { "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": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
closed
false
null
[]
null
3
2020-10-04T10:13:38Z
2020-10-06T08:15:18Z
2020-10-05T12:58:10Z
CONTRIBUTOR
null
- [x] xref #36777 - [ ] tests added / passed - [x] 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/36857/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36857/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36857.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36857", "merged_at": "2020-10-05T12:58:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36857.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36857" }
https://api.github.com/repos/pandas-dev/pandas/issues/36858
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36858/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36858/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36858/events
https://github.com/pandas-dev/pandas/issues/36858
714,337,991
MDU6SXNzdWU3MTQzMzc5OTE=
36,858
DOC: the source link of CategoricalIndex's methods are wrong.
{ "avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4", "events_url": "https://api.github.com/users/junjunjunk/events{/privacy}", "followers_url": "https://api.github.com/users/junjunjunk/followers", "following_url": "https://api.github.com/users/junjunjunk/following{/other_user}", "gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/junjunjunk", "id": 26526439, "login": "junjunjunk", "node_id": "MDQ6VXNlcjI2NTI2NDM5", "organizations_url": "https://api.github.com/users/junjunjunk/orgs", "received_events_url": "https://api.github.com/users/junjunjunk/received_events", "repos_url": "https://api.github.com/users/junjunjunk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions", "type": "User", "url": "https://api.github.com/users/junjunjunk" }
[ { "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": "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": "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" } ]
open
false
null
[]
null
5
2020-10-04T15:27:55Z
2021-08-13T03:58:22Z
null
CONTRIBUTOR
null
#### Location of the documentation - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.add_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.rename_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.reorder_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.remove_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.remove_unused_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.set_categories.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.as_ordered.html - [ ] https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.as_unordered.html #### Documentation problem For example, in pandas.CategoricalIndex.add_categories, the source link jumps to the following source.This link is wrong. As far as I've observed, the above methods all jump to the same wrong link. https://github.com/pandas-dev/pandas/blob/40b2aa56c3779d0178069e8182dcc3bcdc102e57/pandas/core/accessor.py#L98-L99 The source link should jump to the following location. https://github.com/pandas-dev/pandas/blob/40daf00721f358105f744e8aad7b0c524d1c417b/pandas/core/arrays/categorical.py#L943 #### Suggested fix for documentation Correct the source link.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36858/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36858/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36859
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36859/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36859/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36859/events
https://github.com/pandas-dev/pandas/pull/36859
714,348,112
MDExOlB1bGxSZXF1ZXN0NDk3NDU5MTI0
36,859
REF/CLN: pandas/io/pytables.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4", "events_url": "https://api.github.com/users/ivanovmg/events{/privacy}", "followers_url": "https://api.github.com/users/ivanovmg/followers", "following_url": "https://api.github.com/users/ivanovmg/following{/other_user}", "gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ivanovmg", "id": 41443370, "login": "ivanovmg", "node_id": "MDQ6VXNlcjQxNDQzMzcw", "organizations_url": "https://api.github.com/users/ivanovmg/orgs", "received_events_url": "https://api.github.com/users/ivanovmg/received_events", "repos_url": "https://api.github.com/users/ivanovmg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions", "type": "User", "url": "https://api.github.com/users/ivanovmg" }
[ { "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": "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": "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-10-04T16:17:03Z
2020-10-07T09:44:10Z
2020-10-06T22:44:23Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Clean-up and minor refactor of ``pandas/io/pytables.py``. - Extract method ``_identify_group`` - Clean-up some docstrings (spacing) - Use suppress instead of try/except/pass - Format error message using dedent - Remove unnecessary empty lines as they compromise readability of some blocks
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36859/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36859/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36859.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36859", "merged_at": "2020-10-06T22:44:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36859.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36859" }
https://api.github.com/repos/pandas-dev/pandas/issues/36860
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36860/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36860/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36860/events
https://github.com/pandas-dev/pandas/issues/36860
714,351,261
MDU6SXNzdWU3MTQzNTEyNjE=
36,860
CI: Continuous benchmarking
{ "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": "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
closed
false
null
[]
null
3
2020-10-04T16:33:11Z
2020-10-08T21:13:31Z
2020-10-08T21:13:31Z
MEMBER
null
I think it would be helpful if pandas had a set of performance benchmarks to run automatically during every CI run (it looks like there is something for the asvs, but it seems they almost never actually run?). It would reduce some of the friction involved in manually running the asv suite and pasting results as comments, and also help prevent certain things from slipping by just not thinking to run benchmarks. There exists the pytest plugin pytest-benchmark which seems even more lightweight than asv, and appears to be what RAPIDS uses for a benchmark tool of their own https://github.com/rapidsai/benchmark. Could it be an option to have a GitHub Action that runs pytest-benchmark on every PR (I don't know a lot about the plugin, but I am assuming it could be configured to either take a delta between master and the given branch, as well as possibly between that branch and some baseline commit on master such as a major release)? It may also be possible to cache the result from master somewhere to prevent it from being rerun every time. What constitutes "failure" is another question, and maybe it's best to configure things to only warn on failure instead of making the whole run red (would help address flaky benchmarks as well). Also we would presumably need fine-grained control over the architecture used by GitHub to make sure it doesn't drift, and I'm not sure if that's possible.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36860/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36860/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36861
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36861/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36861/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36861/events
https://github.com/pandas-dev/pandas/issues/36861
714,351,609
MDU6SXNzdWU3MTQzNTE2MDk=
36,861
ENH: Rolling mode
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "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": "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
[]
null
3
2020-10-04T16:34:56Z
2021-11-15T00:35:36Z
2021-11-15T00:35:36Z
CONTRIBUTOR
null
#### Is your feature request related to a problem? I wish I could use pandas to do `df.rolling(window_size).mode()`. Similar to #12430. #### Describe the solution you'd like All rolling methods in pandas seem to be implemented in cython. I implemented a working draft for rolling mode in cython (I'm new to cython). Before continuing my implementation, I would like some feedback: 1. What type should mode expect? I assume that float64 would be best: handles NaNs and non-numeric object could be categorized and converted to floats. 2. `pd.DataFrame.mode` returns all possible modes. Is that something we would also expect from a rolling mode? It is probably much faster to return only one possible mode (the current draft could easily be extended for that: replace `output` with a cvector[clist[float]] and in the end convert it to a np.ndarray). 3. TODO: implement mode for '_variable' version. If I understand it correctly this is needed for `pd.DataFrame.expanding()`. #### Additional context ```cython # cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True # distutils: language = c++ from libcpp.vector cimport vector as cvector from libcpp.unordered_map cimport unordered_map from libcpp.list cimport list as clist from libcpp.pair cimport pair as cpair from libc.math cimport isnan cimport cython from cython.operator cimport dereference, postincrement, postdecrement import numpy as np cimport numpy as np ctypedef np.float_t DTYPE_FLOAT_t def rolling_mode_fixed(np.ndarray[DTYPE_FLOAT_t, ndim=1] values, const cython.int window_size, const cython.bint dropna): # https://cs.stackexchange.com/a/96768 cdef: cython.int N = values.size double NaN = float("NaN") np.ndarray[DTYPE_FLOAT_t, ndim=1] output = np.empty(N, dtype=np.float) cython.int largest_frequency, nan_count, i, frequency = 0 double value, old_value unordered_map[double, cython.int] get_frequency cvector[clist[double]] get_objects = cvector[clist[double]](window_size-1) cpair[double, cython.int] pair with nogil: # pre-allocate + 20% free space get_frequency.reserve(<int>(1.2 * window_size)) # new items always have a frequency of 1 pair.second = 1 # set NaN and initialize data structures for i in range(window_size): output[i] = NaN value = values[i] if isnan(value): # either skip NaNs or count them seperate nan_count += 1 continue # insert with frequency 1 or increment pair.first = value insert_pair = get_frequency.insert(pair) if not insert_pair.second: postincrement(dereference(insert_pair.first).second) frequency = dereference(insert_pair.first).second if frequency != 1: # remove form current set get_objects[frequency - 2].remove(value) # add to next set get_objects[frequency-1].push_back(value) # update largest frequency largest_frequency = max(frequency, largest_frequency) # populate first valid output if (dropna and largest_frequency != 0) or (largest_frequency >= nan_count): output[window_size - 1] = get_objects[largest_frequency - 1].front() # process for i in range(window_size, N): value = values[i] old_value = values[i - window_size] value_isnan = isnan(value) old_value_isnan = isnan(old_value) if (value == old_value) or (value_isnan and old_value_isnan): # no change output[i] = output[i-1] continue # decrement old value if old_value_isnan: nan_count -= 1 else: # find the existing key and decrement it find_pair = get_frequency.find(old_value) frequency = dereference(find_pair).second get_objects[frequency - 1].remove(old_value) if frequency > 1: postdecrement(dereference(find_pair).second) get_objects[frequency - 2].push_back(old_value) else: get_frequency.erase(find_pair) # increment new value if value_isnan: nan_count += 1 else: # insert with frequency 1 or increment pair.first = value insert_pair = get_frequency.insert(pair) if not insert_pair.second: postincrement(dereference(insert_pair.first).second) get_objects[dereference(insert_pair.first).second - 2].remove(value) get_objects[dereference(insert_pair.first).second - 1].push_back(value) # update largest set if (largest_frequency != window_size) and not get_objects[ largest_frequency ].empty(): # increased largest_frequency += 1 elif get_objects[largest_frequency-1].empty(): # decreased largest_frequency -= 1 # write output if (dropna and largest_frequency != 0) or (largest_frequency >= nan_count): output[i] = get_objects[largest_frequency - 1].front() else: output[i] = NaN return output ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36861/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36861/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36862
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36862/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36862/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36862/events
https://github.com/pandas-dev/pandas/pull/36862
714,354,205
MDExOlB1bGxSZXF1ZXN0NDk3NDYzNzQ1
36,862
DOC: make return type documentation of series methods consistent #35409
{ "avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4", "events_url": "https://api.github.com/users/junjunjunk/events{/privacy}", "followers_url": "https://api.github.com/users/junjunjunk/followers", "following_url": "https://api.github.com/users/junjunjunk/following{/other_user}", "gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/junjunjunk", "id": 26526439, "login": "junjunjunk", "node_id": "MDQ6VXNlcjI2NTI2NDM5", "organizations_url": "https://api.github.com/users/junjunjunk/orgs", "received_events_url": "https://api.github.com/users/junjunjunk/received_events", "repos_url": "https://api.github.com/users/junjunjunk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions", "type": "User", "url": "https://api.github.com/users/junjunjunk" }
[ { "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": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
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" }
4
2020-10-04T16:49:03Z
2020-10-15T06:09:08Z
2020-10-10T19:41:57Z
CONTRIBUTOR
null
- [x] closes #35409 - [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/36862/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36862/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36862.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36862", "merged_at": "2020-10-10T19:41:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36862.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36862" }
https://api.github.com/repos/pandas-dev/pandas/issues/36863
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36863/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36863/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36863/events
https://github.com/pandas-dev/pandas/pull/36863
714,361,737
MDExOlB1bGxSZXF1ZXN0NDk3NDY5MzQ2
36,863
CI: Show ipython directive errors
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "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-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" }
3
2020-10-04T17:29:04Z
2020-10-06T00:07:04Z
2020-10-06T00:06:59Z
MEMBER
null
Current output of ipython directive errors in CI is essentially a blank line, so adding a bit more to try to show what error is happening. ``` (pandas-dev) ➜ ~ grep -B1 "^<<<-------------------------------------------------------------------------$" sphinx.log <<<------------------------------------------------------------------------- ``` vs. ``` (pandas-dev) ➜ ~ grep -B10 "^<<<-------------------------------------------------------------------------$" sphinx.log >>>------------------------------------------------------------------------- Exception in /Users/danielsaxton/pandas/doc/source/user_guide/enhancingperf.rst at block ending on line 834 Specify :okexcept: as an option in the ipython:: block to suppress this message File "<ipython-input-66-d3ab2b9618fd>", line 1 df.query("strings == "a" and nums == 1") ^ SyntaxError: invalid syntax <<<------------------------------------------------------------------------- ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36863/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36863/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36863.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36863", "merged_at": "2020-10-06T00:06:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36863.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36863" }
https://api.github.com/repos/pandas-dev/pandas/issues/36864
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36864/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36864/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36864/events
https://github.com/pandas-dev/pandas/pull/36864
714,371,719
MDExOlB1bGxSZXF1ZXN0NDk3NDc2MzM2
36,864
CI: Update error message for np_dev
{ "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": "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-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
2
2020-10-04T18:20:23Z
2020-10-05T10:47:02Z
2020-10-04T22:41:02Z
MEMBER
null
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=44153&view=logs&jobId=eab14f69-13b6-5db7-daeb-7b778629410b&j=eab14f69-13b6-5db7-daeb-7b778629410b&t=ce687173-08c6-5301-838d-71b2dda24510
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36864/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36864/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36864.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36864", "merged_at": "2020-10-04T22:41:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36864.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36864" }
https://api.github.com/repos/pandas-dev/pandas/issues/36865
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36865/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36865/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36865/events
https://github.com/pandas-dev/pandas/pull/36865
714,373,149
MDExOlB1bGxSZXF1ZXN0NDk3NDc3NDUy
36,865
TST: insert 'match' to bare pytest raises in pandas/tests/tseries/off…
{ "avatar_url": "https://avatars.githubusercontent.com/u/53620269?v=4", "events_url": "https://api.github.com/users/krajatcl/events{/privacy}", "followers_url": "https://api.github.com/users/krajatcl/followers", "following_url": "https://api.github.com/users/krajatcl/following{/other_user}", "gists_url": "https://api.github.com/users/krajatcl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/krajatcl", "id": 53620269, "login": "krajatcl", "node_id": "MDQ6VXNlcjUzNjIwMjY5", "organizations_url": "https://api.github.com/users/krajatcl/orgs", "received_events_url": "https://api.github.com/users/krajatcl/received_events", "repos_url": "https://api.github.com/users/krajatcl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/krajatcl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krajatcl/subscriptions", "type": "User", "url": "https://api.github.com/users/krajatcl" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
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" }
12
2020-10-04T18:27:10Z
2020-10-11T19:21:32Z
2020-10-11T19:21:27Z
CONTRIBUTOR
null
…sets/test_offsets.py - [ ] ref https://github.com/pandas-dev/pandas/issues/30999 - [ ] 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/36865/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36865/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36865.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36865", "merged_at": "2020-10-11T19:21:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36865.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36865" }
https://api.github.com/repos/pandas-dev/pandas/issues/36866
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36866/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36866/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36866/events
https://github.com/pandas-dev/pandas/issues/36866
714,375,771
MDU6SXNzdWU3MTQzNzU3NzE=
36,866
BUG: rolling.apply substitutes for applied function
{ "avatar_url": "https://avatars.githubusercontent.com/u/193170?v=4", "events_url": "https://api.github.com/users/shaunc/events{/privacy}", "followers_url": "https://api.github.com/users/shaunc/followers", "following_url": "https://api.github.com/users/shaunc/following{/other_user}", "gists_url": "https://api.github.com/users/shaunc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shaunc", "id": 193170, "login": "shaunc", "node_id": "MDQ6VXNlcjE5MzE3MA==", "organizations_url": "https://api.github.com/users/shaunc/orgs", "received_events_url": "https://api.github.com/users/shaunc/received_events", "repos_url": "https://api.github.com/users/shaunc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shaunc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shaunc/subscriptions", "type": "User", "url": "https://api.github.com/users/shaunc" }
[ { "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": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
1
2020-10-04T18:40:45Z
2020-10-04T18:44:32Z
2020-10-04T18:44:32Z
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. --- **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 datetime import pandas as pd import numpy as np index = pd.date_range(datetime.datetime.now(), periods=5, freq="1s") ser = pd.Series(1, index=index) ser.rolling("2s").apply(np.sum, kwargs={"initial": 5}) ``` results in: ``` ValueError: the 'initial' parameter is not supported in the pandas implementation of sum() ``` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution] When I explicitly specify the numpy version of sum, pandas should not substitute it for me. #### Expected Output Sums in window with 5 added. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.8.1.final.0 python-bits : 64 OS : Darwin OS-release : 19.6.0 Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 19.2.3 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 : 2.11.2 IPython : 7.18.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 1.0.1 pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : None tables : 3.6.1 tabulate : None xarray : None xlrd : None xlwt : 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/36866/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36866/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36867
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36867/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36867/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36867/events
https://github.com/pandas-dev/pandas/pull/36867
714,379,641
MDExOlB1bGxSZXF1ZXN0NDk3NDgyMDc2
36,867
BUG: df.replace over pd.Period columns (#34871)
{ "avatar_url": "https://avatars.githubusercontent.com/u/9583514?v=4", "events_url": "https://api.github.com/users/samc1213/events{/privacy}", "followers_url": "https://api.github.com/users/samc1213/followers", "following_url": "https://api.github.com/users/samc1213/following{/other_user}", "gists_url": "https://api.github.com/users/samc1213/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/samc1213", "id": 9583514, "login": "samc1213", "node_id": "MDQ6VXNlcjk1ODM1MTQ=", "organizations_url": "https://api.github.com/users/samc1213/orgs", "received_events_url": "https://api.github.com/users/samc1213/received_events", "repos_url": "https://api.github.com/users/samc1213/repos", "site_admin": false, "starred_url": "https://api.github.com/users/samc1213/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samc1213/subscriptions", "type": "User", "url": "https://api.github.com/users/samc1213" }
[ { "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": "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": "01a886", "default": false, "description": "replace method", "id": 1652721180, "name": "replace", "node_id": "MDU6TGFiZWwxNjUyNzIxMTgw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace" } ]
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" }
21
2020-10-04T19:01:03Z
2020-11-17T01:31:42Z
2020-11-17T01:17:29Z
CONTRIBUTOR
null
- [x] closes #34871 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This commit ensures that PeriodArrays return False for _can_hold_element for any element that is not a pd.Period. This prevents upstream code from casting the dtype to object. Also un-xfail test written in #34904
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36867/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36867/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36867.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36867", "merged_at": "2020-11-17T01:17:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36867.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36867" }
https://api.github.com/repos/pandas-dev/pandas/issues/36868
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36868/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36868/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36868/events
https://github.com/pandas-dev/pandas/issues/36868
714,379,943
MDU6SXNzdWU3MTQzNzk5NDM=
36,868
conflict with PyPDF2?
{ "avatar_url": "https://avatars.githubusercontent.com/u/51902242?v=4", "events_url": "https://api.github.com/users/fdq09eca/events{/privacy}", "followers_url": "https://api.github.com/users/fdq09eca/followers", "following_url": "https://api.github.com/users/fdq09eca/following{/other_user}", "gists_url": "https://api.github.com/users/fdq09eca/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fdq09eca", "id": 51902242, "login": "fdq09eca", "node_id": "MDQ6VXNlcjUxOTAyMjQy", "organizations_url": "https://api.github.com/users/fdq09eca/orgs", "received_events_url": "https://api.github.com/users/fdq09eca/received_events", "repos_url": "https://api.github.com/users/fdq09eca/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fdq09eca/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fdq09eca/subscriptions", "type": "User", "url": "https://api.github.com/users/fdq09eca" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
3
2020-10-04T19:02:50Z
2020-10-17T13:13:31Z
2020-10-17T13:13:31Z
NONE
null
I am not sure if it is a bug of pandas or mine. but when I test my code I have the following peculiar error: **an error that disappears if I run again the exact same line of code of pandas** After I successfully ran my code, I try the following block of code ``` import pandas as pd df = pd.DataFrame([['a', 'b', 'c'], ['d', '6', '8']]) df[df.apply(lambda x: x.str.contains('e')).any()] ``` and it hit an error, strange is that the code block behaves as expected if I try it again after it hit the error, see below ``` ~/Documents/cs_project/toc(master*) » python3 -i corp_gov_report.py macone@Macs-MacBook-Pro Bounding box (Decimal('124.724'), Decimal('46.220'), Decimal('752.754'), Decimal('753.770')) is not fully within parent page bounding box (Decimal('0'), Decimal('0'), Decimal('595.276'), Decimal('807.874')) Bounding box (Decimal('124.724'), Decimal('46.220'), Decimal('752.754'), Decimal('753.770')) is not fully within parent page bounding box (Decimal('0'), Decimal('0'), Decimal('595.276'), Decimal('807.874')) currency HK$’000 5 Audit and audit related services 1,800 8 financial statements 600 Independent Auditor’s Remuneration (iv) 獨立核數師之酬金 During the year, the remuneration paid or payable to the 於本年度,已付或應付予獨立核數師安 independent auditor, Ernst & Young, is set out as follows: 永會計師事務所之酬金載列如下: Services rendered HK$’000 所提供服務 千港元 Audit and audit related services 審核及審核相關服務 1,800 Non-audit services 非審核服務 Review of interim condensed consolidated 審閱中期簡明綜合財務報告 financial statements 600 Tax advisory services 稅務諮詢服務 113 >>> df = pd.DataFrame([['a', 'b', 'c'], ['d', '6', '8']]) >>> df[df.apply(lambda x: x.str.contains('e')).any()] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2890, in __getitem__ return self._getitem_bool_array(key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2933, in _getitem_bool_array stacklevel=3, File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range >>> df[df.apply(lambda x: x.str.contains('e')).any()] Empty DataFrame Columns: [0, 1, 2] Index: [] ``` but if i ran `df[df.apply(lambda x: x.str.contains('e')).any()]` again, the error appear again, but if i trid again, it disappear ``` >>> df[df.apply(lambda x: x.str.contains('e')).any()] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2890, in __getitem__ return self._getitem_bool_array(key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2933, in _getitem_bool_array stacklevel=3, File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range >>> df[df.apply(lambda x: x.str.contains('e')).any()] Empty DataFrame Columns: [0, 1, 2] Index: [] >>> df[df.apply(lambda x: x.str.contains('e')).any()] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2890, in __getitem__ return self._getitem_bool_array(key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2933, in _getitem_bool_array stacklevel=3, File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range >>> df[df.apply(lambda x: x.str.contains('e')).any()] Empty DataFrame Columns: [0, 1, 2] Index: [] >>> df[df.apply(lambda x: x.str.contains('e')).any()] Traceback (most recent call last): File "<stdin>", line 1, in <module> ``` see here for the image: ![image](https://user-images.githubusercontent.com/51902242/95024823-25a12900-06b8-11eb-9762-8a50212d73e8.png) In addition, I encounter this error when I was trying to do this during the project development. ``` @property def df_clean_table(self): df_filtered_table = self.df_filtered_table currency_cols = self.get_cond_cols(df_filtered_table, self.currency_element) financial_num_cols = self.get_cond_cols(df_filtered_table, self.financial_num_element) currency_rows= self.get_cond_rows(df_filtered_table, self.currency_element) year_rows = self.get_cond_rows(df_filtered_table, self.year_element) currency_row_idx = df_filtered_table.loc[currency_rows, financial_num_cols].index currency_row = df_filtered_table.loc[currency_row_idx] currency_header = currency_row[currency_row.apply(self.currency_element, axis=1)].fillna('').values.flatten() year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index year_row = df_filtered_table.loc[year_row_idx] year_header = year_row[year_row.apply(self.year_element, axis=1)].fillna('').values.flatten() if year_header: df_filtered_table.columns = pd.MultiIndex.from_arrays([year_header, currency_header], names = ['year', 'currency']) else: df_filtered_table.columns = pd.MultiIndex.from_arrays([currency_header], names=['currency']) return df_filtered_table.drop(year_row_idx.append(currency_row_idx)) ``` see below ![image](https://user-images.githubusercontent.com/51902242/95023884-246cfd80-06b2-11eb-883e-f2ae57ebf512.png) but where I was debugging, I tried: ``` df_filtered_table = table.df_filtered_table year_rows = table.get_cond_rows(df_filtered_table, table.year_element) currency_cols = table.get_cond_cols(df_filtered_table, table.currency_element) year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index year_row = df_filtered_table.loc[year_row_idx] year_header = year_row[year_row.apply(table.year_element, axis=1)].fillna('').values.flatten() if not year_header: print('here is the error!') if not year_header: print('here no the error!') ``` see below: ![image](https://user-images.githubusercontent.com/51902242/95024258-79117800-06b4-11eb-89cf-99ba4deb4bc1.png) here is the full error and the debugging.. ``` ~/Documents/cs_project/toc(master*) » python3 -i corp_gov_report.py macone@Macs-MacBook-Pro Bounding box (Decimal('124.724'), Decimal('46.220'), Decimal('752.754'), Decimal('753.770')) is not fully within parent page bounding box (Decimal('0'), Decimal('0'), Decimal('595.276'), Decimal('807.874')) Bounding box (Decimal('124.724'), Decimal('46.220'), Decimal('752.754'), Decimal('753.770')) is not fully within parent page bounding box (Decimal('0'), Decimal('0'), Decimal('595.276'), Decimal('807.874')) Traceback (most recent call last): File "corp_gov_report.py", line 161, in <module> print(table.df_clean_table) File "corp_gov_report.py", line 128, in df_clean_table if year_header: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range >>> df_filtered_table = table.df_filtered_table year_rows = table.get_cond_rows(df_filtered_table, table.year_element) currency_cols = table.get_cond_cols(df_filtered_table, table.currency_element) year_row_idx = df_filtered_table.loc[year_rows, currency>>> year_rows = table.get_cond_rows(df_filtered_table, table.year_element) currency_cols = table.get_cond_cols(df_filtered_table, table.currency_element) year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index year_row = df_filtered_table.loc[year_row_idx] year_header = year_row[year_row.apply(ta>>> currency_cols = table.get_cond_cols(df_filtered_table, table.currency_element) year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index year_row = df_filtered_table.loc[year_row_idx] year_header = year_row[year_row.apply(table.year_element, axis=1)].fillna('').values.flatt>>> year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index >>> year_row = df_filtered_table.loc[year_row_idx] >>> year_header = year_row[year_row.apply(table.year_element, axis=1)].fillna('').values.flatten() if not year_header: print('here is the error!') if not year_header: print('here no the>>> if not year_header: ... print('here is the error!') ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range >>> if not year_header: ... print('here no the error!') ... here no the error! ``` you may see the error disappears when I try again to check the if-clause:`if not year_header`. Here is the error message ``` Traceback (most recent call last): File "corp_gov_report.py", line 161, in <module> print(table.df_clean_table) File "corp_gov_report.py", line 128, in df_clean_table if year_header: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning file.write(formatWarning(message, category, filename, lineno, line)) File "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name IndexError: list index out of range ``` The error message is very similar to the replicated example I showed at the beginning, except the following lines. ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2890, in __getitem__ return self._getitem_bool_array(key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 2933, in _getitem_bool_array stacklevel=3, ``` If any worth, the following is my developing project, you may see the full project in this [repo](https://github.com/fdq09eca/cs-project/tree/master/toc) (the file hitting the error is `corp_gov_report.py` and its content is shown as below) ``` from pdf import PDF, Outline, ReportOutline, PageWithSection from helper import flatten import datetime import re import pandas as pd class CorporateGovReport(ReportOutline): title_regex = r'^(?=.*report).*corporate governance.*$' def __init__(self, outline): super().__init__(outline) @property def audit_fee(self): return AuditFee.retrieve(self.pages) class AuditFee(PageWithSection): section_regex = r"^(?!.*Nomination|.*Report)(?=.*REMUNERATION|.*independent|.*external|.*Accountability).*auditor.*$" def __init__(self, pages): super().__init__(pages) @property def sections(self): return flatten([page.get_section(AuditFee.section_regex) for page in self.pages]) @property def tables(self): return [AuditFeeTable.retrieve(section) for section in self.sections] class AuditFeeTable: setting = { "vertical_strategy": "text", "horizontal_strategy": "text" } currency_regex = 'HK' financial_num_regex = '\d,?\d*' year_regex = '|'.join(map(str, range(int(datetime.datetime.now().year) - 2, int(datetime.datetime.now().year) + 1))) def __init__(self, section): self.section = section @classmethod def retrieve(cls, section): return cls(section.page) @classmethod def set_year_regex(cls, current_year: int): cls.year_regex = '|'.join( map(str, range(current_year - 2, current_year + 1))) print(f'Set {cls.__name__}.year_regex to {cls.year_regex}') @property def raw_table(self): return self.section.extract_table(AuditFeeTable.setting) @property def df_raw_table(self): df = pd.DataFrame(self.raw_table) return df @staticmethod def currency_element(x): return x.str.contains(AuditFeeTable.currency_regex) @staticmethod def financial_num_element(x): return x.str.contains(AuditFeeTable.financial_num_regex) @staticmethod def year_element(x): return x.str.contains(AuditFeeTable.year_regex) @staticmethod def eng_element(x): return x.str.contains(r'[A-Za-z0-9]+') @staticmethod def get_cond_cols(df, element_cond_func): return df.apply(element_cond_func).any() @staticmethod def get_cond_rows(df, element_cond_func): return df.apply(element_cond_func).any(axis=1) @property def df_fee(self): df = self.df_raw_table currency_cols = self.get_cond_cols(df, self.currency_element) currency_rows = self.get_cond_rows(df, self.currency_element) financial_num_rows = self.get_cond_rows(df, self.financial_num_element) year_rows = self.get_cond_rows(df, self.year_element) df_fee = df.loc[(financial_num_rows|year_rows) , currency_cols] return df_fee @property def df_filtered_table(self): df_fee = self.df_fee df_filtered_table = self.df_raw_table.iloc[df_fee.index] df_filtered_table = df_filtered_table.loc[:, self.get_cond_cols(df_filtered_table, self.eng_element)] return df_filtered_table @property def df_clean_table(self): df_filtered_table = self.df_filtered_table currency_cols = self.get_cond_cols(df_filtered_table, self.currency_element) financial_num_cols = self.get_cond_cols(df_filtered_table, self.financial_num_element) currency_rows= self.get_cond_rows(df_filtered_table, self.currency_element) year_rows = self.get_cond_rows(df_filtered_table, self.year_element) currency_row_idx = df_filtered_table.loc[currency_rows, financial_num_cols].index currency_row = df_filtered_table.loc[currency_row_idx] currency_header = currency_row[currency_row.apply(self.currency_element, axis=1)].fillna('') year_row_idx = df_filtered_table.loc[year_rows, currency_cols].index year_row = df_filtered_table.loc[year_row_idx] year_header = year_row[year_row.apply(self.year_element, axis=1)].fillna('') if not year_header.empty and not currency_header.enpty: df_filtered_table.columns = pd.MultiIndex.from_arrays([year_header.iloc[0], currency_header.iloc[0]], names = ['year', 'currency']) else: df_filtered_table.columns = pd.MultiIndex.from_arrays([currency_header.iloc[0]], names=['currency']) return df_filtered_table.drop(year_row_idx.append(currency_row_idx)) @property def currency(self): pass @property def currency_unit(self): pass @property def total(self): pass def __repr__(self): return f'{self.__class__.__name__} - {self.section}' if __name__ == '__main__': url, p = 'https://www1.hkexnews.hk/listedco/listconews/sehk/2020/0721/2020072100713.pdf', 61 # url, p = 'https://www1.hkexnews.hk/listedco/listconews/sehk/2020/0721/2020072100653.pdf', 94 pdf = PDF.create(url) corp_gov_report = pdf.get_outline(CorporateGovReport.title_regex) corp_gov_report = CorporateGovReport.create(corp_gov_report[0]) page = corp_gov_report.audit_fee.pages[0] sec = corp_gov_report.audit_fee.sections[0] table = corp_gov_report.audit_fee.tables[0] print(table.df_clean_table) print(sec.text) # print(corp_gov_report.pages) # page = pdf. ``` here are the dependencies ``` ~/Documents/cs_project/toc(master*) » pip3 freeze chardet==3.0.4 numpy==1.19.1 pandas==1.1.0 pdfminer.six==20200517 pdfplumber==0.5.23 Pillow==7.2.0 pycryptodome==3.9.8 PyPDF2==1.26.0 python-dateutil==2.8.1 pytz==2020.1 six==1.15.0 sortedcontainers==2.2.2 Wand==0.6.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/36868/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36868/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36869
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36869/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36869/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36869/events
https://github.com/pandas-dev/pandas/pull/36869
714,401,677
MDExOlB1bGxSZXF1ZXN0NDk3NDk4MzQw
36,869
DOC: Distinguish between different types of boolean indexing #10492
{ "avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4", "events_url": "https://api.github.com/users/junjunjunk/events{/privacy}", "followers_url": "https://api.github.com/users/junjunjunk/followers", "following_url": "https://api.github.com/users/junjunjunk/following{/other_user}", "gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/junjunjunk", "id": 26526439, "login": "junjunjunk", "node_id": "MDQ6VXNlcjI2NTI2NDM5", "organizations_url": "https://api.github.com/users/junjunjunk/orgs", "received_events_url": "https://api.github.com/users/junjunjunk/received_events", "repos_url": "https://api.github.com/users/junjunjunk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions", "type": "User", "url": "https://api.github.com/users/junjunjunk" }
[ { "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": "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" }, { "color": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
closed
false
null
[]
null
3
2020-10-04T21:00:55Z
2020-10-15T06:09:22Z
2020-10-08T01:23:14Z
CONTRIBUTOR
null
- [x] closes #10492 - [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/36869/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36869/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36869.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36869", "merged_at": "2020-10-08T01:23:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36869.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36869" }
https://api.github.com/repos/pandas-dev/pandas/issues/36870
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36870/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36870/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36870/events
https://github.com/pandas-dev/pandas/pull/36870
714,419,898
MDExOlB1bGxSZXF1ZXN0NDk3NTExODAz
36,870
TST: xfailed arithmetic 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": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "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" }
2
2020-10-04T22:56:03Z
2020-10-06T22:07:35Z
2020-10-06T22:06:03Z
MEMBER
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/36870/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36870/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36870.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36870", "merged_at": "2020-10-06T22:06:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36870.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36870" }
https://api.github.com/repos/pandas-dev/pandas/issues/36871
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36871/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36871/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36871/events
https://github.com/pandas-dev/pandas/pull/36871
714,426,676
MDExOlB1bGxSZXF1ZXN0NDk3NTE2OTI3
36,871
REF: IntervalIndex.equals defer to IntervalArray.equals
{ "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": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" } ]
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" }
0
2020-10-04T23:34:49Z
2020-10-06T23:10:30Z
2020-10-06T22:52:57Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Small behavior change in that `interval_index.equals(series[interval])` will now return False, matching other Index subclasses.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36871/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36871/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36871.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36871", "merged_at": "2020-10-06T22:52:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36871.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36871" }
https://api.github.com/repos/pandas-dev/pandas/issues/36872
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36872/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36872/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36872/events
https://github.com/pandas-dev/pandas/pull/36872
714,464,659
MDExOlB1bGxSZXF1ZXN0NDk3NTQ1NDg3
36,872
PERF: Improve RollingGroupby.count
{ "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": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "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" }
0
2020-10-05T02:27:35Z
2020-10-05T16:52:34Z
2020-10-05T13:01:38Z
MEMBER
null
- [x] closes #35625 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``` In [1]: import pandas as pd ...: ...: # Generate sample df ...: df = pd.DataFrame({'column1': range(600), 'group': 5*['l'+str(i) for i in range(120)]}) ...: ...: # sort by group for easy/efficient joining of new columns to df ...: df=df.sort_values('group',kind='mergesort').reset_index(drop=True) In [2]: %timeit df['mean']=df.groupby('group').rolling(3,min_periods=1)['column1'].mean().values 5.59 ms ± 310 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) In [3]: %timeit df['sum']=df.groupby('group').rolling(3,min_periods=1)['column1'].sum().values ...: 5.34 ms ± 343 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) In [4]: %timeit df['count']=df.groupby('group').rolling(3,min_periods=1)['column1'].count().values ...: 4.97 ms ± 51.7 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36872/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36872/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36872.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36872", "merged_at": "2020-10-05T13:01:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36872.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36872" }
https://api.github.com/repos/pandas-dev/pandas/issues/36873
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36873/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36873/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36873/events
https://github.com/pandas-dev/pandas/pull/36873
714,469,456
MDExOlB1bGxSZXF1ZXN0NDk3NTQ5MjAy
36,873
REF: dont consolidate in is_mixed_type
{ "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-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" }
0
2020-10-05T02:44:21Z
2020-10-08T01:25:21Z
2020-10-08T01:21:41Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Avoid copies, side-effects.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36873/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36873/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36873.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36873", "merged_at": "2020-10-08T01:21:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36873.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36873" }
https://api.github.com/repos/pandas-dev/pandas/issues/36874
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36874/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36874/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36874/events
https://github.com/pandas-dev/pandas/issues/36874
714,487,679
MDU6SXNzdWU3MTQ0ODc2Nzk=
36,874
DOC: GL01 errors in shared_docs.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/20255031?v=4", "events_url": "https://api.github.com/users/Iqrar99/events{/privacy}", "followers_url": "https://api.github.com/users/Iqrar99/followers", "following_url": "https://api.github.com/users/Iqrar99/following{/other_user}", "gists_url": "https://api.github.com/users/Iqrar99/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Iqrar99", "id": 20255031, "login": "Iqrar99", "node_id": "MDQ6VXNlcjIwMjU1MDMx", "organizations_url": "https://api.github.com/users/Iqrar99/orgs", "received_events_url": "https://api.github.com/users/Iqrar99/received_events", "repos_url": "https://api.github.com/users/Iqrar99/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Iqrar99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Iqrar99/subscriptions", "type": "User", "url": "https://api.github.com/users/Iqrar99" }
[ { "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": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
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" }
0
2020-10-05T03:49:00Z
2020-10-16T01:32:19Z
2020-10-16T01:32:19Z
CONTRIBUTOR
null
#### Location of the documentation [`shared_docs.py`](https://github.com/pandas-dev/pandas/blob/master/pandas/core/shared_docs.py) https://github.com/pandas-dev/pandas/blob/32d79ef46621de51e13732690c2e52566a5c67b6/pandas/core/shared_docs.py#L6-L8 https://github.com/pandas-dev/pandas/blob/32d79ef46621de51e13732690c2e52566a5c67b6/pandas/core/shared_docs.py#L48-L50 https://github.com/pandas-dev/pandas/blob/32d79ef46621de51e13732690c2e52566a5c67b6/pandas/core/shared_docs.py#L77-L79 https://github.com/pandas-dev/pandas/blob/32d79ef46621de51e13732690c2e52566a5c67b6/pandas/core/shared_docs.py#L146-L148 https://github.com/pandas-dev/pandas/blob/32d79ef46621de51e13732690c2e52566a5c67b6/pandas/core/shared_docs.py#L260-L262 #### Documentation problem GL01 pandas docstring errors. `Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between.` #### Suggested fix for documentation It's really unnecessary using `\` to break the line when using `"""` as the docstring. It also treats the next line as the same line. Remove the `\` instead.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36874/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36874/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36875
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36875/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36875/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36875/events
https://github.com/pandas-dev/pandas/pull/36875
714,487,794
MDExOlB1bGxSZXF1ZXN0NDk3NTYzNTI4
36,875
DOC: Fix GL01 docstring errors in some functions
{ "avatar_url": "https://avatars.githubusercontent.com/u/20255031?v=4", "events_url": "https://api.github.com/users/Iqrar99/events{/privacy}", "followers_url": "https://api.github.com/users/Iqrar99/followers", "following_url": "https://api.github.com/users/Iqrar99/following{/other_user}", "gists_url": "https://api.github.com/users/Iqrar99/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Iqrar99", "id": 20255031, "login": "Iqrar99", "node_id": "MDQ6VXNlcjIwMjU1MDMx", "organizations_url": "https://api.github.com/users/Iqrar99/orgs", "received_events_url": "https://api.github.com/users/Iqrar99/received_events", "repos_url": "https://api.github.com/users/Iqrar99/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Iqrar99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Iqrar99/subscriptions", "type": "User", "url": "https://api.github.com/users/Iqrar99" }
[ { "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-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" }
2
2020-10-05T03:49:23Z
2020-10-16T01:32:24Z
2020-10-16T01:32:19Z
CONTRIBUTOR
null
- [x] fixes #36874 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry There are some GL01 pandas docstring errors in `shared_docs.py`. ``` GL01 Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between. ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36875/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36875/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36875.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36875", "merged_at": "2020-10-16T01:32:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36875.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36875" }
https://api.github.com/repos/pandas-dev/pandas/issues/36876
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36876/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36876/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36876/events
https://github.com/pandas-dev/pandas/pull/36876
714,493,564
MDExOlB1bGxSZXF1ZXN0NDk3NTY3ODU2
36,876
BUG: in DataFrame.reset_index() only call maybe_upcast_putmask with ndarrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "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" }
5
2020-10-05T04:10:06Z
2020-10-11T20:05:50Z
2020-10-11T20:01:58Z
MEMBER
null
- [x] closes #24206 - [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/36876/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36876/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36876.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36876", "merged_at": "2020-10-11T20:01:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36876.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36876" }
https://api.github.com/repos/pandas-dev/pandas/issues/36877
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36877/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36877/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36877/events
https://github.com/pandas-dev/pandas/pull/36877
714,590,639
MDExOlB1bGxSZXF1ZXN0NDk3NjUwMTkz
36,877
CLN: Remove the duplicate configuration of flake8-rst in setup.cfg
{ "avatar_url": "https://avatars.githubusercontent.com/u/40813941?v=4", "events_url": "https://api.github.com/users/aniaan/events{/privacy}", "followers_url": "https://api.github.com/users/aniaan/followers", "following_url": "https://api.github.com/users/aniaan/following{/other_user}", "gists_url": "https://api.github.com/users/aniaan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aniaan", "id": 40813941, "login": "aniaan", "node_id": "MDQ6VXNlcjQwODEzOTQx", "organizations_url": "https://api.github.com/users/aniaan/orgs", "received_events_url": "https://api.github.com/users/aniaan/received_events", "repos_url": "https://api.github.com/users/aniaan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aniaan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aniaan/subscriptions", "type": "User", "url": "https://api.github.com/users/aniaan" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
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-10-05T07:24:23Z
2020-10-05T08:17:31Z
2020-10-05T08:05:51Z
CONTRIBUTOR
null
Remove duplicate `ignore = E203` configuration in setup.cfg[flake8-rst]
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36877/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36877/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36877.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36877", "merged_at": "2020-10-05T08:05:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36877.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36877" }
https://api.github.com/repos/pandas-dev/pandas/issues/36878
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36878/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36878/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36878/events
https://github.com/pandas-dev/pandas/pull/36878
714,613,524
MDExOlB1bGxSZXF1ZXN0NDk3NjY4OTUy
36,878
New branch
{ "avatar_url": "https://avatars.githubusercontent.com/u/20220516?v=4", "events_url": "https://api.github.com/users/skorani/events{/privacy}", "followers_url": "https://api.github.com/users/skorani/followers", "following_url": "https://api.github.com/users/skorani/following{/other_user}", "gists_url": "https://api.github.com/users/skorani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/skorani", "id": 20220516, "login": "skorani", "node_id": "MDQ6VXNlcjIwMjIwNTE2", "organizations_url": "https://api.github.com/users/skorani/orgs", "received_events_url": "https://api.github.com/users/skorani/received_events", "repos_url": "https://api.github.com/users/skorani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/skorani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skorani/subscriptions", "type": "User", "url": "https://api.github.com/users/skorani" }
[ { "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
3
2020-10-05T07:59:24Z
2020-10-06T08:12:48Z
2020-10-06T08:12:47Z
NONE
null
- [ ] ref #36777 - [ ] 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/36878/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36878/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36878.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36878", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36878.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36878" }
https://api.github.com/repos/pandas-dev/pandas/issues/36879
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36879/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36879/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36879/events
https://github.com/pandas-dev/pandas/issues/36879
714,620,781
MDU6SXNzdWU3MTQ2MjA3ODE=
36,879
Update flake8 to 3.8.4 in pre-commit-config.yaml
{ "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": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/41241424?v=4", "events_url": "https://api.github.com/users/Tazminia/events{/privacy}", "followers_url": "https://api.github.com/users/Tazminia/followers", "following_url": "https://api.github.com/users/Tazminia/following{/other_user}", "gists_url": "https://api.github.com/users/Tazminia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tazminia", "id": 41241424, "login": "Tazminia", "node_id": "MDQ6VXNlcjQxMjQxNDI0", "organizations_url": "https://api.github.com/users/Tazminia/orgs", "received_events_url": "https://api.github.com/users/Tazminia/received_events", "repos_url": "https://api.github.com/users/Tazminia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tazminia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tazminia/subscriptions", "type": "User", "url": "https://api.github.com/users/Tazminia" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/41241424?v=4", "events_url": "https://api.github.com/users/Tazminia/events{/privacy}", "followers_url": "https://api.github.com/users/Tazminia/followers", "following_url": "https://api.github.com/users/Tazminia/following{/other_user}", "gists_url": "https://api.github.com/users/Tazminia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tazminia", "id": 41241424, "login": "Tazminia", "node_id": "MDQ6VXNlcjQxMjQxNDI0", "organizations_url": "https://api.github.com/users/Tazminia/orgs", "received_events_url": "https://api.github.com/users/Tazminia/received_events", "repos_url": "https://api.github.com/users/Tazminia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tazminia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tazminia/subscriptions", "type": "User", "url": "https://api.github.com/users/Tazminia" } ]
null
1
2020-10-05T08:09:45Z
2020-10-05T10:15:12Z
2020-10-05T10:15:12Z
MEMBER
null
Steps here are: - upgrade flake8 in `.pre-commit-config.yaml` - run `pre-commit run flake8 --all` If everything passes, open a PR. If there's some error, let us know Comment `take` if you want to work on this
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36879/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36879/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36880
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36880/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36880/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36880/events
https://github.com/pandas-dev/pandas/issues/36880
714,680,087
MDU6SXNzdWU3MTQ2ODAwODc=
36,880
BUG: any() and all() behavior on string series is different from python
{ "avatar_url": "https://avatars.githubusercontent.com/u/26767607?v=4", "events_url": "https://api.github.com/users/ThewBear/events{/privacy}", "followers_url": "https://api.github.com/users/ThewBear/followers", "following_url": "https://api.github.com/users/ThewBear/following{/other_user}", "gists_url": "https://api.github.com/users/ThewBear/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ThewBear", "id": 26767607, "login": "ThewBear", "node_id": "MDQ6VXNlcjI2NzY3NjA3", "organizations_url": "https://api.github.com/users/ThewBear/orgs", "received_events_url": "https://api.github.com/users/ThewBear/received_events", "repos_url": "https://api.github.com/users/ThewBear/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ThewBear/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ThewBear/subscriptions", "type": "User", "url": "https://api.github.com/users/ThewBear" }
[ { "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": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
4
2020-10-05T09:32:57Z
2020-10-08T14:15:13Z
2020-10-08T14:15: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. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python pd.Series(["kkkk", "llll"]).any() # "kkkk" any(["kkkk", "llll"]) # True pd.Series(["kkkk", "llll"]).all() # "llll" all(["kkkk", "llll"]) # True ``` #### Problem description Python returns boolean not the value. So we should follow that. https://stackoverflow.com/questions/10180344/why-does-python-any-return-a-bool-instead-of-the-value #### Expected Output The expected behavior is to match `any` and `all` built-in functions. https://docs.python.org/3/library/functions.html#any ```python def any(iterable): for element in iterable: if element: return True return False ``` https://docs.python.org/3/library/functions.html#all ```python def all(iterable): for element in iterable: if not element: return False return True ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.7.8.final.0 python-bits : 64 OS : Linux OS-release : 4.19.112+ Version : #⁠1 SMP Fri Sep 4 12:06:06 PDT 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200712 Cython : None pytest : None 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.16.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.18 tables : None tabulate : None xarray : None xlrd : None xlwt : 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/36880/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36880/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36881
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36881/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36881/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36881/events
https://github.com/pandas-dev/pandas/issues/36881
714,689,290
MDU6SXNzdWU3MTQ2ODkyOTA=
36,881
Why prompt me “name 'pd' is not defined”
{ "avatar_url": "https://avatars.githubusercontent.com/u/6410591?v=4", "events_url": "https://api.github.com/users/syejing/events{/privacy}", "followers_url": "https://api.github.com/users/syejing/followers", "following_url": "https://api.github.com/users/syejing/following{/other_user}", "gists_url": "https://api.github.com/users/syejing/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/syejing", "id": 6410591, "login": "syejing", "node_id": "MDQ6VXNlcjY0MTA1OTE=", "organizations_url": "https://api.github.com/users/syejing/orgs", "received_events_url": "https://api.github.com/users/syejing/received_events", "repos_url": "https://api.github.com/users/syejing/repos", "site_admin": false, "starred_url": "https://api.github.com/users/syejing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/syejing/subscriptions", "type": "User", "url": "https://api.github.com/users/syejing" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
5
2020-10-05T09:46:37Z
2020-10-05T09:58:42Z
2020-10-05T09:57:08Z
NONE
null
### Question about pandas I have customized a Python interpreter, on which I try to run pandas's apply method, but when executing this method, there will be an exception. I don't know why, who knows why ```python [1] import pandas as pd [2] titanic = pd.read_csv('../data/titanic.csv') [3] def not_null_count(columns): return len(columns[pd.isnull(columns)]) [4] res = titanic.apply(not_null_count) [5]print(res) run_code: comp_code = compile(code, '<zmq-kernel>', 'single') if comp_code: exec(comp_code, self.user_global_ns, self.user_ns) ``` File "<zmq-kernel>", line 1, in <module> File "/usr/local/anaconda3/lib/python3.8/site-packages/pandas/core/frame.py", line 6878, in apply return op.get_result() File "/usr/local/anaconda3/lib/python3.8/site-packages/pandas/core/apply.py", line 186, in get_result return self.apply_standard() File "/usr/local/anaconda3/lib/python3.8/site-packages/pandas/core/apply.py", line 295, in apply_standard result = libreduction.compute_reduction( File "pandas/_libs/reduction.pyx", line 620, in pandas._libs.reduction.compute_reduction File "pandas/_libs/reduction.pyx", line 128, in pandas._libs.reduction.Reducer.get_result File "<zmq-kernel>", line 2, in not_null_count NameError: name 'pd' is not defined
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36881/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36881/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36882
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36882/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36882/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36882/events
https://github.com/pandas-dev/pandas/pull/36882
714,700,891
MDExOlB1bGxSZXF1ZXN0NDk3NzM4ODc2
36,882
upgrade flake8 to 3.8.4 #36879
{ "avatar_url": "https://avatars.githubusercontent.com/u/41241424?v=4", "events_url": "https://api.github.com/users/Tazminia/events{/privacy}", "followers_url": "https://api.github.com/users/Tazminia/followers", "following_url": "https://api.github.com/users/Tazminia/following{/other_user}", "gists_url": "https://api.github.com/users/Tazminia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tazminia", "id": 41241424, "login": "Tazminia", "node_id": "MDQ6VXNlcjQxMjQxNDI0", "organizations_url": "https://api.github.com/users/Tazminia/orgs", "received_events_url": "https://api.github.com/users/Tazminia/received_events", "repos_url": "https://api.github.com/users/Tazminia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tazminia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tazminia/subscriptions", "type": "User", "url": "https://api.github.com/users/Tazminia" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" }, { "color": "d80222", "default": false, "description": "", "id": 2402564166, "name": "hacktoberfest-accepted", "node_id": "MDU6TGFiZWwyNDAyNTY0MTY2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted" } ]
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" }
5
2020-10-05T10:03:21Z
2020-10-08T12:47:02Z
2020-10-05T10:15:12Z
CONTRIBUTOR
null
closes #36879 Here are the logs after the upgrade to 3.8.4: ```console (base) root@33d4c5d14a5b:/home/pandas-tazminia# pre-commit run flake8 --all [INFO] Initializing environment for https://github.com/python/black. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8:flake8-comprehensions>=3.1.0. [INFO] Initializing environment for https://github.com/PyCQA/isort. [INFO] Initializing environment for https://github.com/asottile/pyupgrade. [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks. [INFO] Initializing environment for https://github.com/asottile/yesqa. [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... flake8...................................................................Passed flake8-pyx...............................................................Passed flake8-pxd...............................................................Passed ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36882/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36882/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36882.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36882", "merged_at": "2020-10-05T10:15:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36882.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36882" }
https://api.github.com/repos/pandas-dev/pandas/issues/36883
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36883/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36883/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36883/events
https://github.com/pandas-dev/pandas/pull/36883
714,712,529
MDExOlB1bGxSZXF1ZXN0NDk3NzQ4NDc2
36,883
DOC: sync release notes on 1.1.x with master
{ "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": "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-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
0
2020-10-05T10:20:49Z
2020-10-05T12:04:47Z
2020-10-05T12:04:41Z
MEMBER
null
xref #36845
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36883/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36883/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36883.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36883", "merged_at": "2020-10-05T12:04:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36883.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36883" }
https://api.github.com/repos/pandas-dev/pandas/issues/36884
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36884/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36884/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36884/events
https://github.com/pandas-dev/pandas/pull/36884
714,715,216
MDExOlB1bGxSZXF1ZXN0NDk3NzUwNjg5
36,884
TYP: check_untyped_defs compat.pickle_compat
{ "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": "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-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" }
0
2020-10-05T10:24:51Z
2020-10-05T13:12:30Z
2020-10-05T12:59:08Z
MEMBER
null
pandas\compat\pickle_compat.py:277: error: Incompatible types in assignment (expression has type "Callable[[bytes, DefaultNamedArg(bool, 'fix_imports'), DefaultNamedArg(str, 'encoding'), DefaultNamedArg(str, 'errors')], Any]", variable has type "Callable[[bytes, DefaultNamedArg(bool, 'fix_imports'), DefaultNamedArg(str, 'encoding'), DefaultNamedArg(str, 'errors'), DefaultNamedArg(Optional[Iterable[Any]], 'buffers')], Any]") [assignment]
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36884/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36884/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36884.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36884", "merged_at": "2020-10-05T12:59:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36884.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36884" }
https://api.github.com/repos/pandas-dev/pandas/issues/36885
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36885/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36885/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36885/events
https://github.com/pandas-dev/pandas/pull/36885
714,721,049
MDExOlB1bGxSZXF1ZXN0NDk3NzU1NjE4
36,885
TYP: check_untyped_defs core.arrays.base
{ "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": "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-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-10-05T10:33:22Z
2020-10-05T13:15:12Z
2020-10-05T12:58:39Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/31160 from https://docs.python.org/3/library/functions.html?highlight=setattr#setattr > For example, setattr(x, 'foobar', 123) is equivalent to x.foobar = 123. The changes here, don't 'fix' the issue. The correct solution is to create these methods with a statically defined interface, see https://github.com/pandas-dev/pandas/issues/31160#issuecomment-699193016 In the meantime, the changes here allows untyped defs in this module to be checked. (without adding type ignores) pandas\core\arrays\base.py:1179: error: Unsupported left operand type for + ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1180: error: "Type[ExtensionOpsMixin]" has no attribute "__radd__" [attr-defined] pandas\core\arrays\base.py:1181: error: Unsupported left operand type for - ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1182: error: "Type[ExtensionOpsMixin]" has no attribute "__rsub__" [attr-defined] pandas\core\arrays\base.py:1183: error: Unsupported left operand type for * ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1184: error: "Type[ExtensionOpsMixin]" has no attribute "__rmul__" [attr-defined] pandas\core\arrays\base.py:1185: error: Unsupported left operand type for ** ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1186: error: "Type[ExtensionOpsMixin]" has no attribute "__rpow__" [attr-defined] pandas\core\arrays\base.py:1187: error: Unsupported left operand type for % ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1188: error: "Type[ExtensionOpsMixin]" has no attribute "__rmod__" [attr-defined] pandas\core\arrays\base.py:1189: error: Unsupported left operand type for // ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1190: error: "Type[ExtensionOpsMixin]" has no attribute "__rfloordiv__" [attr-defined] pandas\core\arrays\base.py:1191: error: Unsupported left operand type for / ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1192: error: "Type[ExtensionOpsMixin]" has no attribute "__rtruediv__" [attr-defined] pandas\core\arrays\base.py:1193: error: Unsupported left operand type for divmod ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1194: error: "Type[ExtensionOpsMixin]" has no attribute "__rdivmod__" [attr-defined] pandas\core\arrays\base.py:1202: error: Cannot assign to a method [assignment] pandas\core\arrays\base.py:1203: error: Cannot assign to a method [assignment] pandas\core\arrays\base.py:1204: error: Unsupported left operand type for < ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1205: error: Unsupported left operand type for > ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1206: error: Unsupported left operand type for <= ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1207: error: Unsupported left operand type for >= ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1215: error: Unsupported left operand type for & ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1216: error: "Type[ExtensionOpsMixin]" has no attribute "__rand__" [attr-defined] pandas\core\arrays\base.py:1217: error: Unsupported left operand type for | ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1218: error: "Type[ExtensionOpsMixin]" has no attribute "__ror__" [attr-defined] pandas\core\arrays\base.py:1219: error: Unsupported left operand type for ^ ("Type[ExtensionOpsMixin]") [operator] pandas\core\arrays\base.py:1220: error: "Type[ExtensionOpsMixin]" has no attribute "__rxor__" [attr-defined]
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36885/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36885/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36885.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36885", "merged_at": "2020-10-05T12:58:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36885.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36885" }
https://api.github.com/repos/pandas-dev/pandas/issues/36886
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36886/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36886/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36886/events
https://github.com/pandas-dev/pandas/pull/36886
714,729,726
MDExOlB1bGxSZXF1ZXN0NDk3NzYyNzg4
36,886
Backport PR #36864 on branch 1.1.x (CI: Update error message for np_dev)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
0
2020-10-05T10:46:45Z
2020-10-05T12:03:15Z
2020-10-05T12:03:14Z
NONE
null
Backport PR #36864: CI: Update error message for np_dev
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36886/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36886/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36886.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36886", "merged_at": "2020-10-05T12:03:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36886.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36886" }
https://api.github.com/repos/pandas-dev/pandas/issues/36887
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36887/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36887/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36887/events
https://github.com/pandas-dev/pandas/pull/36887
714,792,791
MDExOlB1bGxSZXF1ZXN0NDk3ODE1NDQ4
36,887
DOC: 1.1.3 release date
{ "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": "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-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
2
2020-10-05T12:24:21Z
2020-10-05T14:03:43Z
2020-10-05T14:03:30Z
MEMBER
null
removed mention of py39 support @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/36887/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36887/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36887.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36887", "merged_at": "2020-10-05T14:03:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36887.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36887" }
https://api.github.com/repos/pandas-dev/pandas/issues/36888
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36888/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36888/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36888/events
https://github.com/pandas-dev/pandas/issues/36888
714,834,398
MDU6SXNzdWU3MTQ4MzQzOTg=
36,888
BUG: to_json(lines=True) does not add a trailing newline
{ "avatar_url": "https://avatars.githubusercontent.com/u/5035826?v=4", "events_url": "https://api.github.com/users/lleeoo/events{/privacy}", "followers_url": "https://api.github.com/users/lleeoo/followers", "following_url": "https://api.github.com/users/lleeoo/following{/other_user}", "gists_url": "https://api.github.com/users/lleeoo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lleeoo", "id": 5035826, "login": "lleeoo", "node_id": "MDQ6VXNlcjUwMzU4MjY=", "organizations_url": "https://api.github.com/users/lleeoo/orgs", "received_events_url": "https://api.github.com/users/lleeoo/received_events", "repos_url": "https://api.github.com/users/lleeoo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lleeoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lleeoo/subscriptions", "type": "User", "url": "https://api.github.com/users/lleeoo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/57575037?v=4", "events_url": "https://api.github.com/users/Rohith295/events{/privacy}", "followers_url": "https://api.github.com/users/Rohith295/followers", "following_url": "https://api.github.com/users/Rohith295/following{/other_user}", "gists_url": "https://api.github.com/users/Rohith295/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Rohith295", "id": 57575037, "login": "Rohith295", "node_id": "MDQ6VXNlcjU3NTc1MDM3", "organizations_url": "https://api.github.com/users/Rohith295/orgs", "received_events_url": "https://api.github.com/users/Rohith295/received_events", "repos_url": "https://api.github.com/users/Rohith295/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Rohith295/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rohith295/subscriptions", "type": "User", "url": "https://api.github.com/users/Rohith295" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/57575037?v=4", "events_url": "https://api.github.com/users/Rohith295/events{/privacy}", "followers_url": "https://api.github.com/users/Rohith295/followers", "following_url": "https://api.github.com/users/Rohith295/following{/other_user}", "gists_url": "https://api.github.com/users/Rohith295/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Rohith295", "id": 57575037, "login": "Rohith295", "node_id": "MDQ6VXNlcjU3NTc1MDM3", "organizations_url": "https://api.github.com/users/Rohith295/orgs", "received_events_url": "https://api.github.com/users/Rohith295/received_events", "repos_url": "https://api.github.com/users/Rohith295/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Rohith295/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rohith295/subscriptions", "type": "User", "url": "https://api.github.com/users/Rohith295" } ]
{ "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-10-05T13:19:25Z
2020-10-10T22:55:57Z
2020-10-10T22:55:57Z
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 df = pd.DataFrame({'AAA': [4, 5, 6, 7], 'BBB': [10, 20, 30, 40], 'CCC': [100, 50, -30, -50]}) df.to_json('foo.jsonl', orient='records', lines=True) open('foo.jsonl').read() ``` output (Notice - no newline after the last line): ``` '{"AAA":4,"BBB":10,"CCC":100}\n{"AAA":5,"BBB":20,"CCC":50}\n{"AAA":6,"BBB":30,"CCC":-30}\n{"AAA":7,"BBB":40,"CCC":-50}' ``` #### Problem description When outputting JSON lines, i.e. `lines=True`, every record should end with a newline, including the last record. Otherwise, files cannot be concatenated, the number of records will be counted incorrectly by `wc -l`, etc. #### Expected Output There should be a newline at the end, i.e.: ``` '{"AAA":4,"BBB":10,"CCC":100}\n{"AAA":5,"BBB":20,"CCC":50}\n{"AAA":6,"BBB":30,"CCC":-30}\n{"AAA":7,"BBB":40,"CCC":-50}\n' ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.7.final.0 python-bits : 64 OS : Linux OS-release : 3.10.0-1127.19.1.el7.x86_64 Version : #1 SMP Tue Aug 11 19:12:04 EDT 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 49.6.0.post20200814 Cython : None pytest : None hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : 0.8.0 fastparquet : 0.4.1 gcsfs : None matplotlib : 3.3.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None numba : 0.50.1 </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/36888/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36888/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36889
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36889/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36889/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36889/events
https://github.com/pandas-dev/pandas/issues/36889
714,858,485
MDU6SXNzdWU3MTQ4NTg0ODU=
36,889
BUG: RollingGroupby no longer respects sort being disabled
{ "avatar_url": "https://avatars.githubusercontent.com/u/25098269?v=4", "events_url": "https://api.github.com/users/cpmbailey/events{/privacy}", "followers_url": "https://api.github.com/users/cpmbailey/followers", "following_url": "https://api.github.com/users/cpmbailey/following{/other_user}", "gists_url": "https://api.github.com/users/cpmbailey/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpmbailey", "id": 25098269, "login": "cpmbailey", "node_id": "MDQ6VXNlcjI1MDk4MjY5", "organizations_url": "https://api.github.com/users/cpmbailey/orgs", "received_events_url": "https://api.github.com/users/cpmbailey/received_events", "repos_url": "https://api.github.com/users/cpmbailey/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpmbailey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpmbailey/subscriptions", "type": "User", "url": "https://api.github.com/users/cpmbailey" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "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-10-31T15:14:04Z", "closed_issues": 94, "created_at": "2020-09-26T01:36:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.1.x", "due_on": "2020-10-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/78", "id": 5919858, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels", "node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==", "number": 78, "open_issues": 0, "state": "closed", "title": "1.1.4", "updated_at": "2020-11-25T22:43:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78" }
5
2020-10-05T13:48:19Z
2020-10-09T00:46:15Z
2020-10-09T00:46:15Z
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 pd.DataFrame({'foo': [2,1], 'bar': [2, 1]}).groupby('foo', sort=False).rolling(1).min() foo bar foo 1 1 1.0 1.0 2 0 2.0 2.0 ``` #### Problem description RollingGroupby no longer respects sort being disabled #### Expected Output Behaviour in 1.0.5 ```python pd.DataFrame({'foo': [2,1], 'bar': [2, 1]}).groupby('foo', sort=False).rolling(1).min() foo bar foo 2 0 2.0 2.0 1 1 1.0 1.0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.6.3.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.18362 machine : AMD64 processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.1.2 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 9.0.1 setuptools : 50.3.0 Cython : 0.29.21 pytest : 6.0.2 hypothesis : None sphinx : 1.7.9 blosc : 1.7.0 feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.6 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.8.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fsspec : 0.4.1 fastparquet : None gcsfs : None matplotlib : 3.3.0 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 1.0.1 pytables : None pyxlsb : None s3fs : 0.3.3 scipy : 1.5.2 sqlalchemy : 1.2.12 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : 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/36889/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36889/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36890
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36890/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36890/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36890/events
https://github.com/pandas-dev/pandas/issues/36890
714,864,308
MDU6SXNzdWU3MTQ4NjQzMDg=
36,890
ENH: Intermediate join results that preserve data frame alias, similar to SQL joins
{ "avatar_url": "https://avatars.githubusercontent.com/u/8505928?v=4", "events_url": "https://api.github.com/users/RedTailedHawk/events{/privacy}", "followers_url": "https://api.github.com/users/RedTailedHawk/followers", "following_url": "https://api.github.com/users/RedTailedHawk/following{/other_user}", "gists_url": "https://api.github.com/users/RedTailedHawk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RedTailedHawk", "id": 8505928, "login": "RedTailedHawk", "node_id": "MDQ6VXNlcjg1MDU5Mjg=", "organizations_url": "https://api.github.com/users/RedTailedHawk/orgs", "received_events_url": "https://api.github.com/users/RedTailedHawk/received_events", "repos_url": "https://api.github.com/users/RedTailedHawk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RedTailedHawk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RedTailedHawk/subscriptions", "type": "User", "url": "https://api.github.com/users/RedTailedHawk" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
null
4
2020-10-05T13:55:26Z
2021-08-13T04:01:25Z
2021-08-13T04:01:25Z
NONE
null
Please take a look at this stackoverflow post (this is my post) and let me know what you think. You can answer the question if you like, but I'm guessing the answer is that there is currently no other way to handle the column conflicts other than using the suffixes keyword. https://stackoverflow.com/questions/64126437/pandas-merges-and-suffixes As such, I have been enhancing my Pandas code generator to deal with column conflicts, but would be a really nice Pandas feature to be more "SQL like" in how merges are handled in that the "intermediate results" preserve the original column names and then allow you to reference by dataset alias. 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/36890/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36890/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36891
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36891/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36891/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36891/events
https://github.com/pandas-dev/pandas/pull/36891
714,871,201
MDExOlB1bGxSZXF1ZXN0NDk3ODc4OTk1
36,891
Backport PR #36887 on branch 1.1.x (DOC: 1.1.3 release date)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
0
2020-10-05T14:03:43Z
2020-10-05T15:17:12Z
2020-10-05T15:17:12Z
NONE
null
Backport PR #36887: DOC: 1.1.3 release date
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36891/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36891/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36891.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36891", "merged_at": "2020-10-05T15:17:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36891.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36891" }
https://api.github.com/repos/pandas-dev/pandas/issues/36892
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36892/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36892/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36892/events
https://github.com/pandas-dev/pandas/pull/36892
714,918,492
MDExOlB1bGxSZXF1ZXN0NDk3OTE3Mzcw
36,892
ti.csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/68821506?v=4", "events_url": "https://api.github.com/users/sazk07/events{/privacy}", "followers_url": "https://api.github.com/users/sazk07/followers", "following_url": "https://api.github.com/users/sazk07/following{/other_user}", "gists_url": "https://api.github.com/users/sazk07/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sazk07", "id": 68821506, "login": "sazk07", "node_id": "MDQ6VXNlcjY4ODIxNTA2", "organizations_url": "https://api.github.com/users/sazk07/orgs", "received_events_url": "https://api.github.com/users/sazk07/received_events", "repos_url": "https://api.github.com/users/sazk07/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sazk07/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sazk07/subscriptions", "type": "User", "url": "https://api.github.com/users/sazk07" }
[]
closed
false
null
[]
null
1
2020-10-05T14:59:25Z
2020-10-05T15:05:51Z
2020-10-05T15:05:51Z
NONE
null
pandas dataset for practice and understanding - [ ] 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/36892/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36892/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36892.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36892", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36892.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36892" }
https://api.github.com/repos/pandas-dev/pandas/issues/36893
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36893/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36893/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36893/events
https://github.com/pandas-dev/pandas/issues/36893
714,947,069
MDU6SXNzdWU3MTQ5NDcwNjk=
36,893
ENH: Pluggable SQL performance
{ "avatar_url": "https://avatars.githubusercontent.com/u/70274?v=4", "events_url": "https://api.github.com/users/xhochy/events{/privacy}", "followers_url": "https://api.github.com/users/xhochy/followers", "following_url": "https://api.github.com/users/xhochy/following{/other_user}", "gists_url": "https://api.github.com/users/xhochy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xhochy", "id": 70274, "login": "xhochy", "node_id": "MDQ6VXNlcjcwMjc0", "organizations_url": "https://api.github.com/users/xhochy/orgs", "received_events_url": "https://api.github.com/users/xhochy/received_events", "repos_url": "https://api.github.com/users/xhochy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xhochy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xhochy/subscriptions", "type": "User", "url": "https://api.github.com/users/xhochy" }
[ { "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": "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": "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/24758845?v=4", "events_url": "https://api.github.com/users/yehoshuadimarsky/events{/privacy}", "followers_url": "https://api.github.com/users/yehoshuadimarsky/followers", "following_url": "https://api.github.com/users/yehoshuadimarsky/following{/other_user}", "gists_url": "https://api.github.com/users/yehoshuadimarsky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yehoshuadimarsky", "id": 24758845, "login": "yehoshuadimarsky", "node_id": "MDQ6VXNlcjI0NzU4ODQ1", "organizations_url": "https://api.github.com/users/yehoshuadimarsky/orgs", "received_events_url": "https://api.github.com/users/yehoshuadimarsky/received_events", "repos_url": "https://api.github.com/users/yehoshuadimarsky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yehoshuadimarsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yehoshuadimarsky/subscriptions", "type": "User", "url": "https://api.github.com/users/yehoshuadimarsky" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/24758845?v=4", "events_url": "https://api.github.com/users/yehoshuadimarsky/events{/privacy}", "followers_url": "https://api.github.com/users/yehoshuadimarsky/followers", "following_url": "https://api.github.com/users/yehoshuadimarsky/following{/other_user}", "gists_url": "https://api.github.com/users/yehoshuadimarsky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yehoshuadimarsky", "id": 24758845, "login": "yehoshuadimarsky", "node_id": "MDQ6VXNlcjI0NzU4ODQ1", "organizations_url": "https://api.github.com/users/yehoshuadimarsky/orgs", "received_events_url": "https://api.github.com/users/yehoshuadimarsky/received_events", "repos_url": "https://api.github.com/users/yehoshuadimarsky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yehoshuadimarsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yehoshuadimarsky/subscriptions", "type": "User", "url": "https://api.github.com/users/yehoshuadimarsky" } ]
null
25
2020-10-05T15:34:35Z
2021-04-27T15:10:41Z
null
CONTRIBUTOR
null
Currently the pandas SQL logic is using SQLAlchemy with results being returned as Python objects before being converted to a DataFrame. While the API is simple, it doesn't have good performance characteristics due to the intermediate Python objects. There exist currently some faster alternatives with inconsistent and more complicated APIs. In addition to not having a uniform API, these implementations are only concerned about fast result en-/decoding. Functionality like automatic table creation as we have in `pandas.DataFrame.to_sql` doesn't exist there. Thus it would be nice to have a way to use these connector implementations behind the standard pandas API. ## Faster alternatives * [bcpandas](https://github.com/yehoshuadimarsky/bcpandas): Use BCP to insert data into MS SQL Server * [turbodbc](https://turbodbc.readthedocs.io/en/latest/): Fast access to databases which have an ODBC driver via Apache Arrow (`fetchallarrow().to_pandas()`), e.g. MS SQL or Exasol. * [snowflake-connector-python](https://github.com/snowflakedb/snowflake-connector-python): Brings native Apache Arrow to speed via `fetch_all_pandas()` * [pyarrow.jvm / JDBC](https://uwekorn.com/2019/11/17/fast-jdbc-access-in-python-using-pyarrow-jvm.html): Use `pyarrow`'s JVM module to get faster access to JDBC results via Arrow * `postgres-copy-arrow-decode`: Not yet opensourced (shame on me): Cython-based encoder/decoder for Postgres' `COPY BINARY` command that decodes Postgres' binary protocol from/to Arrow. Works together with `psycopg2` and gives roughly a 2x speedup and type stability on the `COPY CSV` method in `pandas`'s docs. * [PostgresAdapter](https://github.com/ContinuumIO/PostgresAdapter): NumPy support for Postgres connections * [d6tstack](https://github.com/d6t/d6tstack/blob/master/examples-sql.ipynb): Fast insert into Postgres/MySQL/MSSQL via CSV files ## General implementation idea * `pandas` users should only deal with `read_sql` and `to_sql` in its current fashion. * There shouldn't be any new hard dependencies in pandas. * The SQLAlchemy engine is a nice uniform interface to specify a database connection, keep this. * We only need a limited set of operations implemented by the performance backend, basically `to_sql(DataFrame)` and `read_sql(query) -> DataFrame`. Table creation, index adjustment and further convenience functionality can still be handled by the high-level SQLAlchemy layer. ### Implementation idea (1) – Dispatch on `type(engine.raw_connection().connection)` SQLAlchemy exposes the underlying connection of the database driver via `engine.raw_connection()`. This is a useful way to detect how we connect to the database. We could provide a registry where each backend implementation provides a function `supports_connection(engine.raw_connection().connection) -> bool` to determine whether it can be used. Pro: * Users doesn't need to change their code. If the backend is loaded, they will automatically get the speedup. Con: * Users need to take care that the backend is loaded, otherwise queries will work but stay slow. * Only one implementation per database connection class can be implemented ### Implementation idea (2) – Extend the `method=` param `pandas.DataFrame.to_sql` already has a `method` parameter where the user can supply a callable that is used to insert the data into the Database. Currently the callable gets a row-iterator and not a DataFrame. Thus this interface is already hard-wired that the intermediate result needs to be converted into Python objects. Instead of providing a row-iterator, we could pass the original DataFrame to this method Pro: * Clear control on which method is used * Backend implementations could be used via `method=turbodbc.pandas.to_sql` Con: * Potentially a breaking change on the `method` paramter or a second parameter needs to be added that is doing nearly the same things is introduced. * Needs explicit usage for the speedup. ### Implementation idea (3) - Introduce `engine=` param As we have with the the Parquet and CSV IO implementations, we could also go for providing an `engine` parameter where users could easily switch based on the name of an implementation. A prototype implementation would look like: ```python import pandas as pd class DatabaseEngine: name = "fastengine" @staticmethod def supports_connecton(connection) -> bool: # for engine="auto" return isinstance(connection, FastConnection) def to_sql(engine, df: pd.DataFrame, table: str): … def from_sql(engine, query: str) -> pd.DataFrame: … pd.register_sql_backend(DatabaseEngine.name, DatabaseEngine) ``` Pro: * In contrast to (1), here you would get an error when the backend was not loaded. * Clear control on which method is used. * User doesn't need to provide the exact function but only the name of the engine * We could provide an `engine="auto"` setting which on explicit usage tries to find a matching backend and will otherwise fallback to the plain SQLAlchemy implementation. * We can provide some of these engines as part of pandas, others can come from third-party libraries. Con: * Needs explicit usage for the speedup. Personally, I would prefer this approach. ## Related issues * [Use Turbodbc/Arrow for read_sql_table](https://github.com/pandas-dev/pandas/issues/17790), would be fixed by this proposal * [Faster SQL implementation in d6stack library](https://github.com/pandas-dev/pandas/issues/28817), would be fixed by this proposal * [Improve type handling in read_sql and read_sql_table](https://github.com/pandas-dev/pandas/issues/13049), related to this proposal but won't be fully fixed
{ "+1": 10, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 10, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36893/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36893/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36894
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36894/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36894/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36894/events
https://github.com/pandas-dev/pandas/pull/36894
715,040,088
MDExOlB1bGxSZXF1ZXN0NDk4MDE2MzIw
36,894
ENH: allow non-consolidation in constructors
{ "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" }
[]
closed
false
null
[]
null
1
2020-10-05T17:49:10Z
2020-10-06T21:25:41Z
2020-10-06T21:25:41Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @TomAugspurger I think something like this is what is needed for #34872. If this were a "real" PR, I'd probably not put `consolidate` as a `DataFrame.__init__` kwarg but instead set it to `True` and only change it to `False` based on the `copy` kwarg. The usage in core.ops is not necessary, but is an example of where we can get a perf bump.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36894/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36894/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36894.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36894", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36894.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36894" }
https://api.github.com/repos/pandas-dev/pandas/issues/36895
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36895/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36895/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36895/events
https://github.com/pandas-dev/pandas/issues/36895
715,067,561
MDU6SXNzdWU3MTUwNjc1NjE=
36,895
BUG: Merging two data frames on a datetime index where one index is Object data type
{ "avatar_url": "https://avatars.githubusercontent.com/u/3850216?v=4", "events_url": "https://api.github.com/users/PCerles/events{/privacy}", "followers_url": "https://api.github.com/users/PCerles/followers", "following_url": "https://api.github.com/users/PCerles/following{/other_user}", "gists_url": "https://api.github.com/users/PCerles/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PCerles", "id": 3850216, "login": "PCerles", "node_id": "MDQ6VXNlcjM4NTAyMTY=", "organizations_url": "https://api.github.com/users/PCerles/orgs", "received_events_url": "https://api.github.com/users/PCerles/received_events", "repos_url": "https://api.github.com/users/PCerles/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PCerles/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PCerles/subscriptions", "type": "User", "url": "https://api.github.com/users/PCerles" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "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-10-05T18:31:47Z
2020-11-03T13:30:04Z
2020-11-03T13:30:04Z
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. --- **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 numpy as np import pandas as pd df = pd.DataFrame(np.zeros((5, 5))) df.columns = list('abcde') df2 = pd.DataFrame(columns=list('abcfg')) df['a'] = pd.Timestamp("2020-05-05") df = df.set_index(['a', 'b', 'c']) df2 = df2.set_index(['a', 'b', 'c']) # error df.merge(df2, on=['a'], how='left') # no error out = df.reset_index().merge(df2.reset_index(), how='left', on=['a']) # no error df.join(df2, how='left') ``` #### Problem description We pull a lot of data from SQL into data frames. The current pandas.from_sql does not automatically set column data types, and they get reset anyway when we call a `set_index`. So when our getters return an empty result, none of the data types are set in the multi-index. We have a lot of instances in our production codebase where we merge two dataframes in the above pattern. In pandas 0.25.3 (last used version), a DF missing values in a level of the datetime index was not a problem. However, in pandas 1.1.2, we get an error thrown whenever one of the levels in the multi-index is a datetime index, and one of the DFs in the join has a missing dtype. #### Expected Output Same as df.join(df2) or the other example shown. #### Output of ``pd.show_versions()`` <details> commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 19.6.0 Version : Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.17.4 pytz : 2020.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.2.0 Cython : 0.29.21 pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : 0.4.1 gcsfs : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.17.1 pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.17 tables : None tabulate : 0.8.7 xarray : None xlrd : 1.2.0 xlwt : None </details>
{ "+1": 13, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 13, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36895/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36895/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36896
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36896/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36896/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36896/events
https://github.com/pandas-dev/pandas/pull/36896
715,096,359
MDExOlB1bGxSZXF1ZXN0NDk4MDYyNjYw
36,896
Single quotes
{ "avatar_url": "https://avatars.githubusercontent.com/u/20220516?v=4", "events_url": "https://api.github.com/users/skorani/events{/privacy}", "followers_url": "https://api.github.com/users/skorani/followers", "following_url": "https://api.github.com/users/skorani/following{/other_user}", "gists_url": "https://api.github.com/users/skorani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/skorani", "id": 20220516, "login": "skorani", "node_id": "MDQ6VXNlcjIwMjIwNTE2", "organizations_url": "https://api.github.com/users/skorani/orgs", "received_events_url": "https://api.github.com/users/skorani/received_events", "repos_url": "https://api.github.com/users/skorani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/skorani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skorani/subscriptions", "type": "User", "url": "https://api.github.com/users/skorani" }
[]
closed
false
null
[]
null
5
2020-10-05T19:18:30Z
2020-10-18T21:38:52Z
2020-10-18T21:38:52Z
NONE
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/36896/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36896/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36896.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36896", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/36896.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36896" }
https://api.github.com/repos/pandas-dev/pandas/issues/36897
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36897/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36897/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36897/events
https://github.com/pandas-dev/pandas/pull/36897
715,097,788
MDExOlB1bGxSZXF1ZXN0NDk4MDYzNzk3
36,897
regression fix for merging DF with datetime index with empty DF
{ "avatar_url": "https://avatars.githubusercontent.com/u/3850216?v=4", "events_url": "https://api.github.com/users/PCerles/events{/privacy}", "followers_url": "https://api.github.com/users/PCerles/followers", "following_url": "https://api.github.com/users/PCerles/following{/other_user}", "gists_url": "https://api.github.com/users/PCerles/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PCerles", "id": 3850216, "login": "PCerles", "node_id": "MDQ6VXNlcjM4NTAyMTY=", "organizations_url": "https://api.github.com/users/PCerles/orgs", "received_events_url": "https://api.github.com/users/PCerles/received_events", "repos_url": "https://api.github.com/users/PCerles/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PCerles/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PCerles/subscriptions", "type": "User", "url": "https://api.github.com/users/PCerles" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "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" }
12
2020-10-05T19:20:49Z
2020-11-03T18:34:08Z
2020-11-03T13:30:04Z
CONTRIBUTOR
null
- [X ] closes https://github.com/pandas-dev/pandas/issues/36895 - [X ] tests added / passed - [X ] passes `black pandas` - [ X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ X] whatsnew entry
{ "+1": 15, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 15, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36897/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36897/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36897.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36897", "merged_at": "2020-11-03T13:30:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36897.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36897" }
https://api.github.com/repos/pandas-dev/pandas/issues/36898
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36898/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36898/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36898/events
https://github.com/pandas-dev/pandas/pull/36898
715,115,054
MDExOlB1bGxSZXF1ZXN0NDk4MDc4MzEy
36,898
BUG: Add trailing trailing newline in to_json
{ "avatar_url": "https://avatars.githubusercontent.com/u/57575037?v=4", "events_url": "https://api.github.com/users/Rohith295/events{/privacy}", "followers_url": "https://api.github.com/users/Rohith295/followers", "following_url": "https://api.github.com/users/Rohith295/following{/other_user}", "gists_url": "https://api.github.com/users/Rohith295/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Rohith295", "id": 57575037, "login": "Rohith295", "node_id": "MDQ6VXNlcjU3NTc1MDM3", "organizations_url": "https://api.github.com/users/Rohith295/orgs", "received_events_url": "https://api.github.com/users/Rohith295/received_events", "repos_url": "https://api.github.com/users/Rohith295/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Rohith295/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rohith295/subscriptions", "type": "User", "url": "https://api.github.com/users/Rohith295" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "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" }
6
2020-10-05T19:48:07Z
2020-10-10T22:56:01Z
2020-10-10T22:55:57Z
CONTRIBUTOR
null
- [x] closes #36888 - [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/36898/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36898/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36898.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36898", "merged_at": "2020-10-10T22:55:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36898.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36898" }
https://api.github.com/repos/pandas-dev/pandas/issues/36899
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36899/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36899/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36899/events
https://github.com/pandas-dev/pandas/pull/36899
715,125,950
MDExOlB1bGxSZXF1ZXN0NDk4MDg3NDg1
36,899
Backport PR #36689 on branch 1.1.x (DOC: Start v1.1.4 release notes)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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-10-31T15:14:04Z", "closed_issues": 94, "created_at": "2020-09-26T01:36:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.1.x", "due_on": "2020-10-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/78", "id": 5919858, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels", "node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==", "number": 78, "open_issues": 0, "state": "closed", "title": "1.1.4", "updated_at": "2020-11-25T22:43:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78" }
1
2020-10-05T20:06:04Z
2020-10-06T10:28:43Z
2020-10-06T10:28:43Z
NONE
null
Backport PR #36689: DOC: Start v1.1.4 release notes
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36899/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36899/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36899.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36899", "merged_at": "2020-10-06T10:28:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36899.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36899" }
https://api.github.com/repos/pandas-dev/pandas/issues/36900
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36900/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36900/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36900/events
https://github.com/pandas-dev/pandas/pull/36900
715,148,147
MDExOlB1bGxSZXF1ZXN0NDk4MTA2MTM2
36,900
DEPR: Index.ravel returning an ndarray
{ "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "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": "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-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" }
6
2020-10-05T20:42:51Z
2020-10-14T15:34:11Z
2020-10-06T03:40:19Z
MEMBER
null
- [x] closes #19956 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Make Index.ravel() behavior match every other ravel() method in existence.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36900/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36900/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36900.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36900", "merged_at": "2020-10-06T03:40:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36900.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36900" }
https://api.github.com/repos/pandas-dev/pandas/issues/36901
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36901/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36901/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36901/events
https://github.com/pandas-dev/pandas/pull/36901
715,170,085
MDExOlB1bGxSZXF1ZXN0NDk4MTI0NDkz
36,901
REF: collect reduction 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": "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-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" }
0
2020-10-05T21:20:01Z
2020-10-06T14:59:50Z
2020-10-06T03:44:14Z
MEMBER
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/36901/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36901/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36901.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36901", "merged_at": "2020-10-06T03:44:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36901.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36901" }
https://api.github.com/repos/pandas-dev/pandas/issues/36902
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36902/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36902/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36902/events
https://github.com/pandas-dev/pandas/pull/36902
715,206,939
MDExOlB1bGxSZXF1ZXN0NDk4MTU1MzE5
36,902
CLN: standardize fixture usage in datetimelike array 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": "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-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" }
0
2020-10-05T22:34:11Z
2020-10-06T14:59:18Z
2020-10-06T03:33:27Z
MEMBER
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/36902/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36902/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36902.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36902", "merged_at": "2020-10-06T03:33:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36902.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36902" }
https://api.github.com/repos/pandas-dev/pandas/issues/36903
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36903/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36903/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36903/events
https://github.com/pandas-dev/pandas/pull/36903
715,226,338
MDExOlB1bGxSZXF1ZXN0NDk4MTcxMzg0
36,903
TYP: io.json._json, util._decorators
{ "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-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" }
4
2020-10-05T23:22:21Z
2020-10-10T14:42:36Z
2020-10-10T10:38:36Z
MEMBER
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/36903/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36903/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36903.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36903", "merged_at": "2020-10-10T10:38:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36903.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36903" }
https://api.github.com/repos/pandas-dev/pandas/issues/36904
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36904/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36904/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36904/events
https://github.com/pandas-dev/pandas/issues/36904
715,253,740
MDU6SXNzdWU3MTUyNTM3NDA=
36,904
REGR: change in Series.astype(str) behavior for None
{ "avatar_url": "https://avatars.githubusercontent.com/u/44108233?v=4", "events_url": "https://api.github.com/users/itholic/events{/privacy}", "followers_url": "https://api.github.com/users/itholic/followers", "following_url": "https://api.github.com/users/itholic/following{/other_user}", "gists_url": "https://api.github.com/users/itholic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/itholic", "id": 44108233, "login": "itholic", "node_id": "MDQ6VXNlcjQ0MTA4MjMz", "organizations_url": "https://api.github.com/users/itholic/orgs", "received_events_url": "https://api.github.com/users/itholic/received_events", "repos_url": "https://api.github.com/users/itholic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/itholic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/itholic/subscriptions", "type": "User", "url": "https://api.github.com/users/itholic" }
[ { "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": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": "2020-10-31T15:14:04Z", "closed_issues": 94, "created_at": "2020-09-26T01:36:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.1.x", "due_on": "2020-10-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/78", "id": 5919858, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels", "node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==", "number": 78, "open_issues": 0, "state": "closed", "title": "1.1.4", "updated_at": "2020-11-25T22:43:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78" }
2
2020-10-06T00:39:53Z
2020-10-10T18:24:59Z
2020-10-10T18:24:59Z
NONE
null
#### Question about pandas Let's say we have a `Series` with `None` like the below. ```python pser = pd.Series(["hi", "hi ", " ", " \t", "", None], name="x") print(pser) 0 hi 1 hi 2 3 \t 4 5 None Name: x, dtype: object ``` the last value is `None`, but it is casted to `nan` after using `astype` with `str` parameter. ```python print(pser.astype(str)) 0 hi 1 hi 2 3 \t 4 5 nan Name: x, dtype: object ``` Is it intended behavior in pandas 1.1.1. ?? 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/36904/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36904/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36905
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36905/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36905/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36905/events
https://github.com/pandas-dev/pandas/pull/36905
715,255,705
MDExOlB1bGxSZXF1ZXN0NDk4MTk1OTA5
36,905
CLN: value -> key
{ "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": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" }, { "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-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" }
0
2020-10-06T00:45:29Z
2020-10-06T15:08:57Z
2020-10-06T03:08:08Z
MEMBER
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/36905/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36905/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36905.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36905", "merged_at": "2020-10-06T03:08:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36905.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36905" }
https://api.github.com/repos/pandas-dev/pandas/issues/36906
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36906/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36906/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36906/events
https://github.com/pandas-dev/pandas/pull/36906
715,255,846
MDExOlB1bGxSZXF1ZXN0NDk4MTk2MDI1
36,906
CLN: remove inplace kwarg from NDFrame._consolidate
{ "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": "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-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-10-06T00:45:57Z
2020-10-12T15:23:22Z
2020-10-12T14:55:03Z
MEMBER
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/36906/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36906/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36906.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36906", "merged_at": "2020-10-12T14:55:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36906.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36906" }
https://api.github.com/repos/pandas-dev/pandas/issues/36907
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36907/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36907/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36907/events
https://github.com/pandas-dev/pandas/issues/36907
715,272,559
MDU6SXNzdWU3MTUyNzI1NTk=
36,907
BUG: `NaT` does not propagate in row-wise `max` for `datetime64` rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/13521008?v=4", "events_url": "https://api.github.com/users/isVoid/events{/privacy}", "followers_url": "https://api.github.com/users/isVoid/followers", "following_url": "https://api.github.com/users/isVoid/following{/other_user}", "gists_url": "https://api.github.com/users/isVoid/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/isVoid", "id": 13521008, "login": "isVoid", "node_id": "MDQ6VXNlcjEzNTIxMDA4", "organizations_url": "https://api.github.com/users/isVoid/orgs", "received_events_url": "https://api.github.com/users/isVoid/received_events", "repos_url": "https://api.github.com/users/isVoid/repos", "site_admin": false, "starred_url": "https://api.github.com/users/isVoid/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/isVoid/subscriptions", "type": "User", "url": "https://api.github.com/users/isVoid" }
[ { "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": "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" }
0
2020-10-06T01:38:12Z
2020-10-29T10:52:25Z
2020-10-29T01:06:25Z
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 pdf = pd.DataFrame() pdf['a'] = pd.Series(['2020-01-01 08:00:00', '1920-02-01 09:00:00'], dtype='datetime64[ns]') pdf['b'] = pd.Series(['2020-02-01 08:00:00', pd.NaT], dtype='datetime64[ns]') pdf.max(axis=1, skipna=False) ``` #### Problem description Current output is ``` 0 2020-02-01 08:00:00 1 1920-02-01 09:00:00 dtype: datetime64[ns] ``` In general, missing values involved in reduction should propagate. #### Expected Output ``` 0 2020-02-01 08:00:00 1 NaT dtype: datetime64[ns] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.7.8.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-48-generic Version : #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : None LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.3 setuptools : 49.6.0.post20200917 Cython : 0.29.21 pytest : 6.1.1 hypothesis : 5.28.0 sphinx : 3.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.3.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 1.0.1 pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : 0.51.0rc1 </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/36907/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36907/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36908
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36908/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36908/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36908/events
https://github.com/pandas-dev/pandas/pull/36908
715,289,261
MDExOlB1bGxSZXF1ZXN0NDk4MjIyODI3
36,908
BUG: IntervalArray.__eq__ not deferring 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": "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": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" } ]
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" }
2
2020-10-06T02:29:29Z
2020-10-13T16:28:09Z
2020-10-13T16:27:55Z
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/36908/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36908/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36908.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36908", "merged_at": "2020-10-13T16:27:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36908.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36908" }
https://api.github.com/repos/pandas-dev/pandas/issues/36909
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36909/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36909/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36909/events
https://github.com/pandas-dev/pandas/issues/36909
715,347,900
MDU6SXNzdWU3MTUzNDc5MDA=
36,909
BUG: Left join is broken with a MultiIndex with only one level
{ "avatar_url": "https://avatars.githubusercontent.com/u/6120103?v=4", "events_url": "https://api.github.com/users/theemathas/events{/privacy}", "followers_url": "https://api.github.com/users/theemathas/followers", "following_url": "https://api.github.com/users/theemathas/following{/other_user}", "gists_url": "https://api.github.com/users/theemathas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/theemathas", "id": 6120103, "login": "theemathas", "node_id": "MDQ6VXNlcjYxMjAxMDM=", "organizations_url": "https://api.github.com/users/theemathas/orgs", "received_events_url": "https://api.github.com/users/theemathas/received_events", "repos_url": "https://api.github.com/users/theemathas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/theemathas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/theemathas/subscriptions", "type": "User", "url": "https://api.github.com/users/theemathas" }
[ { "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-10-06T05:20:33Z
2021-01-03T22:22:53Z
2021-01-03T22:22:53Z
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 foo = pd.DataFrame(data={'c': 3}, index=pd.MultiIndex.from_tuples([(1, 2)], names=('a', 'b'))) bar = pd.DataFrame(data={'d': 4}, index=pd.MultiIndex.from_tuples([(2,)], names=('b',))) joined = foo.join(bar, how='left') print(joined) ``` #### Expected Output ``` c d b a 2 1 3 4 ``` (Throwing an exception on the line where `bar` is created is also possibly acceptable, although confusing.) #### Produced Output ``` c d b a 2 1 3 NaN ``` #### Problem description When joining with a data frame with a MultiIndex with a single level in it, left joins seem to not work properly. This behavior is confusing (why would a MultiIndex with a single index not work?), and is inconsistent with similar code which produces expected output. Possibly related issues: #34292, #29252, #34357 #### Examples of similar code with expected behavior Example 1: <details> ```python import pandas as pd foo = pd.DataFrame(data={'c': 3}, index=pd.MultiIndex.from_tuples([(1, 2)], names=('a', 'b'))) bar = pd.DataFrame(data={'d': 4}, index=pd.Index([2], name='b')) joined = foo.join(bar, how='left') print(joined) ``` produces ``` c d a b 1 2 3 4 ``` </details> Example 2: <details> ```python import pandas as pd foo = pd.DataFrame(data={'c': 3}, index=pd.MultiIndex.from_tuples([(1, 2, 99)], names=('a', 'b', 'x'))) bar = pd.DataFrame(data={'d': 4}, index=pd.MultiIndex.from_tuples([(2, 99)], names=('b', 'x'))) joined = foo.join(bar, how='left') print(joined) ``` produces ``` c d b x a 2 99 1 3 4 ``` </details> #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : db08276bc116c438d3fdee492026f8223584c477 python : 3.8.6.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.18362 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : English_United States.1252 pandas : 1.1.3 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 50.3.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 fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : 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/36909/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36909/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36910
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36910/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36910/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36910/events
https://github.com/pandas-dev/pandas/issues/36910
715,355,212
MDU6SXNzdWU3MTUzNTUyMTI=
36,910
BUG: Joining data frames with MultiIndex results in non-deterministic level order.
{ "avatar_url": "https://avatars.githubusercontent.com/u/6120103?v=4", "events_url": "https://api.github.com/users/theemathas/events{/privacy}", "followers_url": "https://api.github.com/users/theemathas/followers", "following_url": "https://api.github.com/users/theemathas/following{/other_user}", "gists_url": "https://api.github.com/users/theemathas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/theemathas", "id": 6120103, "login": "theemathas", "node_id": "MDQ6VXNlcjYxMjAxMDM=", "organizations_url": "https://api.github.com/users/theemathas/orgs", "received_events_url": "https://api.github.com/users/theemathas/received_events", "repos_url": "https://api.github.com/users/theemathas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/theemathas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/theemathas/subscriptions", "type": "User", "url": "https://api.github.com/users/theemathas" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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" }
0
2020-10-06T05:37:57Z
2020-10-23T00:20:33Z
2020-10-23T00:20: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. - [ ] (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 foo = pd.DataFrame(data={'e': 5}, index=pd.MultiIndex.from_tuples([(1, 2, 4)], names=('a', 'b', 'd'))) bar = pd.DataFrame(data={'f': 6}, index=pd.MultiIndex.from_tuples([(2, 3)], names=('b', 'c'))) joined = foo.join(bar, how='inner') print(foo.join(bar)) ``` #### Expected Output Something deterministic #### Produced Output When running the code multiple times (restart the python interpreter), the output switches (apparently randomly) between these two outputs: ``` e f b d a c 2 4 1 3 5 6 ``` ``` e f b a d c 2 1 4 3 5 6 ``` #### Problem description When joining with a data frame with a MultiIndex, the order of the levels in the resulting data frame is non-deterministic. This is very surprising, and resulted in a hard-to-debug issue in my code. This issue happens with both inner joins and left joins. Possibly related issues: #36909, #25760 Past discussion on non-determinism in pandas: #32514, #32449, #12679 #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : db08276bc116c438d3fdee492026f8223584c477 python : 3.8.6.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.18362 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : English_United States.1252 pandas : 1.1.3 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 50.3.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 fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : 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/36910/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36910/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36911
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36911/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36911/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36911/events
https://github.com/pandas-dev/pandas/pull/36911
715,374,467
MDExOlB1bGxSZXF1ZXN0NDk4MjkzOTIy
36,911
BUG: RollingGroupby not respecting sort=False
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "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-10-31T15:14:04Z", "closed_issues": 94, "created_at": "2020-09-26T01:36:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.1.x", "due_on": "2020-10-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/78", "id": 5919858, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels", "node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==", "number": 78, "open_issues": 0, "state": "closed", "title": "1.1.4", "updated_at": "2020-11-25T22:43:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78" }
2
2020-10-06T06:14:54Z
2020-10-10T09:54:00Z
2020-10-09T00:46:16Z
MEMBER
null
- [x] closes #36889 - [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/36911/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36911/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36911.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36911", "merged_at": "2020-10-09T00:46:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36911.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36911" }
https://api.github.com/repos/pandas-dev/pandas/issues/36912
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36912/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36912/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36912/events
https://github.com/pandas-dev/pandas/issues/36912
715,480,548
MDU6SXNzdWU3MTU0ODA1NDg=
36,912
ENH: Add option for `to_json` function to discard null values
{ "avatar_url": "https://avatars.githubusercontent.com/u/8104244?v=4", "events_url": "https://api.github.com/users/Fju/events{/privacy}", "followers_url": "https://api.github.com/users/Fju/followers", "following_url": "https://api.github.com/users/Fju/following{/other_user}", "gists_url": "https://api.github.com/users/Fju/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Fju", "id": 8104244, "login": "Fju", "node_id": "MDQ6VXNlcjgxMDQyNDQ=", "organizations_url": "https://api.github.com/users/Fju/orgs", "received_events_url": "https://api.github.com/users/Fju/received_events", "repos_url": "https://api.github.com/users/Fju/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Fju/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fju/subscriptions", "type": "User", "url": "https://api.github.com/users/Fju" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "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": "be21f2", "default": false, "description": "May be closeable, needs more eyeballs", "id": 2365504893, "name": "Closing Candidate", "node_id": "MDU6TGFiZWwyMzY1NTA0ODkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate" } ]
closed
false
null
[]
null
6
2020-10-06T08:59:12Z
2021-08-23T08:34:11Z
2021-08-23T08:34:11Z
NONE
null
#### Is your feature request related to a problem? No, at least not that I am aware of. #### Describe the solution you'd like The [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_json.html) states that "NaN’s and None will be converted to null" when using `pandas.DataFrame.to_json`. I'd like to have an option for the `to_json` function, so that keys that have a null value will be discarded. See "'Additional context" for an example. #### API breaking implications New optional parameter for `pandas.DataFrame.to_json`. However by default this option should be disabled, so no breaking implications, I think. #### Additional context ``` python import pandas as pd import numpy as np data = { # None and np.nan will result in null values when converting to JSON "a": [None, 1, 2], "b": [0, np.nan, 0] } df = pd.DataFrame(data) # Note: `discard_null` doesn't exist yet print(df.to_json(orient="records", discard_null=True)) # current result: [{"a":null,"b":0.0},{"a":1.0,"b":null},{"a":2.0,"b":0.0}] # desired result: [{"b":0.0},{"a":1.0},{"a":2.0,"b":0.0}] ``` Currently I am only working with `orient="records"`. Does it make sense to restrict the option only to this orientation or does it make sense to implement this option for other orientations as well? I'd like to implement this feature by myself and contribute a PR. If there are any tips about how I can do this, please let me know 👌
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36912/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36912/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36913
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36913/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36913/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36913/events
https://github.com/pandas-dev/pandas/pull/36913
715,599,638
MDExOlB1bGxSZXF1ZXN0NDk4NDgwMDk4
36,913
BUG: Fixed IntegerArray.__array_ufunc__ with nout
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[]
closed
false
null
[]
null
1
2020-10-06T11:52:35Z
2020-10-06T18:42:14Z
2020-10-06T18:41:36Z
CONTRIBUTOR
null
We forgot to return.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36913/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36913/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36913.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36913", "merged_at": "2020-10-06T18:41:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36913.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36913" }
https://api.github.com/repos/pandas-dev/pandas/issues/36914
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36914/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36914/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36914/events
https://github.com/pandas-dev/pandas/issues/36914
715,631,703
MDU6SXNzdWU3MTU2MzE3MDM=
36,914
BUG: groupby dropna for multiindex dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/22837825?v=4", "events_url": "https://api.github.com/users/AgnesBaud/events{/privacy}", "followers_url": "https://api.github.com/users/AgnesBaud/followers", "following_url": "https://api.github.com/users/AgnesBaud/following{/other_user}", "gists_url": "https://api.github.com/users/AgnesBaud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AgnesBaud", "id": 22837825, "login": "AgnesBaud", "node_id": "MDQ6VXNlcjIyODM3ODI1", "organizations_url": "https://api.github.com/users/AgnesBaud/orgs", "received_events_url": "https://api.github.com/users/AgnesBaud/received_events", "repos_url": "https://api.github.com/users/AgnesBaud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AgnesBaud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AgnesBaud/subscriptions", "type": "User", "url": "https://api.github.com/users/AgnesBaud" }
[ { "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": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
1
2020-10-06T12:36:56Z
2020-10-06T12:41:12Z
2020-10-06T12:38:42Z
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. --- Hello, I'm not sure if it's a bug report, a feature request, or if there's already another way to do it. In which case, I would be happy to hear it and close this issue. #### Code Sample, a copy-pastable example ```python import pandas as pd import numpy as np test_df = pd.DataFrame.from_dict({ 'gene_1' : ['Bacteria', 'Lactobacillus', 11, 17], 'gene_2' : ['Bacteria', 'Lactobacillus', 9, 3], 'gene_3' : [np.nan, np.nan, 1, 2], 'gene_4' : [np.nan, np.nan, 3, 4], 'gene_5' : ['Bacteria', np.nan, 10, 11] }, orient='index', columns=['kingdom', 'genus', 'sample_1', 'sample_2']) test_df = test_df.set_index(['kingdom', 'genus']) ``` ![test_df](https://user-images.githubusercontent.com/22837825/95197623-2cc05800-07da-11eb-9d9e-7bfead83ac54.png) ```python test_df.groupby(level=[0,1], dropna = False).sum() ``` #### Current output ![groupby sum](https://user-images.githubusercontent.com/22837825/95197644-32b63900-07da-11eb-9dd4-603f0c35f367.png) #### Problem description I would like the dropna option of groupby to handle multipleindex dataframe #### Expected Output ![whatiwant](https://user-images.githubusercontent.com/22837825/95197703-4b265380-07da-11eb-976f-d1c2f48ccb7d.png) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : db08276bc116c438d3fdee492026f8223584c477 python : 3.7.3.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-48-generic Version : #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.3 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.3 setuptools : 40.8.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 : 2.11.2 IPython : 7.18.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details> Related issues : #3729 #29716 Thank you, Agnès
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36914/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36914/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36915
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36915/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36915/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36915/events
https://github.com/pandas-dev/pandas/issues/36915
715,697,324
MDU6SXNzdWU3MTU2OTczMjQ=
36,915
BUG: Intersection of multiindex returns duplicates
{ "avatar_url": "https://avatars.githubusercontent.com/u/37420559?v=4", "events_url": "https://api.github.com/users/egorvavilov/events{/privacy}", "followers_url": "https://api.github.com/users/egorvavilov/followers", "following_url": "https://api.github.com/users/egorvavilov/following{/other_user}", "gists_url": "https://api.github.com/users/egorvavilov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/egorvavilov", "id": 37420559, "login": "egorvavilov", "node_id": "MDQ6VXNlcjM3NDIwNTU5", "organizations_url": "https://api.github.com/users/egorvavilov/orgs", "received_events_url": "https://api.github.com/users/egorvavilov/received_events", "repos_url": "https://api.github.com/users/egorvavilov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/egorvavilov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/egorvavilov/subscriptions", "type": "User", "url": "https://api.github.com/users/egorvavilov" }
[ { "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2020-12-08T12:11:38Z", "closed_issues": 81, "created_at": "2020-10-29T13:43:23Z", "creator": { "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" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-12-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/79", "id": 6047124, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels", "node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==", "number": 79, "open_issues": 0, "state": "closed", "title": "1.1.5", "updated_at": "2020-12-08T12:11:38Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79" }
2
2020-10-06T13:48:54Z
2020-11-29T17:21:53Z
2020-11-29T17:21:53Z
NONE
null
```python import pandas as pd arraysA = [['val1', 'val1', 'val1', 'val1'], ['val2', 'val2', 'val2', 'val2']] arraysB = [['val1'], ['val2']] # MultiIndex([('val1', 'val2'), # ('val1', 'val2'), # ('val1', 'val2'), # ('val1', 'val2')], # names=['idx1', 'idx2']) indexA = pd.MultiIndex.from_arrays(arraysA, names=('idx1', 'idx2')) # MultiIndex([('val1', 'val2')], # names=['idx1', 'idx2']) indexB = pd.MultiIndex.from_arrays(arraysB, names=('idx1', 'idx2')) res = indexA.intersection(indexB) ``` #### Problem description Intersection of multiindexes **must** produce result without duplicates. According to definition the intersection of two sets A and B, denoted by A ∩ B, is the set containing all elements of A that also belong to B (or equivalently, all elements of B that also belong to A. Version 1.0.3 gave correct output, versions 1.1.2 , 1,1,3 - not. #### Output: Pandas 1.1.3 MultiIndex([('val1', 'val2'), ('val1', 'val2'), ('val1', 'val2'), ('val1', 'val2')], names=['idx1', 'idx2']) #### Output: Pandas 1.0.3 MultiIndex([('val1', 'val2')], names=['idx1', 'idx2']) #### Expected Output I assume correct output should look like pandas 1.0.3 version: MultiIndex([('val1', 'val2')], names=['idx1', 'idx2']) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : db08276bc116c438d3fdee492026f8223584c477 python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.17763 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.1.3 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 46.0.0 Cython : None pytest : 6.0.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.3.0 lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.1 IPython : 7.14.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : 1.0.1 pytables : None pyxlsb : 1.0.6 s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.17 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 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/36915/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36915/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36916
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36916/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36916/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36916/events
https://github.com/pandas-dev/pandas/issues/36916
715,708,725
MDU6SXNzdWU3MTU3MDg3MjU=
36,916
ENH: pd.unstack(level, values=["a", "b", "c"])
{ "avatar_url": "https://avatars.githubusercontent.com/u/1200058?v=4", "events_url": "https://api.github.com/users/Hoeze/events{/privacy}", "followers_url": "https://api.github.com/users/Hoeze/followers", "following_url": "https://api.github.com/users/Hoeze/following{/other_user}", "gists_url": "https://api.github.com/users/Hoeze/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hoeze", "id": 1200058, "login": "Hoeze", "node_id": "MDQ6VXNlcjEyMDAwNTg=", "organizations_url": "https://api.github.com/users/Hoeze/orgs", "received_events_url": "https://api.github.com/users/Hoeze/received_events", "repos_url": "https://api.github.com/users/Hoeze/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hoeze/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hoeze/subscriptions", "type": "User", "url": "https://api.github.com/users/Hoeze" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
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" }
13
2020-10-06T14:02:32Z
2021-03-25T11:54:11Z
2021-03-25T11:54:11Z
NONE
null
#### Is your feature request related to a problem? I would like to unstack only certain values from a DataFrame to know exactly which columns will be in the resulting dataframe. For example, when the dataframe is empty, `df.unstack(0)` will just return an empty dataframe without columns: https://github.com/pandas-dev/pandas/issues/21255 Advantages: - predictable column layout - subsetting for certain values #### Describe the solution you'd like I'd propose a values option for `pd.DataFrame.unstack()` that lets one specify which values will be unstacked into columns. E.g. `df.unstack(0, values=["A", "B", "C"])` would ensure that the resulting dataframe has exactly the toplevel columns `A`, `B` and `C`. #### API breaking implications N/A #### Describe alternatives you've considered I checked out `pd.DataFrame.pivot()`, however, it is more complicated to use and cannot use index levels for unstacking.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36916/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36916/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/36917
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36917/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36917/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36917/events
https://github.com/pandas-dev/pandas/pull/36917
715,773,995
MDExOlB1bGxSZXF1ZXN0NDk4NjI1NTY4
36,917
TYP: check_untyped_defs core.computation.expressions
{ "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": "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-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-10-06T15:12:29Z
2020-10-06T19:25:07Z
2020-10-06T18:03:14Z
MEMBER
null
pandas\core\computation\expressions.py:251: error: "None" not callable [misc]
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/36917/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36917/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/36917.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/36917", "merged_at": "2020-10-06T18:03:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/36917.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36917" }
https://api.github.com/repos/pandas-dev/pandas/issues/36918
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/36918/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/36918/comments
https://api.github.com/repos/pandas-dev/pandas/issues/36918/events
https://github.com/pandas-dev/pandas/issues/36918
715,842,550
MDU6SXNzdWU3MTU4NDI1NTA=
36,918
BUG: Horizontal boxplots on subplots throws ValueError
{ "avatar_url": "https://avatars.githubusercontent.com/u/9310831?v=4", "events_url": "https://api.github.com/users/H-SG/events{/privacy}", "followers_url": "https://api.github.com/users/H-SG/followers", "following_url": "https://api.github.com/users/H-SG/following{/other_user}", "gists_url": "https://api.github.com/users/H-SG/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/H-SG", "id": 9310831, "login": "H-SG", "node_id": "MDQ6VXNlcjkzMTA4MzE=", "organizations_url": "https://api.github.com/users/H-SG/orgs", "received_events_url": "https://api.github.com/users/H-SG/received_events", "repos_url": "https://api.github.com/users/H-SG/repos", "site_admin": false, "starred_url": "https://api.github.com/users/H-SG/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/H-SG/subscriptions", "type": "User", "url": "https://api.github.com/users/H-SG" }
[ { "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" } ]
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/36233478?v=4", "events_url": "https://api.github.com/users/francibm97/events{/privacy}", "followers_url": "https://api.github.com/users/francibm97/followers", "following_url": "https://api.github.com/users/francibm97/following{/other_user}", "gists_url": "https://api.github.com/users/francibm97/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/francibm97", "id": 36233478, "login": "francibm97", "node_id": "MDQ6VXNlcjM2MjMzNDc4", "organizations_url": "https://api.github.com/users/francibm97/orgs", "received_events_url": "https://api.github.com/users/francibm97/received_events", "repos_url": "https://api.github.com/users/francibm97/repos", "site_admin": false, "starred_url": "https://api.github.com/users/francibm97/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/francibm97/subscriptions", "type": "User", "url": "https://api.github.com/users/francibm97" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/36233478?v=4", "events_url": "https://api.github.com/users/francibm97/events{/privacy}", "followers_url": "https://api.github.com/users/francibm97/followers", "following_url": "https://api.github.com/users/francibm97/following{/other_user}", "gists_url": "https://api.github.com/users/francibm97/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/francibm97", "id": 36233478, "login": "francibm97", "node_id": "MDQ6VXNlcjM2MjMzNDc4", "organizations_url": "https://api.github.com/users/francibm97/orgs", "received_events_url": "https://api.github.com/users/francibm97/received_events", "repos_url": "https://api.github.com/users/francibm97/repos", "site_admin": false, "starred_url": "https://api.github.com/users/francibm97/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/francibm97/subscriptions", "type": "User", "url": "https://api.github.com/users/francibm97" } ]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
5
2020-10-06T16:32:21Z
2020-11-17T01:27:56Z
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. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd import numpy as np df1 = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD')) df2 = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD')) f, axs = plt.subplots(1, 2, figsize=(10,7), sharey=True) df1.boxplot(ax=axs[0], showfliers=False, vert=False) df2.boxplot(ax=axs[1], showfliers=False, vert=False) ``` #### Problem description Above code snippet throws `ValueError: The number of FixedLocator locations (8), usually from a call to set_ticks, does not match the number of ticklabels (4).` due to changes introduced in matplotlib 3.3.0. It looks like fixes were implemented as part of #35393 in `boxplot.py` for `vert=True` but not for `vert=False`. Performing the `len(ticks) != len(keys)` check for `ticks = ax.get_yticks()` and the associated keys list doubling snippet fixes the issue. Not sure if that is the right fix, but works for my use case. #### Expected Output Two sets of horizontal boxplot charts #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6 python : 3.7.3.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-48-generic Version : #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.2 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 19.1.1 setuptools : 41.0.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.2 html5lib : None pymysql : None psycopg2 : 2.8.6 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.18.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.19 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : 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/36918/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/36918/timeline
null
null
null