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
unknown | updated_at
unknown | closed_at
unknown | 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/42521 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42521/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42521/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42521/events | https://github.com/pandas-dev/pandas/pull/42521 | 943,789,536 | MDExOlB1bGxSZXF1ZXN0Njg5MzY4NzE5 | 42,521 | REF: de-duplicate WrappedCythonOp._ea_wrap_cython_operation | {
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-13T20:11:23Z" | "2021-07-14T01:18:16Z" | "2021-07-13T22:54:13Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Puts us within spitting distance of making this something EAs can override | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42521/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42521/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42521.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42521",
"merged_at": "2021-07-13T22:54:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42521.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42521"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42522 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42522/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42522/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42522/events | https://github.com/pandas-dev/pandas/issues/42522 | 943,790,520 | MDU6SXNzdWU5NDM3OTA1MjA= | 42,522 | BLD: Bump ManyLinux | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 4 | "2021-07-13T20:12:45Z" | "2021-07-19T11:48:58Z" | "2021-07-19T11:48:58Z" | MEMBER | null | From the manylinux README
```
The goal of the manylinux project is to provide a convenient way to distribute binary Python extensions as wheels on Linux. This effort has produced PEP 513 (manylinux1), PEP 571 (manylinux2010), PEP 599 (manylinux2014) and PEP 600 (manylinux_x_y).
PEP 513 defined manylinux1_x86_64 and manylinux1_i686 platform tags and the wheels were built on Centos5. Centos5 reached End of Life (EOL) on March 31st, 2017.
PEP 571 defined manylinux2010_x86_64 and manylinux2010_i686 platform tags and the wheels were built on Centos6. Centos6 reached End of Life (EOL) on November 30th, 2020.
PEP 599 defines the following platform tags:
manylinux2014_x86_64
manylinux2014_i686
manylinux2014_aarch64
manylinux2014_armv7l
manylinux2014_ppc64
manylinux2014_ppc64le
manylinux2014_s390x
Wheels are built on CentOS 7 which will reach End of Life (EOL) on June 30th, 2024.
```
Since Centos5 and 6 have reached EOL already, we should bump manylinux to manylinux2014. FWIW, numpy has already bumped manylinux to manylinux2014.
cc @simonjayhawkins | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42522/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42522/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42523 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42523/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42523/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42523/events | https://github.com/pandas-dev/pandas/pull/42523 | 943,835,954 | MDExOlB1bGxSZXF1ZXN0Njg5NDA4ODcx | 42,523 | Backport PR #42475 on branch 1.3.x (PERF/REGR: astype changing order of some 2d data) | {
"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": "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": "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": "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": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-13T21:18:34Z" | "2021-07-14T00:50:16Z" | "2021-07-14T00:50:16Z" | NONE | null | Backport PR #42475: PERF/REGR: astype changing order of some 2d data | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42523/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42523/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42523.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42523",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42523.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42523"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42524 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42524/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42524/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42524/events | https://github.com/pandas-dev/pandas/pull/42524 | 943,847,998 | MDExOlB1bGxSZXF1ZXN0Njg5NDE5MTgw | 42,524 | CI: Xfail less on Python 3.10 | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "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": "fef2c0",
"default": false,
"description": "",
"id": 2955636717,
"name": "Python 3.10",
"node_id": "MDU6TGFiZWwyOTU1NjM2NzE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.10"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 5 | "2021-07-13T21:38:28Z" | "2021-07-14T00:32:33Z" | "2021-07-13T22:47:27Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Thanks realead for fixing the tests.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42524/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42524/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42524.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42524",
"merged_at": "2021-07-13T22:47:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42524.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42524"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42525 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42525/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42525/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42525/events | https://github.com/pandas-dev/pandas/pull/42525 | 943,883,325 | MDExOlB1bGxSZXF1ZXN0Njg5NDQ5ODEz | 42,525 | Backport PR #42524 on branch 1.3.x (CI: Xfail less on Python 3.10) | {
"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": "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": "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": "fef2c0",
"default": false,
"description": "",
"id": 2955636717,
"name": "Python 3.10",
"node_id": "MDU6TGFiZWwyOTU1NjM2NzE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.10"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-13T22:47:36Z" | "2021-07-14T10:16:22Z" | "2021-07-14T10:16:22Z" | NONE | null | Backport PR #42524: CI: Xfail less on Python 3.10 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42525/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42525/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42525.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42525",
"merged_at": "2021-07-14T10:16:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42525.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42525"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42526 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42526/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42526/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42526/events | https://github.com/pandas-dev/pandas/pull/42526 | 943,934,411 | MDExOlB1bGxSZXF1ZXN0Njg5NDkzNTI1 | 42,526 | Backport PR #42475: PERF/REGR: astype changing order of some 2d data | {
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
} | [
{
"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": "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": "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": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-14T00:49:51Z" | "2021-07-14T08:39:27Z" | "2021-07-14T08:39:26Z" | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42526/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42526/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42526.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42526",
"merged_at": "2021-07-14T08:39:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42526.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42526"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/42527 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42527/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42527/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42527/events | https://github.com/pandas-dev/pandas/pull/42527 | 943,974,625 | MDExOlB1bGxSZXF1ZXN0Njg5NTI2NjM3 | 42,527 | CI: Test Python dev on 1.3.x PRs | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "fef2c0",
"default": false,
"description": "",
"id": 2955636717,
"name": "Python 3.10",
"node_id": "MDU6TGFiZWwyOTU1NjM2NzE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.10"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 1 | "2021-07-14T02:27:28Z" | "2021-07-14T19:03:17Z" | "2021-07-14T07:42:34Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42527/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42527/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42527.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42527",
"merged_at": "2021-07-14T07:42:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42527.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42527"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42528 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42528/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42528/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42528/events | https://github.com/pandas-dev/pandas/pull/42528 | 944,040,193 | MDExOlB1bGxSZXF1ZXN0Njg5NTgyMDU5 | 42,528 | TST: Test reindex w/ multiindex df (GH21247) | {
"avatar_url": "https://avatars.githubusercontent.com/u/18680207?v=4",
"events_url": "https://api.github.com/users/calvh/events{/privacy}",
"followers_url": "https://api.github.com/users/calvh/followers",
"following_url": "https://api.github.com/users/calvh/following{/other_user}",
"gists_url": "https://api.github.com/users/calvh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/calvh",
"id": 18680207,
"login": "calvh",
"node_id": "MDQ6VXNlcjE4NjgwMjA3",
"organizations_url": "https://api.github.com/users/calvh/orgs",
"received_events_url": "https://api.github.com/users/calvh/received_events",
"repos_url": "https://api.github.com/users/calvh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/calvh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/calvh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/calvh"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-07-14T04:56:18Z" | "2021-07-14T23:21:31Z" | "2021-07-14T23:21:27Z" | CONTRIBUTOR | null | - [x] closes #21247
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Whats new:
Add a test to `pandas/tests/indexes/multi/test_reindex.py`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42528/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42528/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42528.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42528",
"merged_at": "2021-07-14T23:21:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42528.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42528"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42529 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42529/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42529/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42529/events | https://github.com/pandas-dev/pandas/pull/42529 | 944,063,720 | MDExOlB1bGxSZXF1ZXN0Njg5NjAyMTE0 | 42,529 | DOC: add height param added to user_guide | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-14T05:43:14Z" | "2021-07-30T18:04:23Z" | "2021-07-14T18:21:10Z" | 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/42529/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42529/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42529.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42529",
"merged_at": "2021-07-14T18:21:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42529.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42529"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/42530 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42530/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42530/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42530/events | https://github.com/pandas-dev/pandas/issues/42530 | 944,122,743 | MDU6SXNzdWU5NDQxMjI3NDM= | 42,530 | BUG: `KeyError` when assigning to Series values after pop from DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1176585?v=4",
"events_url": "https://api.github.com/users/itssimon/events{/privacy}",
"followers_url": "https://api.github.com/users/itssimon/followers",
"following_url": "https://api.github.com/users/itssimon/following{/other_user}",
"gists_url": "https://api.github.com/users/itssimon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/itssimon",
"id": 1176585,
"login": "itssimon",
"node_id": "MDQ6VXNlcjExNzY1ODU=",
"organizations_url": "https://api.github.com/users/itssimon/orgs",
"received_events_url": "https://api.github.com/users/itssimon/received_events",
"repos_url": "https://api.github.com/users/itssimon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/itssimon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/itssimon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/itssimon"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
}
] | {
"closed_at": "2021-08-15T12:34:44Z",
"closed_issues": 90,
"created_at": "2021-07-23T08:57:52Z",
"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.3.x",
"due_on": "2021-08-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/88",
"id": 6998423,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88/labels",
"node_id": "MI_kwDOAA0YD84AasmX",
"number": 88,
"open_issues": 0,
"state": "closed",
"title": "1.3.2",
"updated_at": "2021-08-28T18:34:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88"
} | 4 | "2021-07-14T07:14:59Z" | "2021-07-26T14:26:17Z" | "2021-07-26T12:43:02Z" | 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
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
series = df.pop("b")
series[[True, False, False]] = 9
```
#### Problem description
Throws a `KeyError`:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/series.py in __setitem__(self, key, value)
1061 try:
-> 1062 self._set_with_engine(key, value)
1063 except (KeyError, ValueError):
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/series.py in _set_with_engine(self, key, value)
1094 # fails with AttributeError for IntervalIndex
-> 1095 loc = self.index._engine.get_loc(key)
1096 # error: Argument 1 to "validate_numeric_casting" has incompatible type
~/.envs/sigma/lib/python3.8/site-packages/pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
~/.envs/sigma/lib/python3.8/site-packages/pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
TypeError: '[True, False, False]' is an invalid key
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
3360 try:
-> 3361 return self._engine.get_loc(casted_key)
3362 except KeyError as err:
~/.envs/sigma/lib/python3.8/site-packages/pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
~/.envs/sigma/lib/python3.8/site-packages/pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 'b'
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
/tmp/ipykernel_29158/1487425742.py in <module>
3 df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
4 series = df.pop("b")
----> 5 series[[True, False, False]] = 9
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/series.py in __setitem__(self, key, value)
1080 key = np.asarray(key, dtype=bool)
1081 try:
-> 1082 self._where(~key, value, inplace=True)
1083 except InvalidIndexError:
1084 self.iloc[key] = value
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/generic.py in _where(self, cond, other, inplace, axis, level, errors)
8859 new_data = self._mgr.putmask(mask=cond, new=other, align=align)
8860 result = self._constructor(new_data)
-> 8861 return self._update_inplace(result)
8862
8863 else:
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/generic.py in _update_inplace(self, result, verify_is_copy)
4228 self._clear_item_cache()
4229 self._mgr = result._mgr
-> 4230 self._maybe_update_cacher(verify_is_copy=verify_is_copy)
4231
4232 @final
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/series.py in _maybe_update_cacher(self, clear, verify_is_copy)
1232 if len(self) == len(ref):
1233 # otherwise, either self or ref has swapped in new arrays
-> 1234 ref._maybe_cache_changed(cacher[0], self)
1235 else:
1236 # GH#33675 we have swapped in a new array, so parent
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/frame.py in _maybe_cache_changed(self, item, value)
3896 The object has called back to us saying maybe it has changed.
3897 """
-> 3898 loc = self._info_axis.get_loc(item)
3899 arraylike = value._values
3900 self._mgr.iset(loc, arraylike)
~/.envs/sigma/lib/python3.8/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
3361 return self._engine.get_loc(casted_key)
3362 except KeyError as err:
-> 3363 raise KeyError(key) from err
3364
3365 if is_scalar(key) and isna(key) and not self.hasnans:
KeyError: 'b'
```
Note that when changing the line `series = df.pop("b")` to `series = df.pop("b").copy()` it works as expected.
#### Expected Output
No exception, first value in `series` set to `9`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.117-58.216.amzn2.x86_64
Version : #1 SMP Tue May 11 20:50:07 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_AU.UTF-8
LANG : en_AU.UTF-8
LOCALE : en_AU.UTF-8
pandas : 1.3.0
numpy : 1.21.0
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 49.6.0.post20210108
Cython : None
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.9.1 (dt dec pq3 ext lo64)
jinja2 : 3.0.1
IPython : 7.25.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 4.0.1
pyxlsb : None
s3fs : None
scipy : 1.7.0
sqlalchemy : 1.3.23
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42530/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42530/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42531 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42531/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42531/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42531/events | https://github.com/pandas-dev/pandas/pull/42531 | 944,143,758 | MDExOlB1bGxSZXF1ZXN0Njg5NjY4NjYz | 42,531 | Backport PR #42527 on branch 1.3.x (CI: Test Python dev on 1.3.x PRs) | {
"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"
},
{
"color": "fef2c0",
"default": false,
"description": "",
"id": 2955636717,
"name": "Python 3.10",
"node_id": "MDU6TGFiZWwyOTU1NjM2NzE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.10"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-14T07:43:04Z" | "2021-07-14T09:04:49Z" | "2021-07-14T09:04:48Z" | NONE | null | Backport PR #42527: CI: Test Python dev on 1.3.x PRs | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42531/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42531/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42531.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42531",
"merged_at": "2021-07-14T09:04:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42531.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42531"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42532 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42532/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42532/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42532/events | https://github.com/pandas-dev/pandas/issues/42532 | 944,400,710 | MDU6SXNzdWU5NDQ0MDA3MTA= | 42,532 | MatplotlibDeprecationWarning for ax.is_first_col() | {
"avatar_url": "https://avatars.githubusercontent.com/u/65488467?v=4",
"events_url": "https://api.github.com/users/sourabh69733/events{/privacy}",
"followers_url": "https://api.github.com/users/sourabh69733/followers",
"following_url": "https://api.github.com/users/sourabh69733/following{/other_user}",
"gists_url": "https://api.github.com/users/sourabh69733/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sourabh69733",
"id": 65488467,
"login": "sourabh69733",
"node_id": "MDQ6VXNlcjY1NDg4NDY3",
"organizations_url": "https://api.github.com/users/sourabh69733/orgs",
"received_events_url": "https://api.github.com/users/sourabh69733/received_events",
"repos_url": "https://api.github.com/users/sourabh69733/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sourabh69733/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sourabh69733/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sourabh69733"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "f2f074",
"default": false,
"description": "Warnings that appear or should be added to pandas",
"id": 1628184320,
"name": "Warnings",
"node_id": "MDU6TGFiZWwxNjI4MTg0MzIw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | "2021-07-14T12:56:43Z" | "2021-07-14T19:04:09Z" | "2021-07-14T17:46:35Z" | NONE | null | https://github.com/pandas-dev/pandas/blob/2001798e0f467bde552a95e39a00bfbde28aecd5/pandas/plotting/_matplotlib/tools.py#L396
It is depreciated and needs replacement with ax.get_subplotspec().is_first_col().
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42532/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42532/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42533 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42533/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42533/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42533/events | https://github.com/pandas-dev/pandas/issues/42533 | 944,539,561 | MDU6SXNzdWU5NDQ1Mzk1NjE= | 42,533 | ENH: Enhance printing options for stylized DataFrames | {
"avatar_url": "https://avatars.githubusercontent.com/u/12802916?v=4",
"events_url": "https://api.github.com/users/dennymarcels/events{/privacy}",
"followers_url": "https://api.github.com/users/dennymarcels/followers",
"following_url": "https://api.github.com/users/dennymarcels/following{/other_user}",
"gists_url": "https://api.github.com/users/dennymarcels/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dennymarcels",
"id": 12802916,
"login": "dennymarcels",
"node_id": "MDQ6VXNlcjEyODAyOTE2",
"organizations_url": "https://api.github.com/users/dennymarcels/orgs",
"received_events_url": "https://api.github.com/users/dennymarcels/received_events",
"repos_url": "https://api.github.com/users/dennymarcels/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dennymarcels/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dennymarcels/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dennymarcels"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | open | false | null | [] | null | 2 | "2021-07-14T15:20:28Z" | "2021-07-14T21:00:08Z" | null | NONE | null | #### Is your feature request related to a problem?
More like an improvement.
#### Describe the solution you'd like
I just started playing around with pandas styling, and I noticed there is no way to print only the head and/or tail of a stylized DataFrame. It would be awesome if the styling could be applied to the whole df but then we could print only selected rows, like head and/or tail.
#### API breaking implications
I guess there could be a parameter passed to methods such as `bar`, or a new method to be appended to the end of a call.
#### Describe alternatives you've considered
I can apply the style to a slice of a DataFrame but then the styling function is applied to this slice only. What if I want to highlight_max to the whole df but print head/tail only? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42533/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42533/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42534 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42534/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42534/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42534/events | https://github.com/pandas-dev/pandas/issues/42534 | 944,614,817 | MDU6SXNzdWU5NDQ2MTQ4MTc= | 42,534 | TYP: Series.name is Hashable - should it be str? | {
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
} | [
{
"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": "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"
},
{
"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 | 17 | "2021-07-14T16:44:28Z" | "2021-07-19T11:54:28Z" | "2021-07-19T11:54:28Z" | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
```python
import pandas as pd
s = pd.Series([1,2,3], name="foo")
reveal_type(s.name)
nam: str = s.name
```
mypy then reports:
```
seriesnam.py:5: note: Revealed type is "typing.Hashable*"
seriesnam.py:7: error: Incompatible types in assignment (expression has type "Hashable", variable has type "str") [assignment]
```
It's natural to assume that the names of a Series are `str`
So why do we have it typed as `Hashable` ?
Seems like @simonjayhawkins changed this in https://github.com/pandas-dev/pandas/pull/39107
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42534/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42534/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42535 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42535/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42535/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42535/events | https://github.com/pandas-dev/pandas/issues/42535 | 944,669,378 | MDU6SXNzdWU5NDQ2NjkzNzg= | 42,535 | BUG: - xlsx file not supported | {
"avatar_url": "https://avatars.githubusercontent.com/u/546367?v=4",
"events_url": "https://api.github.com/users/soydepr/events{/privacy}",
"followers_url": "https://api.github.com/users/soydepr/followers",
"following_url": "https://api.github.com/users/soydepr/following{/other_user}",
"gists_url": "https://api.github.com/users/soydepr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/soydepr",
"id": 546367,
"login": "soydepr",
"node_id": "MDQ6VXNlcjU0NjM2Nw==",
"organizations_url": "https://api.github.com/users/soydepr/orgs",
"received_events_url": "https://api.github.com/users/soydepr/received_events",
"repos_url": "https://api.github.com/users/soydepr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/soydepr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/soydepr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/soydepr"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"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 | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | "2021-07-14T18:00:34Z" | "2021-07-20T21:41:59Z" | "2021-07-20T21:41:28Z" | NONE | null | raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
>>>

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42535/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42535/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42536 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42536/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42536/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42536/events | https://github.com/pandas-dev/pandas/issues/42536 | 944,708,025 | MDU6SXNzdWU5NDQ3MDgwMjU= | 42,536 | BUG: merge outer join drops rows with NaN datetime in index | {
"avatar_url": "https://avatars.githubusercontent.com/u/29434868?v=4",
"events_url": "https://api.github.com/users/realdanurbano/events{/privacy}",
"followers_url": "https://api.github.com/users/realdanurbano/followers",
"following_url": "https://api.github.com/users/realdanurbano/following{/other_user}",
"gists_url": "https://api.github.com/users/realdanurbano/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/realdanurbano",
"id": 29434868,
"login": "realdanurbano",
"node_id": "MDQ6VXNlcjI5NDM0ODY4",
"organizations_url": "https://api.github.com/users/realdanurbano/orgs",
"received_events_url": "https://api.github.com/users/realdanurbano/received_events",
"repos_url": "https://api.github.com/users/realdanurbano/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/realdanurbano/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/realdanurbano/subscriptions",
"type": "User",
"url": "https://api.github.com/users/realdanurbano"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "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"
}
] | open | false | null | [] | null | 3 | "2021-07-14T18:55:55Z" | "2021-08-21T04:25:08Z" | null | NONE | null | - [Yes] I have checked that this issue has not already been reported.
- [Yes] I have confirmed this bug exists on the latest version of pandas.
Tested with pandas 1.3.0. Verified the expected output is correct in the previous version, 1.2.5.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
left = ({'name': 'Foo', 'datetime': None, 'some column': 'some value'},)
left = pd.DataFrame(left).set_index(['name', 'datetime'])
right = ({'name': 'Foo', 'datetime': '2021-07-14', 'other column': 'other value'},)
right = pd.DataFrame(right).set_index(['name', 'datetime'])
merged = left.merge(right, how='outer', left_index=True, right_index=True)
print(merged)
```
#### Problem description
When merging left and right together using an OUTER join, I would expect to see two rows in the result. The problem appears to be with the `datetime` index column with `NaN` values. If I provide a date in left, I see the expected output. Without it, any row from the right is dropped, i.e. behaving like a left join.
Actual Output
```
some column other column
name datetime
Foo NaN some value NaN
```
#### Expected Output
```
some column other column
name datetime
Foo NaN some value NaN
2021-07-14 NaN other value
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.8.1.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.3.0
numpy : 1.21.0
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 41.2.0
Cython : None
pytest : 6.2.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : 1.0.2
psycopg2 : 2.9.1 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.1
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : 1.4.4
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
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/42536/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42536/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42537 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42537/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42537/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42537/events | https://github.com/pandas-dev/pandas/issues/42537 | 944,717,158 | MDU6SXNzdWU5NDQ3MTcxNTg= | 42,537 | BUG: Styler.set_sticky(axis="columns") does not work properly with Multi-Index Rows | {
"avatar_url": "https://avatars.githubusercontent.com/u/20323012?v=4",
"events_url": "https://api.github.com/users/UncleHoo/events{/privacy}",
"followers_url": "https://api.github.com/users/UncleHoo/followers",
"following_url": "https://api.github.com/users/UncleHoo/following{/other_user}",
"gists_url": "https://api.github.com/users/UncleHoo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/UncleHoo",
"id": 20323012,
"login": "UncleHoo",
"node_id": "MDQ6VXNlcjIwMzIzMDEy",
"organizations_url": "https://api.github.com/users/UncleHoo/orgs",
"received_events_url": "https://api.github.com/users/UncleHoo/received_events",
"repos_url": "https://api.github.com/users/UncleHoo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/UncleHoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UncleHoo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/UncleHoo"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-08-15T12:34:44Z",
"closed_issues": 90,
"created_at": "2021-07-23T08:57:52Z",
"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.3.x",
"due_on": "2021-08-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/88",
"id": 6998423,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88/labels",
"node_id": "MI_kwDOAA0YD84AasmX",
"number": 88,
"open_issues": 0,
"state": "closed",
"title": "1.3.2",
"updated_at": "2021-08-28T18:34:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88"
} | 5 | "2021-07-14T19:08:53Z" | "2021-08-08T12:40:36Z" | "2021-08-07T23:14:31Z" | 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.style.set_sticky(axis="columns")
```
#### Problem description
When "sticking" columns in a DataFrame as shown above it does not work correctly if the DataFrame has an Multi-index. If the DataFrame has only a single index field then it works correctly. When a Multi-Index or hierarchical index is used, the index columns stick, but the other column headers disappear.
#### Expected Output
That all columns headings, both for index and non-index columns should be visible when scrolling down the DataFame.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.9.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19043
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_Canada.1252
pandas : 1.3.0
numpy : 1.21.0
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 49.6.0.post20210108
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.22.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 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/42537/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42537/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42538 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42538/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42538/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42538/events | https://github.com/pandas-dev/pandas/pull/42538 | 944,736,570 | MDExOlB1bGxSZXF1ZXN0NjkwMTcyODE3 | 42,538 | CI: Run some checks on push on 1.3.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-14T19:38:00Z" | "2021-07-16T09:46:42Z" | "2021-07-14T23:12:58Z" | MEMBER | null | - [ ] xref #39696
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Not turning on CI/Checks since that one is non-trivial since it requires configuring the doc build to not upload on 1.3.x.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42538/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42538/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42538.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42538",
"merged_at": "2021-07-14T23:12:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42538.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42538"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42539 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42539/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42539/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42539/events | https://github.com/pandas-dev/pandas/pull/42539 | 944,771,645 | MDExOlB1bGxSZXF1ZXN0NjkwMjAzMjMy | 42,539 | Revert "CI: runtime warning in npdev build" | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-14T20:27:46Z" | "2021-07-16T01:53:40Z" | "2021-07-14T23:12:09Z" | MEMBER | null | Reverts pandas-dev/pandas#42413
Test passing on 3.9 numpydev again?
Numpydev is red again b/c of this I think.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42539/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42539/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42539.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42539",
"merged_at": "2021-07-14T23:12:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42539.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42539"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42540 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42540/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42540/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42540/events | https://github.com/pandas-dev/pandas/issues/42540 | 944,843,883 | MDU6SXNzdWU5NDQ4NDM4ODM= | 42,540 | DOC: `pandas.json_normalize` missing from API Reference portion of documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/16143771?v=4",
"events_url": "https://api.github.com/users/TimelikeClosure/events{/privacy}",
"followers_url": "https://api.github.com/users/TimelikeClosure/followers",
"following_url": "https://api.github.com/users/TimelikeClosure/following{/other_user}",
"gists_url": "https://api.github.com/users/TimelikeClosure/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TimelikeClosure",
"id": 16143771,
"login": "TimelikeClosure",
"node_id": "MDQ6VXNlcjE2MTQzNzcx",
"organizations_url": "https://api.github.com/users/TimelikeClosure/orgs",
"received_events_url": "https://api.github.com/users/TimelikeClosure/received_events",
"repos_url": "https://api.github.com/users/TimelikeClosure/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TimelikeClosure/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TimelikeClosure/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TimelikeClosure"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 47,
"created_at": "2021-10-16T17:29:59Z",
"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.3.x",
"due_on": "2021-11-28T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/91",
"id": 7259169,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91/labels",
"node_id": "MI_kwDOAA0YD84AbsQh",
"number": 91,
"open_issues": 23,
"state": "open",
"title": "1.3.5",
"updated_at": "2021-11-21T13:42:45Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91"
} | 5 | "2021-07-14T22:30:00Z" | "2021-11-20T21:11:25Z" | "2021-11-20T21:11:25Z" | NONE | null | #### Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.json_normalize.html (currently responds with a `404 Not Found`)
#### Documentation problem
While the source code does contain API reference documentation for `pandas.json_normalize` (previously `pandas.io.json.json_normalize`) as seen in [`/pandas/io/json/_normalize.py`](https://github.com/pandas-dev/pandas/blob/master/pandas/io/json/_normalize.py#L240-L381), it isn't available in the documentation for the current version of pandas hosted on `pandas.pydata.org`.
#### Suggested fix for documentation
At least one older version of `pandas` _does_ have documentation that includes a `json_normalize` API reference under its old name ([`pandas.io.json.json_normalize` in v0.25.0](https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.io.json.json_normalize.html)), so it seems feasible that it was removed by accident when its old name was [deprecated in v1.0.0](https://github.com/pandas-dev/pandas/blob/master/pandas/io/json/_normalize.py#L524-L526). Attempting to visit [`pandas.io.json.json_normalize` in the current version of the documentation](https://pandas.pydata.org/docs/dev/reference/api/pandas.io.json.json_normalize.html) redirects to the new name (`pandas.json_normalize`), which responds with a 404.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42540/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42540/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42541 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42541/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42541/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42541/events | https://github.com/pandas-dev/pandas/pull/42541 | 944,856,182 | MDExOlB1bGxSZXF1ZXN0NjkwMjc1NzQx | 42,541 | REGR: concat(ints, bools) casting to object #42092 | {
"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": "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": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-14T22:58:54Z" | "2021-07-19T15:36:44Z" | "2021-07-15T04:18:39Z" | MEMBER | null | - [x] closes #42092
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/42541/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42541/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42541.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42541",
"merged_at": "2021-07-15T04:18:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42541.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42541"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42542 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42542/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42542/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42542/events | https://github.com/pandas-dev/pandas/pull/42542 | 944,862,617 | MDExOlB1bGxSZXF1ZXN0NjkwMjgxMjk4 | 42,542 | Backport PR #42539 on branch 1.3.x (Revert "CI: runtime warning in npdev build") | {
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-14T23:12:36Z" | "2021-07-16T01:53:30Z" | "2021-07-16T01:53:30Z" | NONE | null | Backport PR #42539: Revert "CI: runtime warning in npdev build" | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42542/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42542/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42542.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42542",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42542.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42542"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42543 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42543/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42543/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42543/events | https://github.com/pandas-dev/pandas/pull/42543 | 944,890,429 | MDExOlB1bGxSZXF1ZXN0NjkwMzA0NjQy | 42,543 | Backport PR #42473: REGR: isin with nullable types with missing values raising | {
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
} | [
{
"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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
},
{
"color": "fef2c0",
"default": false,
"description": "isin method",
"id": 2468482981,
"name": "isin",
"node_id": "MDU6TGFiZWwyNDY4NDgyOTgx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/isin"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 1 | "2021-07-15T00:25:06Z" | "2021-07-16T09:27:25Z" | "2021-07-15T04:17:52Z" | MEMBER | null | Backport PR #42473 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42543/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42543/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42543.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42543",
"merged_at": "2021-07-15T04:17:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42543.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42543"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42544 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42544/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42544/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42544/events | https://github.com/pandas-dev/pandas/pull/42544 | 944,898,752 | MDExOlB1bGxSZXF1ZXN0NjkwMzExNTc3 | 42,544 | TYP: Make components of Suffixes Optional | {
"avatar_url": "https://avatars.githubusercontent.com/u/295504?v=4",
"events_url": "https://api.github.com/users/scravy/events{/privacy}",
"followers_url": "https://api.github.com/users/scravy/followers",
"following_url": "https://api.github.com/users/scravy/following{/other_user}",
"gists_url": "https://api.github.com/users/scravy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scravy",
"id": 295504,
"login": "scravy",
"node_id": "MDQ6VXNlcjI5NTUwNA==",
"organizations_url": "https://api.github.com/users/scravy/orgs",
"received_events_url": "https://api.github.com/users/scravy/received_events",
"repos_url": "https://api.github.com/users/scravy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scravy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scravy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scravy"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 7 | "2021-07-15T00:47:26Z" | "2021-10-04T12:10:50Z" | "2021-10-04T12:10:46Z" | CONTRIBUTOR | null | The documentation on the parameters that actually are of type `Suffixes`:
> *suffixeslist-like, default is (“_x”, “_y”)*
> A length-2 sequence where each element is optionally a string indicating the suffix to add to overlapping column names in left and right respectively. _**Pass a value of None**_ instead of a string to indicate that the column name from left or right should be left as-is, with no suffix. At least one of the values must not be None.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42544/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42544/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42544.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42544",
"merged_at": "2021-10-04T12:10:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42544.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42544"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42545 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42545/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42545/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42545/events | https://github.com/pandas-dev/pandas/issues/42545 | 944,898,942 | MDU6SXNzdWU5NDQ4OTg5NDI= | 42,545 | API: `ExtensionArray.isin` treatment of missing values | {
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
} | [
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
},
{
"color": "fef2c0",
"default": false,
"description": "isin method",
"id": 2468482981,
"name": "isin",
"node_id": "MDU6TGFiZWwyNDY4NDgyOTgx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/isin"
}
] | closed | false | null | [] | null | 2 | "2021-07-15T00:48:01Z" | "2021-09-05T18:48:15Z" | "2021-09-05T18:48:06Z" | MEMBER | null | The current behavior singles out `pd.NA`:
```
In [3]: ser = pd.Series([pd.NA], dtype="Int64")
In [4]: ser.isin([pd.NA])
Out[4]:
0 True
dtype: boolean
In [5]: ser.isin([np.nan])
Out[5]:
0 False
dtype: boolean
```
`StringArray.isin` also follows this behavior, so it is not `MaskedArray` specific.
There was discussion about this being problematic since `_from_sequence` will treat other missing values just the same as `pd.NA` (https://github.com/pandas-dev/pandas/pull/42473#discussion_r667991012). In that case, the output in the second case should also be `True`.
As a final option, both outputs could be `pd.NA`. In #38379 there was discussion of propagating `pd.NA` instead of `True/False` depending on the presence of missing values in the `values` argument. A nice description of that debate is here https://github.com/pandas-dev/pandas/pull/38379#issuecomment-757510449. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42545/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42545/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42546 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42546/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42546/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42546/events | https://github.com/pandas-dev/pandas/pull/42546 | 944,902,106 | MDExOlB1bGxSZXF1ZXN0NjkwMzE0MzQx | 42,546 | CLN: clean sqlalchemy import | {
"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": "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": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-07-15T00:57:11Z" | "2021-08-17T04:23:42Z" | "2021-07-28T01:13:31Z" | MEMBER | null | xref #40686
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42546/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42546/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42546.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42546",
"merged_at": "2021-07-28T01:13:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42546.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42546"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42547 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42547/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42547/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42547/events | https://github.com/pandas-dev/pandas/issues/42547 | 944,934,731 | MDU6SXNzdWU5NDQ5MzQ3MzE= | 42,547 | ENH: count should be integer type in .describe() | {
"avatar_url": "https://avatars.githubusercontent.com/u/64528476?v=4",
"events_url": "https://api.github.com/users/L0Z1K/events{/privacy}",
"followers_url": "https://api.github.com/users/L0Z1K/followers",
"following_url": "https://api.github.com/users/L0Z1K/following{/other_user}",
"gists_url": "https://api.github.com/users/L0Z1K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/L0Z1K",
"id": 64528476,
"login": "L0Z1K",
"node_id": "MDQ6VXNlcjY0NTI4NDc2",
"organizations_url": "https://api.github.com/users/L0Z1K/orgs",
"received_events_url": "https://api.github.com/users/L0Z1K/received_events",
"repos_url": "https://api.github.com/users/L0Z1K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/L0Z1K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/L0Z1K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/L0Z1K"
} | [
{
"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 | [] | null | 1 | "2021-07-15T02:21:12Z" | "2021-07-15T07:29:58Z" | "2021-07-15T07:29:58Z" | NONE | null | #### Is your feature request related to a problem?
```
In[13]:
df = pd.DataFrame([1,2,3], columns=['num'])
df.describe().loc['count']
Out[13]:
num 3.0
Name: count, dtype: float64
```
I think count variable should be integer type because it is "count".
#### Describe the solution you'd like
Before returning the count value, change its type to int or int64.
#### Additional Question
Is there any intentional reason for doing the variable of count so far? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42547/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42547/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42548 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42548/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42548/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42548/events | https://github.com/pandas-dev/pandas/pull/42548 | 944,983,059 | MDExOlB1bGxSZXF1ZXN0NjkwMzgwNzAx | 42,548 | Backport PR #42541 on branch 1.3.x (REGR: concat(ints, bools) casting to object #42092) | {
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-15T04:19:07Z" | "2021-07-15T12:25:41Z" | "2021-07-15T12:25:41Z" | NONE | null | Backport PR #42541: REGR: concat(ints, bools) casting to object #42092 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42548/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42548/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42548.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42548",
"merged_at": "2021-07-15T12:25:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42548.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42548"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42549 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42549/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42549/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42549/events | https://github.com/pandas-dev/pandas/issues/42549 | 945,466,466 | MDU6SXNzdWU5NDU0NjY0NjY= | 42,549 | BUG: list-like objects are broadcast to each row (1.3 regression) | {
"avatar_url": "https://avatars.githubusercontent.com/u/37126755?v=4",
"events_url": "https://api.github.com/users/erik-hasse/events{/privacy}",
"followers_url": "https://api.github.com/users/erik-hasse/followers",
"following_url": "https://api.github.com/users/erik-hasse/following{/other_user}",
"gists_url": "https://api.github.com/users/erik-hasse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erik-hasse",
"id": 37126755,
"login": "erik-hasse",
"node_id": "MDQ6VXNlcjM3MTI2NzU1",
"organizations_url": "https://api.github.com/users/erik-hasse/orgs",
"received_events_url": "https://api.github.com/users/erik-hasse/received_events",
"repos_url": "https://api.github.com/users/erik-hasse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erik-hasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erik-hasse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erik-hasse"
} | [
{
"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": "f2f989",
"default": false,
"description": "Data where the values are collections (lists, sets, dicts, objects, etc.).",
"id": 2189479765,
"name": "Nested Data",
"node_id": "MDU6TGFiZWwyMTg5NDc5NzY1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nested%20Data"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 47,
"created_at": "2021-10-16T17:29:59Z",
"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.3.x",
"due_on": "2021-11-28T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/91",
"id": 7259169,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91/labels",
"node_id": "MI_kwDOAA0YD84AbsQh",
"number": 91,
"open_issues": 23,
"state": "open",
"title": "1.3.5",
"updated_at": "2021-11-21T13:42:45Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91"
} | 13 | "2021-07-15T14:47:32Z" | "2021-10-16T19:25:34Z" | null | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
This requires both pandas and grpcio-tools.
```python
import subprocess
import sys
import pandas as pd
proto = """
syntax="proto3";
message Data {
repeated float values = 1;
}
"""
with open('data.proto', 'w') as f:
f.write(proto)
subprocess.run([
sys.executable, '-m', 'grpc_tools.protoc', '-I.',
'--python_out=.', '--grpc_python_out=.', 'data.proto'
])
from data_pb2 import Data
proto_data = Data(values=range(3))
print(proto_data.values)
print(type(proto_data.values))
df = pd.DataFrame(index=range(3), data={'a': proto_data.values})
print(df)
```
#### Problem description
On 1.3.0 and the master branch this code prints:
```
[0.0, 1.0, 2.0]
<class 'google.protobuf.pyext._message.RepeatedScalarContainer'>
a
0 [0.0, 1.0, 2.0]
1 [0.0, 1.0, 2.0]
2 [0.0, 1.0, 2.0]
```
The issue seems to arise from #41592. In 1.2.x this object was handled by `_try_cast` in [this else clause](https://github.com/pandas-dev/pandas/blob/1.2.x/pandas/core/construction.py#L495-L496). After that change, it's handled by `construct_1d_arraylike_from_scalar` because [`is_list_like(data)` returns False](https://github.com/pandas-dev/pandas/blob/master/pandas/core/construction.py#L511-L515). Note that [RepeatedScalarContainer](https://github.com/protocolbuffers/protobuf/blob/master/python/google/protobuf/pyext/repeated_scalar_container.cc#L767-L781) implements `PyTypeObject.tp_as_sequence` but not `PyTypeObject.tp_iter`, so `list(proto_data.values)` works fine, but the [`hasattr(obj, "__iter__")` check in `is_list_like`](https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/lib.pyx#L1092-L1102) is False.
Based on all this, I suspect that this same issue will occur on any object which implements `PyTypeObject.tp_as_sequence` but not `PyTypeObject.tp_iter`, however this protobuf object the only example I have right now so I can't test further.
I'm not familiar enough with Cython to provide a full fix, but is there some way to examine the struct fields of `obj` in `is_list_like`? If so, that function could be amended to check `hasattr(obj, "__iter__") or hasattr(obj, "tp_as_sequence")`. If not I think the logic of `sanitize_array` needs to be amended.
#### Expected Output
On 1.2.x this prints:
```
[0.0, 1.0, 2.0]
<class 'google.protobuf.pyext._message.RepeatedScalarContainer'>
a
0 0.0
1 1.0
2 2.0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.8.6.final.0
python-bits : 64
OS : Darwin
OS-release : 20.3.0
Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~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.3.0
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 53.0.0
Cython : 0.29.22
pytest : 6.2.2
hypothesis : 6.3.4
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</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/42549/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42549/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42550 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42550/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42550/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42550/events | https://github.com/pandas-dev/pandas/issues/42550 | 945,538,957 | MDU6SXNzdWU5NDU1Mzg5NTc= | 42,550 | ENH: Series.name should return a string or None | {
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
} | [
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] | open | false | null | [] | null | 7 | "2021-07-15T16:01:35Z" | "2021-07-16T17:36:52Z" | null | CONTRIBUTOR | null | #### Is your feature request related to a problem?
Currently, the constructor for `Series` has the `name` argument as a `str` or `None` . But `Series.name` can return a `Hashable`, e.g., as a result of using `DataFrame.xs()` or `.iloc` on a row of a `DataFrame`.
So this is inconsistent. I think people expect the names of Series to be strings.
#### Describe the solution you'd like
Change the implementation of `Series.name` to return a string or `None`
#### API breaking implications
This is cleaning up the API, IMHO.
#### Describe alternatives you've considered
N/A
#### Additional context
ref: discussion in #42534
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42550/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42550/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42551 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42551/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42551/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42551/events | https://github.com/pandas-dev/pandas/pull/42551 | 945,594,055 | MDExOlB1bGxSZXF1ZXN0NjkwOTAxMzc2 | 42,551 | Backport PR #42538: CI: Run some checks on push on 1.3.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-15T17:12:02Z" | "2021-07-16T09:48:07Z" | "2021-07-15T23:25:27Z" | MEMBER | null | Backport PR #42538 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42551/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42551/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42551.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42551",
"merged_at": "2021-07-15T23:25:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42551.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42551"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42552 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42552/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42552/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42552/events | https://github.com/pandas-dev/pandas/issues/42552 | 945,611,567 | MDU6SXNzdWU5NDU2MTE1Njc= | 42,552 | BUG: in case of dtype mismatch (int vs category), error message from concat is not crystal clear | {
"avatar_url": "https://avatars.githubusercontent.com/u/13206058?v=4",
"events_url": "https://api.github.com/users/yohplala/events{/privacy}",
"followers_url": "https://api.github.com/users/yohplala/followers",
"following_url": "https://api.github.com/users/yohplala/following{/other_user}",
"gists_url": "https://api.github.com/users/yohplala/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yohplala",
"id": 13206058,
"login": "yohplala",
"node_id": "MDQ6VXNlcjEzMjA2MDU4",
"organizations_url": "https://api.github.com/users/yohplala/orgs",
"received_events_url": "https://api.github.com/users/yohplala/received_events",
"repos_url": "https://api.github.com/users/yohplala/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yohplala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yohplala/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yohplala"
} | [
{
"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": "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": "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": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 47,
"created_at": "2021-10-16T17:29:59Z",
"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.3.x",
"due_on": "2021-11-28T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/91",
"id": 7259169,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91/labels",
"node_id": "MI_kwDOAA0YD84AbsQh",
"number": 91,
"open_issues": 23,
"state": "open",
"title": "1.3.5",
"updated_at": "2021-11-21T13:42:45Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91"
} | 12 | "2021-07-15T17:37:44Z" | "2021-11-19T11:00:23Z" | "2021-11-19T09:15:16Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [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
exi = pd.read_parquet('/home/yoh/Documents/code/data/existing.parquet', engine='fastparquet')
new = pd.read_parquet('/home/yoh/Documents/code/data/new.parquet', engine='fastparquet')
to_record = pd.concat([exi, new])
```
Please, find files enclosed. I could not succeed to re-create manually faulty dataframes.
[faulty_dataframes.zip](https://github.com/pandas-dev/pandas/files/6825097/faulty_dataframes.zip)
(size of each is 5 rows x 8 columns)
#### Problem description
Before installation of `pandas 1.3.0`, I was using `pandas 1.2.5` and `fastparquet 0.6.4.dev0` and this extract of data was not causing problem.
After I installed `pandas 1.3.0` the `concat` command is now issuing following error:
```python
to_record = pd.concat([exi, new])
Traceback (most recent call last):
File "<ipython-input-2-9967cb321e9e>", line 4, in <module>
to_record = pd.concat([exi, new])
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 307, in concat
return op.get_result()
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 532, in get_result
new_data = concatenate_managers(
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/internals/concat.py", line 222, in concatenate_managers
values = _concatenate_join_units(join_units, concat_axis, copy=copy)
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/internals/concat.py", line 486, in _concatenate_join_units
to_concat = [
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/internals/concat.py", line 487, in <listcomp>
ju.get_reindexed_values(empty_dtype=empty_dtype, upcasted_na=upcasted_na)
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/internals/concat.py", line 403, in get_reindexed_values
values = self.block.get_values()
File "/home/yoh/anaconda3/lib/python3.8/site-packages/pandas/core/internals/blocks.py", line 1360, in get_values
return np.asarray(values).reshape(self.shape)
ValueError: cannot reshape array of size 5 into shape (1,0)
```
I could notice that using `pyarrow` to read the files back allows having dataframes not causing any error.
I also tried to concat various extract of the dataframes by selecting column one by one, or even several at once, and it does not raise the error. For instance, following ` concat` do not raise trouble:
```python
to_record = pd.concat([exi[['timestamp','period','side']], new[['side','timestamp','period']]])
to_record = pd.concat([exi[['period','id']], new[['id','period']]])
to_record = pd.concat([exi['tracking'], new['tracking']])
# etc...
```
I am at a loss to reduce the trouble to the root cause.
Please, would anyone has some advice?
#### Expected Output
No error :)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.8.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-59-generic
Version : #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 52.0.0.post20210125
Cython : 0.29.23
pytest : 6.2.4
hypothesis : None
sphinx : 4.0.2
blosc : None
feather : None
xlsxwriter : 1.4.4
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.22.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 2021.06.0
fastparquet : 0.6.4.dev0
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : 1.4.19
tables : 3.6.1
tabulate : 0.8.9
xarray : 0.18.2
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42552/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42552/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42553 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42553/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42553/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42553/events | https://github.com/pandas-dev/pandas/pull/42553 | 945,613,283 | MDExOlB1bGxSZXF1ZXN0NjkwOTE3NzMw | 42,553 | Revert "REGR: concat(ints, bools) casting to object #42092" | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [] | closed | false | null | [] | null | 5 | "2021-07-15T17:40:04Z" | "2021-07-17T00:26:49Z" | "2021-07-17T00:26:46Z" | MEMBER | null | Reverts pandas-dev/pandas#42541
This fails ArrayManager.
cc @jbrockmendel | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42553/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42553/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42553.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42553",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42553.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42553"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42554 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42554/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42554/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42554/events | https://github.com/pandas-dev/pandas/pull/42554 | 945,803,449 | MDExOlB1bGxSZXF1ZXN0NjkxMDc5MTE3 | 42,554 | Modified ecosystem.rst to include ibis | {
"avatar_url": "https://avatars.githubusercontent.com/u/78673871?v=4",
"events_url": "https://api.github.com/users/GYvan/events{/privacy}",
"followers_url": "https://api.github.com/users/GYvan/followers",
"following_url": "https://api.github.com/users/GYvan/following{/other_user}",
"gists_url": "https://api.github.com/users/GYvan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GYvan",
"id": 78673871,
"login": "GYvan",
"node_id": "MDQ6VXNlcjc4NjczODcx",
"organizations_url": "https://api.github.com/users/GYvan/orgs",
"received_events_url": "https://api.github.com/users/GYvan/received_events",
"repos_url": "https://api.github.com/users/GYvan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GYvan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GYvan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GYvan"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-15T22:44:41Z" | "2021-07-22T18:37:22Z" | "2021-07-16T13:26:04Z" | CONTRIBUTOR | null | I have added Ibis to pandas ecosystem under the section of Out_of_core. This solves issue #20483
| {
"+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/42554/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42554/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42554.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42554",
"merged_at": "2021-07-16T13:26:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42554.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42554"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42555 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42555/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42555/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42555/events | https://github.com/pandas-dev/pandas/issues/42555 | 945,822,983 | MDU6SXNzdWU5NDU4MjI5ODM= | 42,555 | BUG: Columns/Series with np.array() stop working in v1.2+ | {
"avatar_url": "https://avatars.githubusercontent.com/u/105192?v=4",
"events_url": "https://api.github.com/users/thomasjbradley/events{/privacy}",
"followers_url": "https://api.github.com/users/thomasjbradley/followers",
"following_url": "https://api.github.com/users/thomasjbradley/following{/other_user}",
"gists_url": "https://api.github.com/users/thomasjbradley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thomasjbradley",
"id": 105192,
"login": "thomasjbradley",
"node_id": "MDQ6VXNlcjEwNTE5Mg==",
"organizations_url": "https://api.github.com/users/thomasjbradley/orgs",
"received_events_url": "https://api.github.com/users/thomasjbradley/received_events",
"repos_url": "https://api.github.com/users/thomasjbradley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thomasjbradley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thomasjbradley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thomasjbradley"
} | [
{
"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 | "2021-07-15T23:32:44Z" | "2021-07-16T18:15:49Z" | "2021-07-16T18:15:49Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
## Pandas <1.2.0
import numpy as np
import pandas as pd
data = pd.DataFrame(
{
"admin": [0.0, 0.15, 0.15],
"rate": [
np.array([[0.5, 0.25, 0.25], [1.2, 0.6, 0.3]]),
np.array([[0.0, 0.75, 0.25], [5.5, 0.4, 0.7]]),
np.array([[1.0, 0, 0], [1.0, 0, 0]]),
],
"distrib": [
np.array([0.0, 1.0, 0.0]),
np.array([0.0, 0.0, 1.0]),
np.array([1.0, 0, 0]),
],
}
)
data["base"] = data["admin"] * data["rate"]
data["final"] = data["base"] * data["distrib"] * 2
print(data["final"])
```
Outputs:
```
0 [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
1 [[0.0, 0.0, 0.075], [0.0, 0.0, 0.21]]
2 [[0.3, 0.0, 0.0], [0.3, 0.0, 0.0]]
Name: final, dtype: object
```
#### Problem description
This is kind-of a bug, kind-of a regression, kind-of a feature request.
Prior to version `v1.2.0` we could have Numpy N-d arrays within cells of the DataFrame. We could apply math to them, math columns together, etc. It worked *fairly* well—with a few small hiccups. But it was workable.
With `v1.2.0` Pandas got much more strict on having only scalar values in Series. I understand why—that’s the primary purpose of Pandas DataFrames. But it completely breaks our use case.
Our use case is computing costs for leases within large commercial properties. The costs are distributed into cost pools, matrixes of interior/exterior expenses (as an example). Our cost pools are `3x3` NP arrays. We need to take those cost pools and multiply them by admin fees & redistribute them based on lease conditions etc.
| lease_id | admin_fee | rate_cost_pool |
| --- | --- | --- |
| 1 | 0.15 | [ [4.5,0.5,1.5], [4.5,0.5,1.5], [4.5,0.5,1.5] ] |
| 2 | 0.10 | [ [0.0,0.5,1.5], [0.343,0.5,1.5], [4.5,0.5,2.87] ] |
*Example: multiply each `rate_cost_pool` by their `admin_fee`, etc.*
**With Pandas v1.2.0 this stopped working.** Getting “can only perform ops with numeric values“ `TypeErrors`, etc.
I thought maybe making a new Dtype would allow me to somehow force Pandas to think my NDArrays are “scalar” but couldn’t figure that out. I got close by using `Tensor` from this library:
https://github.com/CODAIT/text-extensions-for-pandas
#### Expected Output
I hope there’s a way to get this working with newer Pandas versions. It’s not sustainable to keep our Pandas version out-of-date.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.8.11.final.0
python-bits : 64
OS : Darwin
OS-release : 20.5.0
Version : Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.21.0
pytz : 2021.1
dateutil : 2.8.2
pip : 21.0.1
setuptools : 57.0.0
Cython : None
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.4.4
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.9.1 (dt dec pq3 ext lo64)
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : 1.3.2
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : 2.7.3
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.4.21
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/42555/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42555/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42556 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42556/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42556/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42556/events | https://github.com/pandas-dev/pandas/pull/42556 | 945,827,742 | MDExOlB1bGxSZXF1ZXN0NjkxMDk5NTcw | 42,556 | CI: Run all GHA checks on backport branch | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-15T23:46:27Z" | "2021-07-16T16:04:23Z" | "2021-07-16T10:38:14Z" | MEMBER | null | - [ ] closes #39696
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
cc @simonjayhawkins
How this was tested
I made a fake 1.3.x branch which is actually just a copy of master.
I applied these changes, and GHA triggered on my fork. I also verifyed that Installing the ssh key and uploading docs were skipped.
See the run here.
https://github.com/lithomas1/pandas/runs/3081634451?check_suite_focus=true
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42556/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42556/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42556.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42556",
"merged_at": "2021-07-16T10:38:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42556.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42556"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42557 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42557/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42557/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42557/events | https://github.com/pandas-dev/pandas/issues/42557 | 945,839,860 | MDU6SXNzdWU5NDU4Mzk4NjA= | 42,557 | BUG: MultiIndex assignment fails to broadcast omitted levels | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/86092192?v=4",
"events_url": "https://api.github.com/users/trevorkask/events{/privacy}",
"followers_url": "https://api.github.com/users/trevorkask/followers",
"following_url": "https://api.github.com/users/trevorkask/following{/other_user}",
"gists_url": "https://api.github.com/users/trevorkask/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trevorkask",
"id": 86092192,
"login": "trevorkask",
"node_id": "MDQ6VXNlcjg2MDkyMTky",
"organizations_url": "https://api.github.com/users/trevorkask/orgs",
"received_events_url": "https://api.github.com/users/trevorkask/received_events",
"repos_url": "https://api.github.com/users/trevorkask/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trevorkask/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trevorkask/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trevorkask"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/86092192?v=4",
"events_url": "https://api.github.com/users/trevorkask/events{/privacy}",
"followers_url": "https://api.github.com/users/trevorkask/followers",
"following_url": "https://api.github.com/users/trevorkask/following{/other_user}",
"gists_url": "https://api.github.com/users/trevorkask/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trevorkask",
"id": 86092192,
"login": "trevorkask",
"node_id": "MDQ6VXNlcjg2MDkyMTky",
"organizations_url": "https://api.github.com/users/trevorkask/orgs",
"received_events_url": "https://api.github.com/users/trevorkask/received_events",
"repos_url": "https://api.github.com/users/trevorkask/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trevorkask/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trevorkask/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trevorkask"
}
] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 4 | "2021-07-16T00:18:56Z" | "2021-08-02T15:16:51Z" | "2021-08-02T15:16:15Z" | CONTRIBUTOR | null | - [X] I have checked that this issue has not already been reported.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
**Note**: Not in a released pandas, only master
---
#### Code Sample
```python
import pandas as pd
mi = pd.MultiIndex.from_product([["a","b"],[1,2],["z","y"]])
df = pd.DataFrame(index=mi,dtype=float)
mi2 = pd.MultiIndex.from_product([["a","b"],[1,2]])
s = pd.Series(index=mi2, dtype=float)
s.iloc[:]=3.14
df["new"] = s
print(df)
```
#### Problem description
In 1.3.0 MultiIndex assignment broadcast missing levels. As of #42231, this no longer works.
#### Expected Output
In master, I see
```
new
a 1 z NaN
y NaN
2 z NaN
y NaN
b 1 z NaN
y NaN
2 z NaN
y NaN
```
In 1.3.0 or 1.2.5, I see
```
new
a 1 z 3.14
y 3.14
2 z 3.14
y 3.14
b 1 z 3.14
y 3.14
2 z 3.14
y 3.14
```
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : f3a6753d2d8abd20cd522920d4dc08555c701bce
python : 3.8.10.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19043
machine : AMD64
processor : AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.4.0.dev0+246.gf3a6753d2d
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 52.0.0.post20210125
Cython : 0.29.23
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.22.0
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
pyxlsb : None
s3fs : None
scipy : 1.7.0
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/42557/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42557/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42558 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42558/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42558/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42558/events | https://github.com/pandas-dev/pandas/pull/42558 | 945,845,184 | MDExOlB1bGxSZXF1ZXN0NjkxMTEzNzkx | 42,558 | CI: Remove xfail for xpassing test | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 4 | "2021-07-16T00:33:53Z" | "2021-07-17T01:31:24Z" | "2021-07-16T13:15:37Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42558/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42558/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42558.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42558",
"merged_at": "2021-07-16T13:15:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42558.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42558"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42559 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42559/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42559/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42559/events | https://github.com/pandas-dev/pandas/issues/42559 | 946,024,237 | MDU6SXNzdWU5NDYwMjQyMzc= | 42,559 | ENH: write to existing sheet of excel file | {
"avatar_url": "https://avatars.githubusercontent.com/u/57793097?v=4",
"events_url": "https://api.github.com/users/fdzuJ/events{/privacy}",
"followers_url": "https://api.github.com/users/fdzuJ/followers",
"following_url": "https://api.github.com/users/fdzuJ/following{/other_user}",
"gists_url": "https://api.github.com/users/fdzuJ/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fdzuJ",
"id": 57793097,
"login": "fdzuJ",
"node_id": "MDQ6VXNlcjU3NzkzMDk3",
"organizations_url": "https://api.github.com/users/fdzuJ/orgs",
"received_events_url": "https://api.github.com/users/fdzuJ/received_events",
"repos_url": "https://api.github.com/users/fdzuJ/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fdzuJ/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fdzuJ/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fdzuJ"
} | [
{
"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 | [] | null | 3 | "2021-07-16T07:32:58Z" | "2021-08-09T06:51:37Z" | "2021-08-09T06:51:37Z" | NONE | null | #### Is your feature request related to a problem?
Prior to [GH40230](https://github.com/pandas-dev/pandas/issues/40230) it was possible to write to existing sheet using code like below. I would like to be able to do it again.
I use it to create excel files with overly compicated and/or regularly changing header requirements.
```python
def write_to_excel(df: pd.DataFrame, mode: str = 'a', form: Path, sheetname: Union[int, str] = 0, **kwargs)
with pd.ExcelWriter(path, mode=mode) as writer:
if mode == 'a':
for sheet, sheet_name in zip(writer.book.worksheets, writer.book.sheetnames)
writer.sheets.setdefault(sheet_name, sheet)
if isinstance(sheetname, int):
sheetname = writer.book.sheetnames[sheetname]
else:
sheetname = sheetname if isinstance(sheetname, str) else 'Sheet1'
df.to_excel(writer, sheet_name=sheetname, engine='openpyxl', **kwargs)
```
#### Describe the solution you'd like
Add `append` option for `if_sheet_exists` parameter
#### API breaking implications
New option for parameter shouldn't break API.
#### Describe alternatives you've considered
This was possible prior to previously mentioned enhancement. Only solution I can think of now is to initiate `ExcelWriter` with `if_sheet_exists='new'` and to copy everything from previously existing sheet before writing dataframe and to rename and delete sheets accordingly later.
| {
"+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/42559/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42559/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42560 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42560/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42560/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42560/events | https://github.com/pandas-dev/pandas/pull/42560 | 946,140,445 | MDExOlB1bGxSZXF1ZXN0NjkxMzU4MTc1 | 42,560 | ENH: Added autofilter parameter to Excel output for both xlsxwriter and openpyxl engines | {
"avatar_url": "https://avatars.githubusercontent.com/u/4128856?v=4",
"events_url": "https://api.github.com/users/Upabjojr/events{/privacy}",
"followers_url": "https://api.github.com/users/Upabjojr/followers",
"following_url": "https://api.github.com/users/Upabjojr/following{/other_user}",
"gists_url": "https://api.github.com/users/Upabjojr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Upabjojr",
"id": 4128856,
"login": "Upabjojr",
"node_id": "MDQ6VXNlcjQxMjg4NTY=",
"organizations_url": "https://api.github.com/users/Upabjojr/orgs",
"received_events_url": "https://api.github.com/users/Upabjojr/received_events",
"repos_url": "https://api.github.com/users/Upabjojr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Upabjojr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Upabjojr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Upabjojr"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | open | false | null | [] | null | 6 | "2021-07-16T10:06:51Z" | "2021-10-18T05:27:43Z" | null | NONE | null | Added autofilter parameter to Excel output for both xlsxwriter and openpyxl engines
- [x] closes #15307
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/42560/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42560/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42560.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42560",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42560.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42560"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42561 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42561/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42561/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42561/events | https://github.com/pandas-dev/pandas/pull/42561 | 946,171,242 | MDExOlB1bGxSZXF1ZXN0NjkxMzg0NTE2 | 42,561 | Backport PR #42556: CI: Run all GHA checks on backport branch | {
"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": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-16T10:49:03Z" | "2021-07-16T13:13:40Z" | "2021-07-16T13:13:29Z" | MEMBER | null | Backport PR #42556 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42561/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42561/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42561.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42561",
"merged_at": "2021-07-16T13:13:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42561.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42561"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42562 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42562/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42562/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42562/events | https://github.com/pandas-dev/pandas/issues/42562 | 946,271,459 | MDU6SXNzdWU5NDYyNzE0NTk= | 42,562 | ENH: add option to DataFrame.read_excel so that excel hidden rows are not imported in the dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/82028655?v=4",
"events_url": "https://api.github.com/users/laurent-mutricy/events{/privacy}",
"followers_url": "https://api.github.com/users/laurent-mutricy/followers",
"following_url": "https://api.github.com/users/laurent-mutricy/following{/other_user}",
"gists_url": "https://api.github.com/users/laurent-mutricy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laurent-mutricy",
"id": 82028655,
"login": "laurent-mutricy",
"node_id": "MDQ6VXNlcjgyMDI4NjU1",
"organizations_url": "https://api.github.com/users/laurent-mutricy/orgs",
"received_events_url": "https://api.github.com/users/laurent-mutricy/received_events",
"repos_url": "https://api.github.com/users/laurent-mutricy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laurent-mutricy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laurent-mutricy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laurent-mutricy"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 0 | "2021-07-16T13:00:00Z" | "2021-08-21T04:28:48Z" | null | NONE | null | #### Is your feature request related to a problem?
I wish DataFrame.read_excel could skip automatically the rows that are hidden in excel. I want to read data from an excel sheet but I want to select within excel the data that will go to the dataFrame. I am using excel filter to select data of interest so some lines are hidden. I can use [this workaround](https://stackoverflow.com/questions/67318473/reading-the-excel-file-into-pandas-data-frame-without-hidden-rows-or-ignore-the) but it implies reading twice the excel sheet which in my case is quite big.
#### Describe the solution you'd like
`DataFrame.read_excel` should get a new parameter `skip_hidden` that is default Fasle but when set to True will `DataFrame.read_excel` will skip the hidden rows
#### API breaking implications
Additionnal parameter to `DataFrame.read_excel` with default value so I guess no API breaking risk.
#### Describe alternatives you've considered
Going for a workaround with `openpyxl` which implies opening twice the excel sheet which is expensive. [stackoverflow example](https://stackoverflow.com/questions/67318473/reading-the-excel-file-into-pandas-data-frame-without-hidden-rows-or-ignore-the)
#### Additional context
looking at `pandas/io/excel/_openpyxl.py` function `get_sheet_data`, considering new parameter to `read_excel` named `skip_hidden`.
modification looks quite simple:
```python
def get_sheet_data(self, sheet, convert_float: bool, skip_hidden: bool) -> list[list[Scalar]]:
if self.book.read_only:
sheet.reset_dimensions()
rowDim=sheet.row_dimensions # added
data: list[list[Scalar]] = []
last_row_with_data = -1
for row_number, row in enumerate(sheet.rows):
converted_row = [self._convert_cell(cell, convert_float) for cell in row]
while converted_row and converted_row[-1] == "":
# trim trailing empty elements
converted_row.pop()
if converted_row:
last_row_with_data = row_number
if not (skip_hidden and rowDim[row_number].hidden) : # added
data.append(converted_row)
# Trim trailing empty rows
data = data[: last_row_with_data + 1]
if len(data) > 0:
# extend rows to max width
max_width = max(len(data_row) for data_row in data)
if min(len(data_row) for data_row in data) < max_width:
empty_cell: list[Scalar] = [""]
data = [
data_row + (max_width - len(data_row)) * empty_cell
for data_row in data
]
return data
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42562/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42562/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42563 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42563/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42563/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42563/events | https://github.com/pandas-dev/pandas/pull/42563 | 946,292,946 | MDExOlB1bGxSZXF1ZXN0NjkxNDg5MzE5 | 42,563 | Backport PR #42558: CI: Remove xfail for xpassing test | {
"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": "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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-16T13:25:07Z" | "2021-07-16T15:02:28Z" | "2021-07-16T15:02:25Z" | MEMBER | null | Backport PR #42558 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42563/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42563/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42563.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42563",
"merged_at": "2021-07-16T15:02:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42563.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42563"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42564 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42564/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42564/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42564/events | https://github.com/pandas-dev/pandas/pull/42564 | 946,294,096 | MDExOlB1bGxSZXF1ZXN0NjkxNDkwMjU2 | 42,564 | Backport PR #42554 on branch 1.3.x (Modified ecosystem.rst to include ibis) | {
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-16T13:26:32Z" | "2021-07-16T15:01:59Z" | "2021-07-16T15:01:59Z" | NONE | null | Backport PR #42554: Modified ecosystem.rst to include ibis | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42564/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42564/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42564.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42564",
"merged_at": "2021-07-16T15:01:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42564.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42564"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42565 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42565/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42565/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42565/events | https://github.com/pandas-dev/pandas/pull/42565 | 946,311,082 | MDExOlB1bGxSZXF1ZXN0NjkxNTA0NDQ2 | 42,565 | ENH: Add support for nullable boolean and integers in Stata writers | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | "2021-07-16T13:47:29Z" | "2021-09-14T16:35:25Z" | "2021-09-14T16:35:22Z" | CONTRIBUTOR | null | Add code that allows nullable arrays to be written
closes #40855
- [X] closes #40855
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/42565/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42565/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42565.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42565",
"merged_at": "2021-09-14T16:35:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42565.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42565"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42566 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42566/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42566/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42566/events | https://github.com/pandas-dev/pandas/issues/42566 | 946,371,483 | MDU6SXNzdWU5NDYzNzE0ODM= | 42,566 | BUG: tqdm progress_apply fails on the latest version of Pandas | {
"avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4",
"events_url": "https://api.github.com/users/davidefiocco/events{/privacy}",
"followers_url": "https://api.github.com/users/davidefiocco/followers",
"following_url": "https://api.github.com/users/davidefiocco/following{/other_user}",
"gists_url": "https://api.github.com/users/davidefiocco/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidefiocco",
"id": 4547987,
"login": "davidefiocco",
"node_id": "MDQ6VXNlcjQ1NDc5ODc=",
"organizations_url": "https://api.github.com/users/davidefiocco/orgs",
"received_events_url": "https://api.github.com/users/davidefiocco/received_events",
"repos_url": "https://api.github.com/users/davidefiocco/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidefiocco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidefiocco/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidefiocco"
} | [
{
"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 | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | "2021-07-16T15:00:14Z" | "2021-07-16T15:19:28Z" | "2021-07-16T15:19:28Z" | 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
from tqdm import tqdm
tqdm.pandas()
df = pd.DataFrame({"a": [0,1,2], "b": [0,1,2]})
df.progress_apply(lambda row: row["b"] + 3, axis = 1)
```
#### Problem description
The snippet above fails with
`AttributeError: 'DataFrame' object has no attribute '_is_builtin_func'`
not sure if this is a compatibility bug with tqdm.
#### Expected Output
```
100%|██████████| 3/3 [00:00<00:00, 627.73it/s]
0 3
1 4
2 5
dtype: int64
```
(works with `pandas==1.2.6`)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.7.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.104+
Version : #1 SMP Sat Jun 5 09:50:34 PDT 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0
numpy : 1.19.5
pytz : 2018.9
dateutil : 2.8.1
pip : 19.3.1
setuptools : 57.0.0
Cython : 0.29.23
pytest : 3.6.4
hypothesis : None
sphinx : 1.8.5
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.2.6
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64)
jinja2 : 2.11.3
IPython : 5.5.0
pandas_datareader: 0.9.0
bs4 : 4.6.3
bottleneck : 1.3.2
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.3
odfpy : None
openpyxl : 2.5.9
pandas_gbq : 0.13.3
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.4.20
tables : 3.4.4
tabulate : 0.8.9
xarray : 0.18.2
xlrd : 1.1.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/42566/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42566/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42567 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42567/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42567/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42567/events | https://github.com/pandas-dev/pandas/pull/42567 | 946,429,263 | MDExOlB1bGxSZXF1ZXN0NjkxNjA0MjE3 | 42,567 | BUG: Groupby min/max with nullable dtypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 13 | "2021-07-16T16:15:27Z" | "2021-09-05T18:04:32Z" | "2021-09-05T01:29:54Z" | MEMBER | null | - [x] closes #41743
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
asvs show no change for non-nullable dtypes | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42567/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42567/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42567.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42567",
"merged_at": "2021-09-05T01:29:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42567.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42567"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42568 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42568/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42568/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42568/events | https://github.com/pandas-dev/pandas/pull/42568 | 946,432,983 | MDExOlB1bGxSZXF1ZXN0NjkxNjA3Mzgz | 42,568 | DEPR: Index.reindex with duplicate index | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-16T16:20:53Z" | "2021-08-09T01:50:41Z" | "2021-08-08T23:10:36Z" | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Discussed on this week's call. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42568/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42568/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42568.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42568",
"merged_at": "2021-08-08T23:10:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42568.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42568"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42569 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42569/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42569/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42569/events | https://github.com/pandas-dev/pandas/pull/42569 | 946,435,532 | MDExOlB1bGxSZXF1ZXN0NjkxNjA5NTc1 | 42,569 | BUG: partial-indexing on MultiIndex with IntervalIndex level | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-16T16:24:46Z" | "2021-07-28T17:37:28Z" | "2021-07-28T01:47:13Z" | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
To see the bug, see the changed `expected` in test_mi_intervalindex_slicing_with_scalar | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42569/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42569/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42569.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42569",
"merged_at": "2021-07-28T01:47:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42569.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42569"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42570 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42570/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42570/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42570/events | https://github.com/pandas-dev/pandas/issues/42570 | 946,446,291 | MDU6SXNzdWU5NDY0NDYyOTE= | 42,570 | BUG: Less helpful `SettingWithCopyWarning` on new pandas version | {
"avatar_url": "https://avatars.githubusercontent.com/u/23620506?v=4",
"events_url": "https://api.github.com/users/ntjess/events{/privacy}",
"followers_url": "https://api.github.com/users/ntjess/followers",
"following_url": "https://api.github.com/users/ntjess/following{/other_user}",
"gists_url": "https://api.github.com/users/ntjess/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ntjess",
"id": 23620506,
"login": "ntjess",
"node_id": "MDQ6VXNlcjIzNjIwNTA2",
"organizations_url": "https://api.github.com/users/ntjess/orgs",
"received_events_url": "https://api.github.com/users/ntjess/received_events",
"repos_url": "https://api.github.com/users/ntjess/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ntjess/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ntjess/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ntjess"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "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": "70e5ca",
"default": false,
"description": "",
"id": 2085877452,
"name": "Copy / view semantics",
"node_id": "MDU6TGFiZWwyMDg1ODc3NDUy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 2 | "2021-07-16T16:42:17Z" | "2021-07-22T22:54:16Z" | "2021-07-22T22:54:16Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import numpy as np
import pandas as pd
df = pd.DataFrame(np.arange(25).reshape(5,5))
def valid_indexes(in_df: pd.DataFrame):
return in_df.loc[:3]
valid = valid_indexes(df)
valid[2] = 3
```
#### Problem description
Before (pandas 1.2.*), the resulting warning showed my own code:
```
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
valid[2] = 3
```
Now, it only shows library code:
```
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
self._set_item(key, value)
```
This is significantly harder to diagnose.
#### Expected Output
The line of code I wrote to produce the error
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.9.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.3.0
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 52.0.0.post20210125
Cython : None
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.4.3
lxml.etree : 4.6.3
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.23.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.2
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.3
sqlalchemy : 1.4.15
tables : None
tabulate : None
xarray : None
xlrd : 2.0.1
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/42570/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42570/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42571 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42571/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42571/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42571/events | https://github.com/pandas-dev/pandas/pull/42571 | 946,469,857 | MDExOlB1bGxSZXF1ZXN0NjkxNjM4NDQz | 42,571 | CI: Fixed a typo in Web and Docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 4 | "2021-07-16T17:20:21Z" | "2021-07-17T00:15:38Z" | "2021-07-16T22:01:44Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
I accidentally made a typo in #42556.
Hopefully works this time. The docs weren't getting uploaded, b/c of this typo. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42571/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42571/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42571.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42571",
"merged_at": "2021-07-16T22:01:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42571.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42571"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42572 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42572/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42572/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42572/events | https://github.com/pandas-dev/pandas/pull/42572 | 946,529,683 | MDExOlB1bGxSZXF1ZXN0NjkxNjg3NzE3 | 42,572 | commenting import modules purpose | {
"avatar_url": "https://avatars.githubusercontent.com/u/66418035?v=4",
"events_url": "https://api.github.com/users/mushahidmehdi/events{/privacy}",
"followers_url": "https://api.github.com/users/mushahidmehdi/followers",
"following_url": "https://api.github.com/users/mushahidmehdi/following{/other_user}",
"gists_url": "https://api.github.com/users/mushahidmehdi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mushahidmehdi",
"id": 66418035,
"login": "mushahidmehdi",
"node_id": "MDQ6VXNlcjY2NDE4MDM1",
"organizations_url": "https://api.github.com/users/mushahidmehdi/orgs",
"received_events_url": "https://api.github.com/users/mushahidmehdi/received_events",
"repos_url": "https://api.github.com/users/mushahidmehdi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mushahidmehdi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mushahidmehdi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mushahidmehdi"
} | [] | closed | false | null | [] | null | 3 | "2021-07-16T19:03:17Z" | "2021-07-17T09:52:13Z" | "2021-07-16T20:27:27Z" | NONE | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42572/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42572/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42572.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42572",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42572.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42572"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42573 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42573/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42573/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42573/events | https://github.com/pandas-dev/pandas/issues/42573 | 946,578,311 | MDU6SXNzdWU5NDY1NzgzMTE= | 42,573 | QST: why changing dataframe values impacts the array that the dataframe was created from? | {
"avatar_url": "https://avatars.githubusercontent.com/u/34693887?v=4",
"events_url": "https://api.github.com/users/pinshuai/events{/privacy}",
"followers_url": "https://api.github.com/users/pinshuai/followers",
"following_url": "https://api.github.com/users/pinshuai/following{/other_user}",
"gists_url": "https://api.github.com/users/pinshuai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pinshuai",
"id": 34693887,
"login": "pinshuai",
"node_id": "MDQ6VXNlcjM0NjkzODg3",
"organizations_url": "https://api.github.com/users/pinshuai/orgs",
"received_events_url": "https://api.github.com/users/pinshuai/received_events",
"repos_url": "https://api.github.com/users/pinshuai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pinshuai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pinshuai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pinshuai"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "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"
},
{
"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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/75975268?v=4",
"events_url": "https://api.github.com/users/Varun270/events{/privacy}",
"followers_url": "https://api.github.com/users/Varun270/followers",
"following_url": "https://api.github.com/users/Varun270/following{/other_user}",
"gists_url": "https://api.github.com/users/Varun270/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Varun270",
"id": 75975268,
"login": "Varun270",
"node_id": "MDQ6VXNlcjc1OTc1MjY4",
"organizations_url": "https://api.github.com/users/Varun270/orgs",
"received_events_url": "https://api.github.com/users/Varun270/received_events",
"repos_url": "https://api.github.com/users/Varun270/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Varun270/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varun270/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Varun270"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/75975268?v=4",
"events_url": "https://api.github.com/users/Varun270/events{/privacy}",
"followers_url": "https://api.github.com/users/Varun270/followers",
"following_url": "https://api.github.com/users/Varun270/following{/other_user}",
"gists_url": "https://api.github.com/users/Varun270/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Varun270",
"id": 75975268,
"login": "Varun270",
"node_id": "MDQ6VXNlcjc1OTc1MjY4",
"organizations_url": "https://api.github.com/users/Varun270/orgs",
"received_events_url": "https://api.github.com/users/Varun270/received_events",
"repos_url": "https://api.github.com/users/Varun270/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Varun270/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varun270/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Varun270"
}
] | null | 5 | "2021-07-16T20:29:41Z" | "2021-07-20T22:24:29Z" | "2021-07-20T22:24:28Z" | 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
```python
>>> import numpy as np
>>> import pandas as pd
>>> mat = np.array([[1,2], [2,3]])
>>> mat
array([[1, 2],
[2, 3]])
>>> df = pd.DataFrame(mat)
>>> df.iloc[0,1] = 4
>>> mat
array([[1, 4],
[2, 3]])
```
Why the value in the original `mat` is also changed? I am not sure if this is a bug or Pandas' way of doing things. I found it to be very confusing. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42573/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42573/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42574 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42574/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42574/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42574/events | https://github.com/pandas-dev/pandas/pull/42574 | 946,592,302 | MDExOlB1bGxSZXF1ZXN0NjkxNzM5NTE0 | 42,574 | DOC: Correct singular "die"/plural "dice" | {
"avatar_url": "https://avatars.githubusercontent.com/u/8976360?v=4",
"events_url": "https://api.github.com/users/drewlevitt/events{/privacy}",
"followers_url": "https://api.github.com/users/drewlevitt/followers",
"following_url": "https://api.github.com/users/drewlevitt/following{/other_user}",
"gists_url": "https://api.github.com/users/drewlevitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drewlevitt",
"id": 8976360,
"login": "drewlevitt",
"node_id": "MDQ6VXNlcjg5NzYzNjA=",
"organizations_url": "https://api.github.com/users/drewlevitt/orgs",
"received_events_url": "https://api.github.com/users/drewlevitt/received_events",
"repos_url": "https://api.github.com/users/drewlevitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drewlevitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drewlevitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drewlevitt"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 3 | "2021-07-16T20:58:02Z" | "2021-07-22T17:55:16Z" | "2021-07-22T17:55:06Z" | CONTRIBUTOR | null | Minor change to DataFrame.plot.hist documentation: "Dice" is traditionally plural (one die, two dice). Nowadays it can also be singular, but "die" is clearer. "Dices" is simply not a thing.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42574/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42574/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42574.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42574",
"merged_at": "2021-07-22T17:55:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42574.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42574"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42575 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42575/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42575/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42575/events | https://github.com/pandas-dev/pandas/pull/42575 | 946,612,267 | MDExOlB1bGxSZXF1ZXN0NjkxNzU2NjE0 | 42,575 | Revert "PERF: tighten _should_compare for MultiIndex" | {
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 4 | "2021-07-16T21:39:40Z" | "2021-07-25T14:42:48Z" | "2021-07-25T14:20:50Z" | MEMBER | null | Reverts pandas-dev/pandas#42231
This introduced a bug discussed in #42231. The long-term fix is in MultiIndex.get_indexer, but that's going to take me a little while to get done. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42575/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42575/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42575.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42575",
"merged_at": "2021-07-25T14:20:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42575.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42575"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42576 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42576/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42576/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42576/events | https://github.com/pandas-dev/pandas/pull/42576 | 946,615,394 | MDExOlB1bGxSZXF1ZXN0NjkxNzU5MjUx | 42,576 | BUG: concat bool+int with ArrayManager | {
"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": "1d76db",
"default": false,
"description": "",
"id": 3165546917,
"name": "ArrayManager",
"node_id": "MDU6TGFiZWwzMTY1NTQ2OTE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ArrayManager"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-16T21:47:26Z" | "2021-07-19T16:27:29Z" | "2021-07-19T15:35:24Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42576/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42576/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42576.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42576",
"merged_at": "2021-07-19T15:35:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42576.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42576"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42577 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42577/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42577/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42577/events | https://github.com/pandas-dev/pandas/pull/42577 | 946,620,131 | MDExOlB1bGxSZXF1ZXN0NjkxNzYzMzIy | 42,577 | BUG: Series(dask.array) GH#38645 | {
"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": "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": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 6 | "2021-07-16T21:59:34Z" | "2021-07-20T12:17:38Z" | "2021-07-20T12:17:05Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This should close #38645 in conjunction with dask/dask#7888, will hold off on closing the issue until @jsignell confirms. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42577/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42577/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42577.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42577",
"merged_at": "2021-07-20T12:17:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42577.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42577"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42578 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42578/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42578/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42578/events | https://github.com/pandas-dev/pandas/pull/42578 | 946,621,183 | MDExOlB1bGxSZXF1ZXN0NjkxNzY0MjI0 | 42,578 | Backport PR #42571 on branch 1.3.x (CI: Fixed a typo in Web and Docs) | {
"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"
},
{
"color": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 1 | "2021-07-16T22:02:13Z" | "2021-07-17T00:35:14Z" | "2021-07-17T00:35:14Z" | NONE | null | Backport PR #42571: CI: Fixed a typo in Web and 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/42578/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42578/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42578.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42578",
"merged_at": "2021-07-17T00:35:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42578.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42578"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42579 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42579/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42579/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42579/events | https://github.com/pandas-dev/pandas/pull/42579 | 946,623,604 | MDExOlB1bGxSZXF1ZXN0NjkxNzY2MzI4 | 42,579 | BUG: DataFrame.copy not consolidating | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 7 | "2021-07-16T22:07:40Z" | "2021-07-23T01:07:37Z" | "2021-07-23T01:02:27Z" | MEMBER | null | - [x] closes #42477
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
@mzeitlin11 did you want to suggest an improved warning message for .insert? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42579/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42579/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42579.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42579",
"merged_at": "2021-07-23T01:02:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42579.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42579"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42580 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42580/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42580/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42580/events | https://github.com/pandas-dev/pandas/issues/42580 | 946,669,343 | MDU6SXNzdWU5NDY2NjkzNDM= | 42,580 | ENH/CI: Cache packages installed from conda | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "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": "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"
}
] | open | false | null | [] | null | 2 | "2021-07-17T00:42:49Z" | "2021-09-07T22:01:37Z" | null | MEMBER | null | Currently, I think we are downloading all the packages every time CI is run. This takes a long time(~5-10 min. on azure) and makes CI flakier, since sometimes we can't connect to the Anaconda servers, and sometimes we timeout on Azure. We should cache the packages downloaded and only check for updates everytime the CI is run. I think we're doing some form of this on GHA, but we should also do it on azure.
cc @fangchenli
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42580/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42580/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42581 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42581/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42581/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42581/events | https://github.com/pandas-dev/pandas/pull/42581 | 946,692,670 | MDExOlB1bGxSZXF1ZXN0NjkxODI0MDg0 | 42,581 | CI: clean Azure Windows | {
"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"
} | [] | closed | false | null | [] | null | 2 | "2021-07-17T02:54:23Z" | "2021-09-07T22:01:25Z" | "2021-09-07T22:01:25Z" | MEMBER | null | try if 4 workers work now and try cache
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42581/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42581/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42581.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42581",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42581.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42581"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42582 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42582/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42582/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42582/events | https://github.com/pandas-dev/pandas/issues/42582 | 946,710,963 | MDU6SXNzdWU5NDY3MTA5NjM= | 42,582 | ENH: col descriptions that'd save in df schemas, helping users avoid creating separate documentation? | {
"avatar_url": "https://avatars.githubusercontent.com/u/53961518?v=4",
"events_url": "https://api.github.com/users/chrisjdixon/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisjdixon/followers",
"following_url": "https://api.github.com/users/chrisjdixon/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisjdixon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisjdixon",
"id": 53961518,
"login": "chrisjdixon",
"node_id": "MDQ6VXNlcjUzOTYxNTE4",
"organizations_url": "https://api.github.com/users/chrisjdixon/orgs",
"received_events_url": "https://api.github.com/users/chrisjdixon/received_events",
"repos_url": "https://api.github.com/users/chrisjdixon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisjdixon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisjdixon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisjdixon"
} | [
{
"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": "56efc9",
"default": false,
"description": "_metadata, .attrs",
"id": 1539579994,
"name": "metadata",
"node_id": "MDU6TGFiZWwxNTM5NTc5OTk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/metadata"
}
] | open | false | null | [] | null | 7 | "2021-07-17T04:43:46Z" | "2021-08-21T19:02:19Z" | null | NONE | null | [Asked at SO](https://stackoverflow.com/questions/68403642/saving-pandas-dataframes-in-formats-including-data-descriptions-or-other-self-do/): I need to share well described data and want to do this in a modern way that avoids managing bureaucratic documentation no one will read. Fields require some description or note (eg. "values don't include ABC because XYZ") which I'd like to associate to columns that'll be saved with `pd.to_<whatever>()`.
[Looks like JSON supports annotations](http://json-schema.org/understanding-json-schema/reference/generic.html#annotations) and I'd love to have the option of using them with pandas, but [couldn't figure out how to](https://stackoverflow.com/questions/68403642/saving-pandas-dataframes-in-formats-including-data-descriptions-or-other-self-do/).
Could we please develop functionality to add descriptions in a convenient way (eg. `df[col].description = 'string'`) and have that save in output schemas? And maybe have that be selectable and show with `df.info(verbose=True)` or similar?
I know documentation is boring but maintaining bureaucratic paperwork is even worse. Also, data documentation is a requirement common to big orgs and schools / unis, and I reckon providing innovative functionality to make boring tasks more enjoyable is an efficient way of getting more people to ~~stop using excel~~ use pandas and newer technology in general, making the world a better place.
Unfortunately I don't understand pandas enough to see how this might be a stupid idea. Is this 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/42582/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42582/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42583 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42583/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42583/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42583/events | https://github.com/pandas-dev/pandas/pull/42583 | 946,717,089 | MDExOlB1bGxSZXF1ZXN0NjkxODQzNjUy | 42,583 | CI: auto-cancel Azure builds in PR | {
"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": "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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-17T05:12:40Z" | "2021-07-21T01:08:39Z" | "2021-07-20T23:47:13Z" | 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/42583/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42583/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42583.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42583",
"merged_at": "2021-07-20T23:47:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42583.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42583"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/42584 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42584/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42584/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42584/events | https://github.com/pandas-dev/pandas/issues/42584 | 946,762,024 | MDU6SXNzdWU5NDY3NjIwMjQ= | 42,584 | BUG: to_datetime(): Unstable default dateformat assumptions | {
"avatar_url": "https://avatars.githubusercontent.com/u/1566213?v=4",
"events_url": "https://api.github.com/users/olippuner/events{/privacy}",
"followers_url": "https://api.github.com/users/olippuner/followers",
"following_url": "https://api.github.com/users/olippuner/following{/other_user}",
"gists_url": "https://api.github.com/users/olippuner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/olippuner",
"id": 1566213,
"login": "olippuner",
"node_id": "MDQ6VXNlcjE1NjYyMTM=",
"organizations_url": "https://api.github.com/users/olippuner/orgs",
"received_events_url": "https://api.github.com/users/olippuner/received_events",
"repos_url": "https://api.github.com/users/olippuner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/olippuner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olippuner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/olippuner"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | "2021-07-17T08:35:55Z" | "2021-07-17T15:08:12Z" | "2021-07-17T15:08: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.
- [ 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
for k in range(9,17):
dstr = '{}-07-2021 15:57:40'.format(k) # assumed format ''%d-%m-%Y %H:%M:%S' eg. in ch/DE
print(' dstr: {} pd.to_datetime(): {}'.format(dstr,pd.to_datetime(dstr)))
Output:
dstr: 9-07-2021 15:57:40 pd.to_datetime(): 2021-**09**-07 15:57:40
dstr: 10-07-2021 15:57:40 pd.to_datetime(): 2021-**10**-07 15:57:40
dstr: 11-07-2021 15:57:40 pd.to_datetime(): 2021-**11**-07 15:57:40
dstr: 12-07-2021 15:57:40 pd.to_datetime(): 2021-**12**-07 15:57:40
dstr: 13-07-2021 15:57:40 pd.to_datetime(): 2021-07-13 15:57:40
dstr: 14-07-2021 15:57:40 pd.to_datetime(): 2021-07-14 15:57:40
dstr: 15-07-2021 15:57:40 pd.to_datetime(): 2021-07-15 15:57:40
dstr: 16-07-2021 15:57:40 pd.to_datetime(): 2021-07-16 15:57:40
```
#### Problem description
It would be ok if pd.to_datetime() assumed a default for parameter format, for example either US-format, or ISO-format '%Y/%m/%d %H:%M:%S'.
Anyhow as the code sample show, to_datetime() changes it's assumptions based on each input string. This is not acceptable and can be very harmful. There is no good in such dynamic parsing strategy.
I guess pd.to_datetime() assume a dateformat of '%m-%d-%Y %H:%M:%S', once this assumption is violated, the decoding strategy changes to
'%d-%m-%Y %H:%M:%S' instead of throwing an exception. Such instability is no good. pd.to_datetime() should work according a given date format. First violation according that date format should throw an exception
#### Expected Output
Any time pd.to_datetime() should work under control of a format string, a datetime string format. This could either be a default or a parameter passed format string.
If no format string is passed as a parameter to_datetime() uses a flexible strategy. As Pandas main scope is to work with DataFrame and Series object, timeseries are a prominent application. Such flexible date format interpretation can here be very destructive. Such behaviour of to_datetime() should not need to be expected and is NOT failsafe.
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : 7c48ff4409c622c582c56a5702373f726de08e96
python : 3.8.8.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : German_Switzerland.1252
pandas : 1.2.5
numpy : 1.20.2
<details>
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.3
setuptools : 52.0.0.post20210125
Cython : 0.29.23
pytest : 6.2.4
hypothesis : None
sphinx : 4.0.2
blosc : None
feather : None
xlsxwriter : 1.4.4
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.22.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 2021.06.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : 1.4.19
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.53.1
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42584/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42584/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42585 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42585/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42585/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42585/events | https://github.com/pandas-dev/pandas/issues/42585 | 946,836,067 | MDU6SXNzdWU5NDY4MzYwNjc= | 42,585 | BUG: interpolate method with 'index' and 'slinear' methods give inconsistent results when there are duplicates in x-axis | {
"avatar_url": "https://avatars.githubusercontent.com/u/70274528?v=4",
"events_url": "https://api.github.com/users/scd75/events{/privacy}",
"followers_url": "https://api.github.com/users/scd75/followers",
"following_url": "https://api.github.com/users/scd75/following{/other_user}",
"gists_url": "https://api.github.com/users/scd75/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scd75",
"id": 70274528,
"login": "scd75",
"node_id": "MDQ6VXNlcjcwMjc0NTI4",
"organizations_url": "https://api.github.com/users/scd75/orgs",
"received_events_url": "https://api.github.com/users/scd75/received_events",
"repos_url": "https://api.github.com/users/scd75/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scd75/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scd75/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scd75"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | open | false | null | [] | null | 5 | "2021-07-17T14:36:12Z" | "2021-08-21T19:02:58Z" | 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.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
# Example 1: x is ascending, it works with both methods (we expect the NaN value to be filled with "50")
df = pd.DataFrame(
{
'x': [-79, -79, 0, 61, 2783],
'y': [-200, -50, np.nan, -50, 1000],
}
).set_index(['x'])
print('Example 1')
print(df.head())
df1 = df.interpolate('index')
df2 = df.interpolate('slinear')
print(df1.head())
print(df2.head())
# Example 2: x is descending, it does not work with any method (seems like the point at position 1 is not taken into account)
df = pd.DataFrame(
{
'x': [79, 79, 0, -61, -2783],
'y': [-200, -50, np.nan, -50, 1000],
}
).set_index(['x'])
print('Example 2')
print(df.head())
df1 = df.interpolate('index')
df2 = df.interpolate('slinear')
print(df1.head())
print(df2.head())
# Example 3: same kind of df as Example 2 (descending x values), but with 20 elements. It works with 'index', not with 'slinear'
df = pd.DataFrame(
{
'x': [79, 79, 0, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -2783],
'y': [-200, -50, np.nan, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, 1000]
}
).set_index(['x'])
print('Example 3')
print(df.head())
df1 = df.interpolate('index')
df2 = df.interpolate('slinear')
print(df1.head())
print(df2.head())
# Example 4: removing just the elements at positions -2 and -3 in both x and y. it fails with both methods
df = pd.DataFrame(
{
'x': [79, 79, 0, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -61, -2783],
'y': [-200, -50, np.nan, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, 1000]
}
).set_index(['x'])
print('Example 4')
print(df.head())
df1 = df.interpolate('index')
df2 = df.interpolate('slinear')
print(df1.head())
print(df2.head())
```
#### Output:
```
Example 1
y
x
-79 -200.0
-79 -50.0
0 NaN
61 -50.0
2783 1000.0
y
x
-79 -200.0
-79 -50.0
0 -50.0
61 -50.0
2783 1000.0
y
x
-79 -200.0
-79 -50.0
0 -50.0
61 -50.0
2783 1000.0
Example 2
y
x
79 -200.0
79 -50.0
0 NaN
-61 -50.0
-2783 1000.0
y
x
79 -200.000000
79 -50.000000
0 -115.357143
-61 -50.000000
-2783 1000.000000
y
x
79 -200.000000
79 -50.000000
0 -115.357143
-61 -50.000000
-2783 1000.000000
Example 3
y
x
79 -200.0
79 -50.0
0 NaN
-61 -50.0
-61 -50.0
y
x
79 -200.0
79 -50.0
0 -50.0
-61 -50.0
-61 -50.0
y
x
79 -200.000000
79 -50.000000
0 -115.357143
-61 -50.000000
-61 -50.000000
Example 4
y
x
79 -200.0
79 -50.0
0 NaN
-61 -50.0
-61 -50.0
y
x
79 -200.000000
79 -50.000000
0 -115.357143
-61 -50.000000
-61 -50.000000
y
x
79 -200.000000
79 -50.000000
0 -115.357143
-61 -50.000000
-61 -50.000000
```
#### Problem description
I am trying to use pandas to interpolate "curves" that can have "steps" (eg. 2 consecutive points with same x-coordinate, but different y-coordinate, or the other way around). There can be an arbitrary number of NaN values between 2 points.
I think this is quite a common use case, and I think i would be cool to have pandas able to perform this kind of "point-to-point" interpolation.
I have been using either "index" or "slinear" methods to do so. While it seems to work in most cases, there seem to be inconsistencies around:
- the fact that x-axis is ordered in ascending (it works - see Example 1 -) or descending order (it fails - see Example 2 -, more precisely it seems to not consider duplicate values of y)
- In some cases, for descendingly sorted x-axis 'slinear' vs 'index' do not yield the same result (it works with 'index' while failing with 'slinear' - see Example 3/4 -) but I really would not figure out what is the root cause, appart length of dataframe. weird..
#### Expected Output
I would like all NA values to be linearly interpolated locally, based on the 'previous' and 'next' points (Side note, for extrapolation, 'nearest'-like approach seems to be the most sensible outcome).
#### Output of ``pd.show_versions()``
<details>
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.7.8.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : None.None
pandas : 1.3.0
numpy : 1.20.3
pytz : 2021.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 : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.7.0
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/42585/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42585/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42586 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42586/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42586/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42586/events | https://github.com/pandas-dev/pandas/pull/42586 | 946,864,236 | MDExOlB1bGxSZXF1ZXN0NjkxOTYyNTUz | 42,586 | POC: disallow mutating in groupby 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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | null | 2 | "2021-07-17T17:20:55Z" | "2021-08-17T14:23:29Z" | "2021-08-17T14:23:26Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42586/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42586/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42586.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42586",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42586.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42586"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42587 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42587/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42587/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42587/events | https://github.com/pandas-dev/pandas/pull/42587 | 946,865,071 | MDExOlB1bGxSZXF1ZXN0NjkxOTYzMTkx | 42,587 | DEPR: Raise FutureWarning when creating empty series without dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-07-17T17:26:03Z" | "2021-07-24T16:32:28Z" | "2021-07-23T23:27:32Z" | MEMBER | null | - [x] closes #30017
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Note, this would make the next release 1.4 for sure.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42587/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42587/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42587.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42587",
"merged_at": "2021-07-23T23:27:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42587.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42587"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42588 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42588/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42588/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42588/events | https://github.com/pandas-dev/pandas/issues/42588 | 946,869,753 | MDU6SXNzdWU5NDY4Njk3NTM= | 42,588 | CI: Fastparquet upgrade broke CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] | closed | false | null | [] | {
"closed_at": "2021-08-15T12:34:44Z",
"closed_issues": 90,
"created_at": "2021-07-23T08:57:52Z",
"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.3.x",
"due_on": "2021-08-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/88",
"id": 6998423,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88/labels",
"node_id": "MI_kwDOAA0YD84AasmX",
"number": 88,
"open_issues": 0,
"state": "closed",
"title": "1.3.2",
"updated_at": "2021-08-28T18:34:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/88"
} | 10 | "2021-07-17T17:54:12Z" | "2021-08-09T06:29:19Z" | "2021-08-08T23:09:18Z" | MEMBER | null | Fastparquet updated to 0.7 which is causing failure.
See these logs from database build for example.
```
___________________________ test_cross_engine_fp_pa ____________________________
[gw1] linux -- Python 3.8.10 /usr/share/miniconda/envs/pandas-dev/bin/python
request = <FixtureRequest for <Function test_cross_engine_fp_pa>>
df_cross_compat = a b d e f
0 a 1 4.0 True 2013-01-01
1 b 2 5.0 False 2013-01-02
2 c 3 6.0 True 2013-01-03
pa = 'pyarrow', fp = 'fastparquet'
def test_cross_engine_fp_pa(request, df_cross_compat, pa, fp):
# cross-compat with differing reading/writing engines
df = df_cross_compat
with tm.ensure_clean() as path:
df.to_parquet(path, engine=fp, compression=None)
with catch_warnings(record=True):
result = read_parquet(path, engine=pa)
> tm.assert_frame_equal(result, df)
E AssertionError: Attributes of DataFrame.iloc[:, 4] (column name="f") are different
E
E Attribute "dtype" are different
E [left]: datetime64[ns, UTC]
E [right]: datetime64[ns]
pandas/tests/io/test_parquet.py:337: AssertionError
______________________ TestParquetFastParquet.test_basic _______________________
[gw1] linux -- Python 3.8.10 /usr/share/miniconda/envs/pandas-dev/bin/python
self = <pandas.tests.io.test_parquet.TestParquetFastParquet object at 0x7fd39d1cc070>
fp = 'fastparquet'
df_full = string string_with_nan ... datetime_tz timedelta
0 a a ... 2013-01-01 00:00:00-05...01-02 00:00:00-05:00 2 days
2 c c ... 2013-01-03 00:00:00-05:00 3 days
[3 rows x 14 columns]
def test_basic(self, fp, df_full):
df = df_full
dti = pd.date_range("20130101", periods=3, tz="US/Eastern")
dti = dti._with_freq(None) # freq doesn't round-trip
df["datetime_tz"] = dti
df["timedelta"] = pd.timedelta_range("1 day", periods=3)
> check_round_trip(df, fp)
pandas/tests/io/test_parquet.py:915:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/tests/io/test_parquet.py:220: in check_round_trip
compare(repeat)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
repeat = 2
def compare(repeat):
for _ in range(repeat):
df.to_parquet(path, **write_kwargs)
with catch_warnings(record=True):
actual = read_parquet(path, **read_kwargs)
> tm.assert_frame_equal(
expected,
actual,
check_names=check_names,
check_like=check_like,
check_dtype=check_dtype,
)
E AssertionError: Attributes of DataFrame.iloc[:, 6] (column name="uint") are different
E
E Attribute "dtype" are different
E [left]: uint8
E [right]: UInt8
pandas/tests/io/test_parquet.py:210: AssertionError
__________________ TestParquetFastParquet.test_bool_with_none __________________
[gw1] linux -- Python 3.8.10 /usr/share/miniconda/envs/pandas-dev/bin/python
self = <pandas.tests.io.test_parquet.TestParquetFastParquet object at 0x7fd39fd34af0>
fp = 'fastparquet'
def test_bool_with_none(self, fp):
df = pd.DataFrame({"a": [True, None, False]})
expected = pd.DataFrame({"a": [1.0, np.nan, 0.0]}, dtype="float16")
> check_round_trip(df, fp, expected=expected)
pandas/tests/io/test_parquet.py:928:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/tests/io/test_parquet.py:220: in check_round_trip
compare(repeat)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
repeat = 2
def compare(repeat):
for _ in range(repeat):
df.to_parquet(path, **write_kwargs)
with catch_warnings(record=True):
actual = read_parquet(path, **read_kwargs)
> tm.assert_frame_equal(
expected,
actual,
check_names=check_names,
check_like=check_like,
check_dtype=check_dtype,
)
E AssertionError: Attributes of DataFrame.iloc[:, 0] (column name="a") are different
E
E Attribute "dtype" are different
E [left]: float16
E [right]: boolean
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42588/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42588/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42589 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42589/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42589/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42589/events | https://github.com/pandas-dev/pandas/pull/42589 | 946,908,143 | MDExOlB1bGxSZXF1ZXN0NjkxOTk1Mjk0 | 42,589 | TST: added test for GH26568 | {
"avatar_url": "https://avatars.githubusercontent.com/u/49785867?v=4",
"events_url": "https://api.github.com/users/Alex-Gregory-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Alex-Gregory-1/followers",
"following_url": "https://api.github.com/users/Alex-Gregory-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Alex-Gregory-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alex-Gregory-1",
"id": 49785867,
"login": "Alex-Gregory-1",
"node_id": "MDQ6VXNlcjQ5Nzg1ODY3",
"organizations_url": "https://api.github.com/users/Alex-Gregory-1/orgs",
"received_events_url": "https://api.github.com/users/Alex-Gregory-1/received_events",
"repos_url": "https://api.github.com/users/Alex-Gregory-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alex-Gregory-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alex-Gregory-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alex-Gregory-1"
} | [] | closed | false | null | [] | null | 0 | "2021-07-17T22:18:33Z" | "2021-07-17T22:23:06Z" | "2021-07-17T22:23:06Z" | CONTRIBUTOR | null | - [x] closes #26568
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] Added a test for #25658.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42589/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42589/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42589.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42589",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42589.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42589"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42590 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42590/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42590/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42590/events | https://github.com/pandas-dev/pandas/pull/42590 | 946,917,275 | MDExOlB1bGxSZXF1ZXN0NjkyMDAyNzYz | 42,590 | TST: added test for issue #26568 | {
"avatar_url": "https://avatars.githubusercontent.com/u/49785867?v=4",
"events_url": "https://api.github.com/users/Alex-Gregory-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Alex-Gregory-1/followers",
"following_url": "https://api.github.com/users/Alex-Gregory-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Alex-Gregory-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alex-Gregory-1",
"id": 49785867,
"login": "Alex-Gregory-1",
"node_id": "MDQ6VXNlcjQ5Nzg1ODY3",
"organizations_url": "https://api.github.com/users/Alex-Gregory-1/orgs",
"received_events_url": "https://api.github.com/users/Alex-Gregory-1/received_events",
"repos_url": "https://api.github.com/users/Alex-Gregory-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alex-Gregory-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alex-Gregory-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alex-Gregory-1"
} | [] | closed | false | null | [] | null | 1 | "2021-07-17T23:24:37Z" | "2021-07-18T13:42:29Z" | "2021-07-18T13:42:29Z" | CONTRIBUTOR | null | - [x] closes #26568
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] Added test for issue #26568
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42590/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42590/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42590.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42590",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42590.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42590"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42591 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42591/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42591/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42591/events | https://github.com/pandas-dev/pandas/pull/42591 | 947,037,736 | MDExOlB1bGxSZXF1ZXN0NjkyMDkxMzMy | 42,591 | BUG: pivot_table with margins=True and numeric columns is buggy | {
"avatar_url": "https://avatars.githubusercontent.com/u/49785867?v=4",
"events_url": "https://api.github.com/users/Alex-Gregory-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Alex-Gregory-1/followers",
"following_url": "https://api.github.com/users/Alex-Gregory-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Alex-Gregory-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alex-Gregory-1",
"id": 49785867,
"login": "Alex-Gregory-1",
"node_id": "MDQ6VXNlcjQ5Nzg1ODY3",
"organizations_url": "https://api.github.com/users/Alex-Gregory-1/orgs",
"received_events_url": "https://api.github.com/users/Alex-Gregory-1/received_events",
"repos_url": "https://api.github.com/users/Alex-Gregory-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alex-Gregory-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alex-Gregory-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alex-Gregory-1"
} | [
{
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-07-18T13:43:21Z" | "2021-07-23T08:53:08Z" | "2021-07-22T21:50:03Z" | CONTRIBUTOR | null | - [x] closes #26568
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] Added test for issue #26568
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42591/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42591/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42591.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42591",
"merged_at": "2021-07-22T21:50:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42591.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42591"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42592 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42592/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42592/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42592/events | https://github.com/pandas-dev/pandas/issues/42592 | 947,039,519 | MDU6SXNzdWU5NDcwMzk1MTk= | 42,592 | What the fucking meaning? Numerical issues were encountered when scaling the data and might not be solved. The standard deviation of the data is probably very close to 0. | {
"avatar_url": "https://avatars.githubusercontent.com/u/4510984?v=4",
"events_url": "https://api.github.com/users/GF-Huang/events{/privacy}",
"followers_url": "https://api.github.com/users/GF-Huang/followers",
"following_url": "https://api.github.com/users/GF-Huang/following{/other_user}",
"gists_url": "https://api.github.com/users/GF-Huang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GF-Huang",
"id": 4510984,
"login": "GF-Huang",
"node_id": "MDQ6VXNlcjQ1MTA5ODQ=",
"organizations_url": "https://api.github.com/users/GF-Huang/orgs",
"received_events_url": "https://api.github.com/users/GF-Huang/received_events",
"repos_url": "https://api.github.com/users/GF-Huang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GF-Huang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GF-Huang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GF-Huang"
} | [
{
"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 | "2021-07-18T13:53:12Z" | "2021-07-18T14:22:32Z" | "2021-07-18T14:22:32Z" | NONE | null | 
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42592/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42592/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42593 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42593/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42593/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42593/events | https://github.com/pandas-dev/pandas/issues/42593 | 947,049,637 | MDU6SXNzdWU5NDcwNDk2Mzc= | 42,593 | ENH: rename, or at least alias, "quantile" method with "fractile" | {
"avatar_url": "https://avatars.githubusercontent.com/u/51399800?v=4",
"events_url": "https://api.github.com/users/venaturum/events{/privacy}",
"followers_url": "https://api.github.com/users/venaturum/followers",
"following_url": "https://api.github.com/users/venaturum/following{/other_user}",
"gists_url": "https://api.github.com/users/venaturum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/venaturum",
"id": 51399800,
"login": "venaturum",
"node_id": "MDQ6VXNlcjUxMzk5ODAw",
"organizations_url": "https://api.github.com/users/venaturum/orgs",
"received_events_url": "https://api.github.com/users/venaturum/received_events",
"repos_url": "https://api.github.com/users/venaturum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/venaturum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venaturum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/venaturum"
} | [
{
"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 | [] | null | 11 | "2021-07-18T14:39:28Z" | "2021-07-19T00:05:02Z" | "2021-07-18T16:35:01Z" | CONTRIBUTOR | null | #### Is your feature request related to a problem?
The method called quantile, is misnamed. What is it calculating is the fractile. A fractile is a number, where fractile(x) = percentile(100x). A quantile is a set of fractiles.
#### Describe the solution you'd like
Fractile becomes an alias of quantile in next non-major release then quantile is removed in next major release, or redefined. An appropriate redefinition would take an integer n, and return an array of n values where the kth value is given by fractile(k/(n+1)) as per https://en.m.wikipedia.org/wiki/Quantile
#### API breaking implications
Removal or redefinition of quantile method will of course not be backwards compatible.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42593/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42593/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42594 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42594/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42594/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42594/events | https://github.com/pandas-dev/pandas/pull/42594 | 947,058,949 | MDExOlB1bGxSZXF1ZXN0NjkyMTA2MjM1 | 42,594 | This is a commit to test my environment | {
"avatar_url": "https://avatars.githubusercontent.com/u/49785867?v=4",
"events_url": "https://api.github.com/users/Alex-Gregory-1/events{/privacy}",
"followers_url": "https://api.github.com/users/Alex-Gregory-1/followers",
"following_url": "https://api.github.com/users/Alex-Gregory-1/following{/other_user}",
"gists_url": "https://api.github.com/users/Alex-Gregory-1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alex-Gregory-1",
"id": 49785867,
"login": "Alex-Gregory-1",
"node_id": "MDQ6VXNlcjQ5Nzg1ODY3",
"organizations_url": "https://api.github.com/users/Alex-Gregory-1/orgs",
"received_events_url": "https://api.github.com/users/Alex-Gregory-1/received_events",
"repos_url": "https://api.github.com/users/Alex-Gregory-1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alex-Gregory-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alex-Gregory-1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alex-Gregory-1"
} | [] | closed | false | null | [] | null | 0 | "2021-07-18T15:24:25Z" | "2021-07-18T16:07:11Z" | "2021-07-18T16:07:11Z" | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] This is a test to see if this passes the CI tests. I will close the pull request after the CI have completed.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42594/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42594/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42594.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42594",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42594.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42594"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42595 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42595/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42595/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42595/events | https://github.com/pandas-dev/pandas/pull/42595 | 947,094,179 | MDExOlB1bGxSZXF1ZXN0NjkyMTMxMzEw | 42,595 | STYLE bump pandas-dev-flaker | {
"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"
}
] | closed | false | null | [] | null | 1 | "2021-07-18T18:37:02Z" | "2021-07-29T20:32:33Z" | "2021-07-29T20:32:33Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42595/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42595/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42595.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42595",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42595.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42595"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42596 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42596/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42596/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42596/events | https://github.com/pandas-dev/pandas/pull/42596 | 947,095,484 | MDExOlB1bGxSZXF1ZXN0NjkyMTMyMzEz | 42,596 | BUG: SeriesGroupBy.nlargest/smallest inconsistent shape | {
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-07-18T18:45:31Z" | "2021-08-06T00:25:16Z" | "2021-08-05T23:33:54Z" | MEMBER | null | - [x] Closes #15272
- [x] Closes #16345
- [x] Closes #29129
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/42596/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42596/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42596.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42596",
"merged_at": "2021-08-05T23:33:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42596.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42596"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42597 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42597/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42597/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42597/events | https://github.com/pandas-dev/pandas/issues/42597 | 947,120,006 | MDU6SXNzdWU5NDcxMjAwMDY= | 42,597 | ENH: Support min/max on ArrowStringArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4",
"events_url": "https://api.github.com/users/mrocklin/events{/privacy}",
"followers_url": "https://api.github.com/users/mrocklin/followers",
"following_url": "https://api.github.com/users/mrocklin/following{/other_user}",
"gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrocklin",
"id": 306380,
"login": "mrocklin",
"node_id": "MDQ6VXNlcjMwNjM4MA==",
"organizations_url": "https://api.github.com/users/mrocklin/orgs",
"received_events_url": "https://api.github.com/users/mrocklin/received_events",
"repos_url": "https://api.github.com/users/mrocklin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrocklin"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "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"
}
] | open | 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"
} | 18 | "2021-07-18T21:22:04Z" | "2021-10-13T12:05:33Z" | null | CONTRIBUTOR | null | ## Motivation
In order for Dask to perform large shuffles (set_index, join on a non-index column, ...) on a column it needs to be able to compute quantiles.
To do this it is useful to compute min/max values.
## What actually breaks
When I try to do this on columns of type `string[pyarrow]` I get the following exception
```python
import pandas as pd
s = pd.Series(["a", "b", "c"]).astype("string[pyarrow]")
s.min()
```
```python-traceback
~/miniconda/lib/python3.8/site-packages/pandas/core/generic.py in min(self, axis, skipna, level, numeric_only, **kwargs)
10825 )
10826 def min(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs):
> 10827 return NDFrame.min(self, axis, skipna, level, numeric_only, **kwargs)
10828
10829 setattr(cls, "min", min)
~/miniconda/lib/python3.8/site-packages/pandas/core/generic.py in min(self, axis, skipna, level, numeric_only, **kwargs)
10348
10349 def min(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs):
> 10350 return self._stat_function(
10351 "min", nanops.nanmin, axis, skipna, level, numeric_only, **kwargs
10352 )
~/miniconda/lib/python3.8/site-packages/pandas/core/generic.py in _stat_function(self, name, func, axis, skipna, level, numeric_only, **kwargs)
10343 name, axis=axis, level=level, skipna=skipna, numeric_only=numeric_only
10344 )
> 10345 return self._reduce(
10346 func, name=name, axis=axis, skipna=skipna, numeric_only=numeric_only
10347 )
~/miniconda/lib/python3.8/site-packages/pandas/core/series.py in _reduce(self, op, name, axis, skipna, numeric_only, filter_type, **kwds)
4380 if isinstance(delegate, ExtensionArray):
4381 # dispatch to ExtensionArray interface
-> 4382 return delegate._reduce(name, skipna=skipna, **kwds)
4383
4384 else:
~/miniconda/lib/python3.8/site-packages/pandas/core/arrays/string_arrow.py in _reduce(self, name, skipna, **kwargs)
377 def _reduce(self, name: str, skipna: bool = True, **kwargs):
378 if name in ["min", "max"]:
--> 379 return getattr(self, name)(skipna=skipna)
380
381 raise TypeError(f"Cannot perform reduction '{name}' with string dtype")
AttributeError: 'ArrowStringArray' object has no attribute 'min'
```
## Solution
I am hopeful that Arrow maybe already has an min/max implementation and they just haven't been hooked up yet. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42597/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42597/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42598 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42598/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42598/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42598/events | https://github.com/pandas-dev/pandas/pull/42598 | 947,131,300 | MDExOlB1bGxSZXF1ZXN0NjkyMTU5NzU2 | 42,598 | TST: Fixing broken doctests in pandas/core | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-18T22:38:09Z" | "2021-07-22T18:46:34Z" | "2021-07-22T18:46:34Z" | MEMBER | null | - [X] xref #22459
Fixing 4 broken doctests, so we can validate the whole `pandas/core` directory. And also, significantly reduce the list of directories/files in the call to validate the doctests. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42598/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42598/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42598.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42598",
"merged_at": "2021-07-22T18:46:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42598.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42598"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42599 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42599/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42599/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42599/events | https://github.com/pandas-dev/pandas/issues/42599 | 947,142,649 | MDU6SXNzdWU5NDcxNDI2NDk= | 42,599 | BUG: Nullable Int64 <NA> behavior inconsistent with np.nan | {
"avatar_url": "https://avatars.githubusercontent.com/u/2761597?v=4",
"events_url": "https://api.github.com/users/alexlenail/events{/privacy}",
"followers_url": "https://api.github.com/users/alexlenail/followers",
"following_url": "https://api.github.com/users/alexlenail/following{/other_user}",
"gists_url": "https://api.github.com/users/alexlenail/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexlenail",
"id": 2761597,
"login": "alexlenail",
"node_id": "MDQ6VXNlcjI3NjE1OTc=",
"organizations_url": "https://api.github.com/users/alexlenail/orgs",
"received_events_url": "https://api.github.com/users/alexlenail/received_events",
"repos_url": "https://api.github.com/users/alexlenail/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexlenail/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexlenail/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexlenail"
} | [
{
"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": "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 | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | "2021-07-18T23:49:02Z" | "2021-07-19T14:47:21Z" | "2021-07-19T14:47:20Z" | CONTRIBUTOR | null | - [ ] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> pd.Series(np.nan) == pd.Series(np.nan)
0 False
>>> pd.Series(np.nan) == pd.Series(np.nan).astype("Int64")
0 <NA>
>>> pd.Series(np.nan).astype("Int64") == pd.Series(np.nan)
0 <NA>
>>> np.nan == np.nan
False
>>> pd.Series(np.nan).astype("Int64").values[0] == pd.Series(np.nan).astype("Int64").values[0]
<NA>
```
#### Problem description
Pandas recently introduced a [Nullable Int64 data type](https://pandas.pydata.org/pandas-docs/stable/user_guide/integer_na.html). I missed the conversation, but I feel like its behavior should be consistent with numpy float nan's here?
pandas 1.2.4
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.10.final.0
python-bits : 64
OS : Darwin
OS-release : 20.4.0
Version : Darwin Kernel Version 20.4.0: Fri Mar 5 01:14:14 PST 2021; root:xnu-7195.101.1~3/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.2.4
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.7.5
pip : 21.1.3
setuptools : 53.0.0
Cython : 0.29.19
pytest : 5.0.1
hypothesis : None
sphinx : 1.6.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.2.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : 2021.06.1
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 4.0.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : 0.8.9
xarray : 0.18.2
xlrd : 1.2.0
xlwt : None
numba : 0.49.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42599/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42599/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42600 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42600/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42600/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42600/events | https://github.com/pandas-dev/pandas/issues/42600 | 947,152,394 | MDU6SXNzdWU5NDcxNTIzOTQ= | 42,600 | ENH: Serialize view of ArrowStringArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4",
"events_url": "https://api.github.com/users/mrocklin/events{/privacy}",
"followers_url": "https://api.github.com/users/mrocklin/followers",
"following_url": "https://api.github.com/users/mrocklin/following{/other_user}",
"gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrocklin",
"id": 306380,
"login": "mrocklin",
"node_id": "MDQ6VXNlcjMwNjM4MA==",
"organizations_url": "https://api.github.com/users/mrocklin/orgs",
"received_events_url": "https://api.github.com/users/mrocklin/received_events",
"repos_url": "https://api.github.com/users/mrocklin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrocklin"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
},
{
"color": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] | open | false | null | [] | null | 4 | "2021-07-19T00:32:53Z" | "2021-07-22T17:51:47Z" | null | CONTRIBUTOR | null | Currently Pandas serializes views of ArrowStringArrays by serailizing the whole thing, rather than a subset. Here is an example:
```python
In [1]: import pandas as pd
In [2]: s = pd.Series([c * 1000 for c in "abcdefghijklmnopqrstuvwxyz"])
In [3]: s
Out[3]:
0 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
1 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
2 cccccccccccccccccccccccccccccccccccccccccccccc...
3 dddddddddddddddddddddddddddddddddddddddddddddd...
4 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
5 ffffffffffffffffffffffffffffffffffffffffffffff...
6 gggggggggggggggggggggggggggggggggggggggggggggg...
7 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
8 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...
9 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
10 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
11 llllllllllllllllllllllllllllllllllllllllllllll...
12 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...
13 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
14 oooooooooooooooooooooooooooooooooooooooooooooo...
15 pppppppppppppppppppppppppppppppppppppppppppppp...
16 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
17 rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...
18 ssssssssssssssssssssssssssssssssssssssssssssss...
19 tttttttttttttttttttttttttttttttttttttttttttttt...
20 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
21 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
22 wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...
23 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
24 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...
25 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
dtype: object
In [4]: import pickle
In [5]: len(pickle.dumps(s))
Out[5]: 26758
In [6]: len(pickle.dumps(s.astype("string[pyarrow]")))
Out[6]: 26891
In [7]: len(pickle.dumps(s.head(5)))
Out[7]: 5632
In [8]: len(pickle.dumps(s.astype("string[pyarrow]").head(5)))
Out[8]: 26891
```
This negatively affects dask dataframe operations that cut up pandas dataframes into small pieces, moves them around to different computers, and then pieces them back together again. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42600/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42600/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42601 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42601/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42601/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42601/events | https://github.com/pandas-dev/pandas/issues/42601 | 947,254,738 | MDU6SXNzdWU5NDcyNTQ3Mzg= | 42,601 | QST: pandas rolling enabling offset even if my index is not datetime | {
"avatar_url": "https://avatars.githubusercontent.com/u/8977910?v=4",
"events_url": "https://api.github.com/users/chivalry123/events{/privacy}",
"followers_url": "https://api.github.com/users/chivalry123/followers",
"following_url": "https://api.github.com/users/chivalry123/following{/other_user}",
"gists_url": "https://api.github.com/users/chivalry123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chivalry123",
"id": 8977910,
"login": "chivalry123",
"node_id": "MDQ6VXNlcjg5Nzc5MTA=",
"organizations_url": "https://api.github.com/users/chivalry123/orgs",
"received_events_url": "https://api.github.com/users/chivalry123/received_events",
"repos_url": "https://api.github.com/users/chivalry123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chivalry123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chivalry123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chivalry123"
} | [
{
"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 | "2021-07-19T04:35:36Z" | "2021-07-19T18:15:01Z" | "2021-07-19T17:09:39Z" | NONE | null | For this dataframe
df = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]},index=[0.1,0.2,0.5,0.7,0.9])
df
B
0.1 0.0
0.2 1.0
0.5 2.0
0.7 NaN
0.9 4.0
I want to perform an offset based rolling like:
df.rolling(0.3).sum()
But I got this error:
> ValueError: window must be an integer
Could anyone help me? my real case involves about 1B rows, and I needed to do groupby().rolling() in the end. The above is just an extreme simplification of my problem. Please help me. 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/42601/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42601/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42602 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42602/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42602/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42602/events | https://github.com/pandas-dev/pandas/pull/42602 | 947,340,806 | MDExOlB1bGxSZXF1ZXN0NjkyMzM2MTU4 | 42,602 | ⬆️ UPGRADE: Autoupdate pre-commit config | {
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D"
} | [] | closed | false | null | [] | null | 1 | "2021-07-19T07:10:28Z" | "2021-07-19T11:02:27Z" | "2021-07-19T11:02:23Z" | CONTRIBUTOR | null | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin
```
</details>
<details>
<summary><em>pip install pre-commit</em></summary>
```Shell
Collecting pre-commit
Downloading pre_commit-2.13.0-py2.py3-none-any.whl (190 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting cfgv>=2.0.0
Downloading cfgv-3.3.0-py2.py3-none-any.whl (7.3 kB)
Collecting identify>=1.0.0
Downloading identify-2.2.11-py2.py3-none-any.whl (98 kB)
Collecting pyyaml>=5.1
Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting virtualenv>=20.0.8
Downloading virtualenv-20.6.0-py2.py3-none-any.whl (5.3 MB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.2-py2.py3-none-any.whl (338 kB)
Collecting six<2,>=1.9.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting backports.entry-points-selectable>=1.0.4
Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.0.2-py2.py3-none-any.whl (10 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Installing collected packages: six, platformdirs, filelock, distlib, backports.entry-points-selectable, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed backports.entry-points-selectable-1.1.0 cfgv-3.3.0 distlib-0.3.2 filelock-3.0.12 identify-2.2.11 nodeenv-1.6.0 platformdirs-2.0.2 pre-commit-2.13.0 pyyaml-5.4.1 six-1.16.0 toml-0.10.2 virtualenv-20.6.0
```
</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>
```Shell
Updating https://github.com/MarcoGorelli/absolufy-imports ... already up to date.
Updating https://github.com/python/black ... [INFO] Initializing environment for https://github.com/python/black.
updating 21.6b0 -> 21.7b0.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... already up to date.
Updating https://github.com/cpplint/cpplint ... [INFO] Initializing environment for https://github.com/cpplint/cpplint.
already up to date.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
already up to date.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
updating v2.21.0 -> v2.21.2.
Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
already up to date.
Updating https://github.com/asottile/yesqa ... already up to date.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[INFO] Installing environment for https://github.com/MarcoGorelli/absolufy-imports.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/python/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/cpplint/cpplint.
[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...
[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://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
absolufy-imports...............................................................................Passed
black..........................................................................................Passed
codespell......................................................................................Passed
Debug Statements (Python)......................................................................Passed
Fix End of Files...............................................................................Passed
Trim Trailing Whitespace.......................................................................Passed
cpplint........................................................................................Passed
flake8.........................................................................................Passed
flake8 (cython)................................................................................Passed
flake8 (cython template).......................................................................Passed
isort..........................................................................................Passed
pyupgrade......................................................................................Passed
rst ``code`` is two backticks..................................................................Passed
rst directives end with two colons.............................................................Passed
rst ``inline code`` next to normal text........................................................Passed
Strip unnecessary `# noqa`s....................................................................Passed
flake8-rst.....................................................................................Passed
Unwanted patterns..............................................................................Passed
Generate pip dependency from conda.............................................................Passed
Check flake8 version is synced across flake8, yesqa, and environment.yml.......................Passed
Validate correct capitalization among titles in documentation..................................Passed
Import pandas.array as pd_array in core........................................................Passed
Use bool_t instead of bool in pandas/core/generic.py...........................................Passed
```
</details>
</details>
## Changed files
<details>
<summary>Changed file: </summary>
- .pre-commit-config.yaml
</details>
<hr>
[:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42602/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42602/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42602.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42602",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42602.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42602"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42603 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42603/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42603/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42603/events | https://github.com/pandas-dev/pandas/issues/42603 | 947,341,661 | MDU6SXNzdWU5NDczNDE2NjE= | 42,603 | BUG: Pandas loc can result in ambiguous result not caught by an exception | {
"avatar_url": "https://avatars.githubusercontent.com/u/20357875?v=4",
"events_url": "https://api.github.com/users/komodovaran/events{/privacy}",
"followers_url": "https://api.github.com/users/komodovaran/followers",
"following_url": "https://api.github.com/users/komodovaran/following{/other_user}",
"gists_url": "https://api.github.com/users/komodovaran/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/komodovaran",
"id": 20357875,
"login": "komodovaran",
"node_id": "MDQ6VXNlcjIwMzU3ODc1",
"organizations_url": "https://api.github.com/users/komodovaran/orgs",
"received_events_url": "https://api.github.com/users/komodovaran/received_events",
"repos_url": "https://api.github.com/users/komodovaran/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/komodovaran/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/komodovaran/subscriptions",
"type": "User",
"url": "https://api.github.com/users/komodovaran"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 3 | "2021-07-19T07:11:27Z" | "2021-08-21T19:04:24Z" | 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
Tested on Pandas 1.3.0.
```python
import pandas as pd
import numpy as np
import pytest
sample_name = ["foo", "foo", "foo"]
sample_number = [3, 3, 3]
y_pred = np.array([[0.1, 0.1, 0.1], [0.9, 0.9, 0.9]]).reshape(-1, 2)
# a df with columns '0' and '1'
df = pd.DataFrame(y_pred, index=[sample_name, sample_number])
# Returns a df, as expected
c1 = df.loc["foo", 3]
print(c1)
assert hasattr(c1, "columns")
# Key error, as expected, because there's no entry 2
with pytest.raises(KeyError):
_c2 = df.loc["foo", 2]
# Now it's a Series of (foo, column 0) instead of a DataFrame!
c3 = df.loc["foo", 0]
print(c3)
assert hasattr(c3, "columns")
```
#### Problem description
When converting arrays to DataFrames, the columns will automatically be enumerated. Obviously this problem is somewhat circumventable by not doing all these implicit conversions. However, it doesn't warn you of this, and the case I describe above can return a Series *or* a DataFrame, depending on which index you query for, which, at least for me, created a decent amount of confusion.
#### Expected Output
I'd imagine it should raise an ambiguity error, similar to https://github.com/pandas-dev/pandas/issues/21080, like
```python
ValueError: '0' is both an index and a column label.
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42603/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42603/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42604 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42604/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42604/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42604/events | https://github.com/pandas-dev/pandas/issues/42604 | 947,578,561 | MDU6SXNzdWU5NDc1Nzg1NjE= | 42,604 | TYP: Improve typing on pandas.core.algorithms.duplicated() | {
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
} | [
{
"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"
},
{
"color": "fc6feb",
"default": false,
"description": "duplicated, drop_duplicates",
"id": 1633019538,
"name": "duplicated",
"node_id": "MDU6TGFiZWwxNjMzMDE5NTM4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/duplicated"
}
] | open | false | null | [] | null | 0 | "2021-07-19T12:00:14Z" | "2021-08-21T19:04:40Z" | null | CONTRIBUTOR | null | Per comment in PR #41985 :
https://github.com/pandas-dev/pandas/pull/41985/files/c14bca375fc1f88b0ebc3fdf9d94bab568d1066a#r672213029
PR updated the docs, which reflected that `pandas.core.algorithms.duplicated()` does accept a `Series` as an argument:
```python
>>> import pandas as pd
>>> from pandas.core.algorithms import duplicated
>>> s=pd.Series([1,2,3,4,2,3,1])
>>> duplicated(s)
array([False, False, False, False, True, True, True])
```
So the input type should be updated.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42604/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42604/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42605 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42605/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42605/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42605/events | https://github.com/pandas-dev/pandas/pull/42605 | 947,588,430 | MDExOlB1bGxSZXF1ZXN0NjkyNTUwNDk0 | 42,605 | DOC: use the commonly accepted capitalization of LaTeX | {
"avatar_url": "https://avatars.githubusercontent.com/u/23830955?v=4",
"events_url": "https://api.github.com/users/partev/events{/privacy}",
"followers_url": "https://api.github.com/users/partev/followers",
"following_url": "https://api.github.com/users/partev/following{/other_user}",
"gists_url": "https://api.github.com/users/partev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/partev",
"id": 23830955,
"login": "partev",
"node_id": "MDQ6VXNlcjIzODMwOTU1",
"organizations_url": "https://api.github.com/users/partev/orgs",
"received_events_url": "https://api.github.com/users/partev/received_events",
"repos_url": "https://api.github.com/users/partev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/partev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/partev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/partev"
} | [] | closed | false | null | [] | null | 1 | "2021-07-19T12:11:02Z" | "2021-07-19T12:28:54Z" | "2021-07-19T12:28:54Z" | CONTRIBUTOR | null | Latex -> LaTeX
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42605/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42605/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42605.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42605",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/42605.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42605"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42606 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42606/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42606/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42606/events | https://github.com/pandas-dev/pandas/issues/42606 | 947,590,330 | MDU6SXNzdWU5NDc1OTAzMzA= | 42,606 | BUG: to_datetime very slow with unsigned ints for unix seconds | {
"avatar_url": "https://avatars.githubusercontent.com/u/852409?v=4",
"events_url": "https://api.github.com/users/cdeil/events{/privacy}",
"followers_url": "https://api.github.com/users/cdeil/followers",
"following_url": "https://api.github.com/users/cdeil/following{/other_user}",
"gists_url": "https://api.github.com/users/cdeil/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cdeil",
"id": 852409,
"login": "cdeil",
"node_id": "MDQ6VXNlcjg1MjQwOQ==",
"organizations_url": "https://api.github.com/users/cdeil/orgs",
"received_events_url": "https://api.github.com/users/cdeil/received_events",
"repos_url": "https://api.github.com/users/cdeil/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cdeil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cdeil/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cdeil"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 6 | "2021-07-19T12:13:07Z" | "2021-08-30T13:12:39Z" | "2021-08-30T13:12:39Z" | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
I had a data pipeline that was terribly slow. Turns out the issue was that all the time was spent in pd.to_datetime calls with unix sec integers as input, because I was passing big-endian ints. With normal ints it's about 1000x faster.
Can anyone reproduce this performance issue?
is it possible to improve on this "gotcha", e.g. by forcing a typecast on input, or even some other way that doesn't require a copy and extra memory?
```
In [10]: %timeit index = pd.to_datetime(np.arange(1_000_000), unit="s", utc=True)
7.83 ms ± 22 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [23]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint32"), unit="s", utc=True)
CPU times: user 4.03 s, sys: 12.5 ms, total: 4.05 s
Wall time: 4.04 s
In [24]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint64"), unit="s", utc=True)
CPU times: user 8.42 s, sys: 12.9 ms, total: 8.44 s
Wall time: 8.45 s
In [25]: %time index = pd.to_datetime(np.arange(1_000_000).astype("int64"), unit="s", utc=True)
CPU times: user 13.1 ms, sys: 4.05 ms, total: 17.2 ms
Wall time: 15.9 ms
In [26]: %time index = pd.to_datetime(np.arange(1_000_000).astype("int32"), unit="s", utc=True)
CPU times: user 13.4 ms, sys: 4.54 ms, total: 18 ms
Wall time: 16.5 ms
```
#### Output of ``pd.show_versions()``
<details>
In [11]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.8.10.final.0
python-bits : 64
OS : Darwin
OS-release : 20.5.0
Version : Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.2.4
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1.2
setuptools : 49.6.0.post20210108
Cython : None
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 3.0.1
IPython : 7.24.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 2021.05.0
fastparquet : None
gcsfs : None
matplotlib : 3.4.2
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 4.0.1
pyxlsb : None
s3fs : None
scipy : 1.6.3
sqlalchemy : 1.4.18
tables : None
tabulate : 0.8.9
xarray : 0.18.2
xlrd : 1.2.0
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42606/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42606/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42607 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42607/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42607/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42607/events | https://github.com/pandas-dev/pandas/pull/42607 | 947,691,557 | MDExOlB1bGxSZXF1ZXN0NjkyNjM5NTQw | 42,607 | TYP: clean for PY3.8 (TypedDict) | {
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-07-19T14:06:39Z" | "2021-07-21T13:12:51Z" | "2021-07-21T11:02:47Z" | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42607/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42607/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42607.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42607",
"merged_at": "2021-07-21T11:02:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42607.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42607"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/42608 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42608/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42608/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42608/events | https://github.com/pandas-dev/pandas/issues/42608 | 947,725,444 | MDU6SXNzdWU5NDc3MjU0NDQ= | 42,608 | BUG: applying value_counts to a column of a grouped dataframe results in inconsistent output types | {
"avatar_url": "https://avatars.githubusercontent.com/u/20189321?v=4",
"events_url": "https://api.github.com/users/HaydenSansum/events{/privacy}",
"followers_url": "https://api.github.com/users/HaydenSansum/followers",
"following_url": "https://api.github.com/users/HaydenSansum/following{/other_user}",
"gists_url": "https://api.github.com/users/HaydenSansum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HaydenSansum",
"id": 20189321,
"login": "HaydenSansum",
"node_id": "MDQ6VXNlcjIwMTg5MzIx",
"organizations_url": "https://api.github.com/users/HaydenSansum/orgs",
"received_events_url": "https://api.github.com/users/HaydenSansum/received_events",
"repos_url": "https://api.github.com/users/HaydenSansum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HaydenSansum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HaydenSansum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HaydenSansum"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | open | false | null | [] | null | 0 | "2021-07-19T14:41:16Z" | "2021-08-21T19:06:02Z" | 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
```python
import pandas as pd
# Test 1 - Group by with value counts returns a series
id_column = ["idA","idA","idA","idA","idA","idA","idB","idB","idB","idB","idB","idB","idB"]
test_bool_value = [True,False,False,False,False,False,True,True,False,False,False,True,True]
test_data = {"id":id_column, "bool_value":test_bool_value}
df = pd.DataFrame(data=test_data)
df_output = df.groupby("id").apply(lambda df: df["bool_value"].value_counts())
print(type(df_output))
# Test 2 - Group by with value counts returns a dataframe (same input df shape with different values)
id_column = ["idA","idA","idA","idA","idA","idA","idB","idB","idB","idB","idB","idB","idB"]
test_bool_value = [True,True,True,True,False,False,True,True,False,False,False,True,True]
test_data = {"id":id_column, "bool_value":test_bool_value}
df = pd.DataFrame(data=test_data)
df_output = df.groupby("id").apply(lambda df: df["bool_value"].value_counts())
print(type(df_output))
```
#### Problem description
When using value_counts() on a column within a groupby - in this instance to count how many True/False values exist within each id grouping - the output type varies between a Series and a DataFrame depending on the specific arrangement of True/False values with no changes to the shape of the incoming DataFrame.
#### Expected Output
Either both should return `<class 'pandas.core.frame.DataFrame'>` or `<class 'pandas.core.series.Series'>` - seeing as the `value_counts()` function returns a Series I would expect the default output from the groupby operation to be a DataFrame.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.89+
Version : #1 SMP Sat Feb 13 19:45:14 PST 2021
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : 6.2.1
hypothesis : None
sphinx : None
blosc : None
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.20.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.13
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : 0.50.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42608/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42608/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42609 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42609/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42609/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42609/events | https://github.com/pandas-dev/pandas/issues/42609 | 947,774,576 | MDU6SXNzdWU5NDc3NzQ1NzY= | 42,609 | ENH: Keeping a GroupBy object after filtering | {
"avatar_url": "https://avatars.githubusercontent.com/u/5038620?v=4",
"events_url": "https://api.github.com/users/G-Guillard/events{/privacy}",
"followers_url": "https://api.github.com/users/G-Guillard/followers",
"following_url": "https://api.github.com/users/G-Guillard/following{/other_user}",
"gists_url": "https://api.github.com/users/G-Guillard/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/G-Guillard",
"id": 5038620,
"login": "G-Guillard",
"node_id": "MDQ6VXNlcjUwMzg2MjA=",
"organizations_url": "https://api.github.com/users/G-Guillard/orgs",
"received_events_url": "https://api.github.com/users/G-Guillard/received_events",
"repos_url": "https://api.github.com/users/G-Guillard/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/G-Guillard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/G-Guillard/subscriptions",
"type": "User",
"url": "https://api.github.com/users/G-Guillard"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | open | false | null | [] | null | 3 | "2021-07-19T15:29:14Z" | "2021-08-21T19:08:57Z" | null | NONE | null | As of today, the result of filtering after grouping is a `DataFrame` :
```
type(df.groupby("foobar").filter(lambda x: len(x)>1)) == pandas.core.frame.DataFrame
```
However in many cases it also makes sense to filter **but keep a DataFrameGroupBy object**.
Surprisingly, I didn’t find such a feature request here, although this topic was raised several times on StackOverflow :
https://stackoverflow.com/questions/36047951/how-to-preserve-pandas-groupby-object-after-filter-operation
https://stackoverflow.com/questions/35832475/how-can-i-filter-a-pandas-groupby-object-and-obtain-a-groupby-object-back
https://stackoverflow.com/questions/36389919/chaining-grouping-filtration-and-aggregation
The last link proposes some interesting workarounds, but they are not convenient or simply fail in more complex cases, when the grouping and filtering is performed on multiple columns. Furthermore, manually re-applying the grouping is neither elegant nor efficient, but most of all it is error-prone in such cases.
Having a specific filter function (or an optional argument to the existing one) to return a filtered `DataFrameGroupBy` object would come very handy. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42609/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42609/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42610 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42610/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42610/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42610/events | https://github.com/pandas-dev/pandas/pull/42610 | 947,780,332 | MDExOlB1bGxSZXF1ZXN0NjkyNzE1NzY0 | 42,610 | Backport PR #42576 on branch 1.3.x (BUG: concat bool+int with ArrayManager) | {
"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": "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": "1d76db",
"default": false,
"description": "",
"id": 3165546917,
"name": "ArrayManager",
"node_id": "MDU6TGFiZWwzMTY1NTQ2OTE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ArrayManager"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-19T15:35:55Z" | "2021-07-19T17:57:07Z" | "2021-07-19T17:57:07Z" | NONE | null | Backport PR #42576: BUG: concat bool+int with ArrayManager | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42610/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42610/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42610.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42610",
"merged_at": "2021-07-19T17:57:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42610.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42610"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42611 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42611/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42611/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42611/events | https://github.com/pandas-dev/pandas/pull/42611 | 947,836,516 | MDExOlB1bGxSZXF1ZXN0NjkyNzYzMzk1 | 42,611 | PERF: select_dtypes | {
"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": "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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-07-19T16:43:50Z" | "2021-07-20T14:34:33Z" | "2021-07-20T12:19:03Z" | MEMBER | null | ```
In [1]: from asv_bench.benchmarks.dtypes import *
In [2]: cls = SelectDtypes
In [3]: self = cls()
In [4]: dtype = "Int32"
In [5]: self.setup(dtype)
In [6]: %timeit self.time_select_dtype_string_exclude(dtype)
1.79 ms ± 50.7 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master
47.7 µs ± 461 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <-- 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/42611/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42611/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42611.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42611",
"merged_at": "2021-07-20T12:19:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42611.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42611"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42612 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42612/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42612/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42612/events | https://github.com/pandas-dev/pandas/pull/42612 | 947,843,259 | MDExOlB1bGxSZXF1ZXN0NjkyNzY5MTM0 | 42,612 | Pin fastparquet | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"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": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 10 | "2021-07-19T16:53:33Z" | "2021-07-20T17:12:50Z" | "2021-07-20T16:57:12Z" | MEMBER | null | - [ ] xref #42588
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Get CI to green. | {
"+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/42612/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42612/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42612.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42612",
"merged_at": "2021-07-20T16:57:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42612.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42612"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42613 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42613/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42613/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42613/events | https://github.com/pandas-dev/pandas/issues/42613 | 947,949,614 | MDU6SXNzdWU5NDc5NDk2MTQ= | 42,613 | PyArrow StringDtype / StringArray fallback policy | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 2 | "2021-07-19T19:15:02Z" | "2021-07-20T11:58:54Z" | null | CONTRIBUTOR | null | In https://github.com/pandas-dev/pandas/issues/35169 / https://github.com/pandas-dev/pandas/issues/42597 we discussed the desired behavior of PyArrow-backed StringArray when a certain method is not implemented in `pyarrow.compute`.
For string methods like `str_normalize`, which aren't currently implemented in `pyarrow.compute`, I believe we (silently) cast from `Pyarrow[string]` to an object-dtype ndarray of Python `str` objects at https://github.com/pandas-dev/pandas/blob/edd5af779a9865e32d22bcd93bf00248565335a1/pandas/core/arrays/string_.py#L527-L528. That's going to be slow and more than doubles the memory usage of the array.
These kinds of performance cliffs are difficult for users to debug. I don't think we should do that conversion on behalf of the user. If something isn't implemented yet, then I think we should raise with a message saying they should convert to `string[python]` dtype first.
If we don't want to raise, we could emit a `PerformanceWarning`, similar to what we do for SparseArray when converting to dense.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42613/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42613/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42614 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42614/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42614/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42614/events | https://github.com/pandas-dev/pandas/pull/42614 | 947,951,485 | MDExOlB1bGxSZXF1ZXN0NjkyODU5MzAx | 42,614 | CI/TYP: remove unneeded stata ignore | {
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
} | [
{
"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": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
},
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 3 | "2021-07-19T19:17:28Z" | "2021-07-19T21:10:47Z" | "2021-07-19T20:23:49Z" | MEMBER | null | Should fix typing failure on master
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42614/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42614/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42614.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42614",
"merged_at": "2021-07-19T20:23:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42614.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42614"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42615 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42615/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42615/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42615/events | https://github.com/pandas-dev/pandas/issues/42615 | 947,969,250 | MDU6SXNzdWU5NDc5NjkyNTA= | 42,615 | QST: how to perform group by rolling efficiently based on datetime index? | {
"avatar_url": "https://avatars.githubusercontent.com/u/8977910?v=4",
"events_url": "https://api.github.com/users/chivalry123/events{/privacy}",
"followers_url": "https://api.github.com/users/chivalry123/followers",
"following_url": "https://api.github.com/users/chivalry123/following{/other_user}",
"gists_url": "https://api.github.com/users/chivalry123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chivalry123",
"id": 8977910,
"login": "chivalry123",
"node_id": "MDQ6VXNlcjg5Nzc5MTA=",
"organizations_url": "https://api.github.com/users/chivalry123/orgs",
"received_events_url": "https://api.github.com/users/chivalry123/received_events",
"repos_url": "https://api.github.com/users/chivalry123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chivalry123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chivalry123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chivalry123"
} | [
{
"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 | 1 | "2021-07-19T19:44:10Z" | "2021-07-20T04:24:48Z" | "2021-07-20T04:24:48Z" | NONE | null | - [ y] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ y] I have asked my usage related question on [StackOverflow](https://stackoverflow.com/questions/68446123/how-to-perform-group-by-rolling-efficiently-based-on-datetime-index?noredirect=1#comment120965466_68446123).
---
#### Question about pandas: how to perform group by rolling efficiently based on datetime index?
let's firstly create a medium size random df:
size_now = 1e5
df = pd.DataFrame({"time":np.random.randint(1000,size=int(size_now)),
"id":np.random.randint(1000,size=int(size_now)),
"data":np.random.randint(1000,size=int(size_now))})
df.time = pd.to_datetime(df.time,unit="s")
df looks like this:
print(df)
executed in 9ms, finished 15:16:05 2021-07-19
time id data
0 1970-01-01 00:15:01 915 299
1 1970-01-01 00:08:30 31 940
2 1970-01-01 00:02:55 925 600
3 1970-01-01 00:12:48 554 935
4 1970-01-01 00:07:43 565 638
... ... ... ...
99995 1970-01-01 00:16:27 707 615
99996 1970-01-01 00:01:06 298 38
99997 1970-01-01 00:14:26 37 43
99998 1970-01-01 00:16:09 66 791
99999 1970-01-01 00:01:45 376 854
I realized rolling sum can be pretty fast:
df.set_index("time").sort_index().rolling("2500ms")["data"].sum()
time
1970-01-01 00:00:00 66.0
1970-01-01 00:00:00 809.0
1970-01-01 00:00:00 879.0
1970-01-01 00:00:00 1329.0
1970-01-01 00:00:00 1729.0
...
1970-01-01 00:16:39 124998.0
1970-01-01 00:16:39 125265.0
1970-01-01 00:16:39 126050.0
1970-01-01 00:16:39 126782.0
1970-01-01 00:16:39 127766.0
Name: data, Length: 100000, dtype: float64
It only took 0.31s to complete the task. However, what I need is group by id and perform rolling on time. So here is my goal:
df.groupby("id").rolling("2500ms",on="time")["data"].sum()
id time
0 1970-01-01 00:05:43 161.0
1970-01-01 00:12:05 288.0
1970-01-01 00:00:35 981.0
1970-01-01 00:00:22 479.0
1970-01-01 00:09:33 834.0
...
999 1970-01-01 00:15:07 28159.0
1970-01-01 00:06:39 29035.0
1970-01-01 00:06:15 29538.0
1970-01-01 00:09:07 29788.0
1970-01-01 00:00:48 30736.0
Name: data, Length: 100000, dtype: float64
But it took 2s to complete the task. I wanted to know if there is much more efficient to do this.
I thought presorting may be helpful, so I tried:
df = df.set_index(["id","time"]).sort_index()
This is very fast too. After this, we just need to cut our dataframe into multiple small frame and do rolling sum and concat them together... so I tried
df.groupby(level=0).rolling("2500ms")
but it gives me this error
> ValueError: window must be an integer
so i tried:
df.groupby(level=0).rolling("2500ms",on=df.index.levels[1]).sum()
this breaks my Jupiter notebook, giving me kernel dead error.
So I tried
df_tmp_list = []
for j in df.index.unique(level=0):
df_tmp = df.loc[j]
df_tmp = df_tmp.rolling("2500ms").sum()
df_tmp["id"] = j
df_tmp_list.append(df_tmp)
# break
pd.concat(df_tmp_list).reset_index().set_index(["id","time"])
This also took 2.6s... What would be the most efficient way for me to achieve?
df.groupby("id").rolling("2500ms",on="time")["data"].sum()
**Edit**
Thanks everyone for answering. It seems everyone runs it much faster than I do. I need 2s, others need 50ms... to be exactly clear, the complete code is:
import pandas as pd
import numpy as np
size_now = 1e5
df = pd.DataFrame({"time":np.random.randint(1000,size=int(size_now)),
"id":np.random.randint(1000,size=int(size_now)),
"data":np.random.randint(1000,size=int(size_now))})
df.time = pd.to_datetime(df.time,unit="s")
%time df.groupby("id").rolling("2500ms",on="time")["data"].sum()
my output is
CPU times: user 2.3 s, sys: 24 ms, total: 2.32 s
Wall time: 2.32 s
I am actually running on AWS-EC2 with 4 cpus and 16GB RAM.I have tried to update packages:
510 conda update pandas
511 conda update numpy
so speed didn't get improved... Any help?I'm very frustrated...
I tried on my MacBook Pro, with 2.8 GHz Quad-Core Intel Core i7 and 16 GB 1600 MHz DDR3. It took 450ms... still much slower than all of you guys.... Please help me...
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42615/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42615/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42616 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42616/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42616/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42616/events | https://github.com/pandas-dev/pandas/pull/42616 | 947,998,811 | MDExOlB1bGxSZXF1ZXN0NjkyODk5NTgw | 42,616 | Backport PR #42614 on branch 1.3.x (CI/TYP: remove unneeded stata ignore) | {
"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"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
},
{
"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": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | "2021-07-19T20:24:00Z" | "2021-07-19T21:46:30Z" | "2021-07-19T21:46:30Z" | NONE | null | Backport PR #42614: CI/TYP: remove unneeded stata ignore | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42616/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42616/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42616.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42616",
"merged_at": "2021-07-19T21:46:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42616.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42616"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42617 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42617/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42617/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42617/events | https://github.com/pandas-dev/pandas/issues/42617 | 948,012,199 | MDU6SXNzdWU5NDgwMTIxOTk= | 42,617 | BUG: DataFrameGroupBy.transform unnecessarily coerces dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | "2021-07-19T20:44:30Z" | "2021-07-21T11:23:54Z" | null | MEMBER | null | Comparing
```
df = pd.DataFrame({'a' : [1], 'b' : [2.], 'c' : ['3']})
res = df.groupby([0]).transform(lambda x: x.max() - x.min())
print(res)
df = pd.DataFrame({'a' : [1], 'b' : [2.]})
res = df.groupby([0]).transform(lambda x: x.max() - x.min())
print(res)
```
gives
```
a b
0 0 0.0
a b
0 0.0 0.0
```
Note that in the first result, the dtype of a starts and ends as integer, whereas in the 2nd, the dtype starts as integer and ends as float.
When the object column (c) is on the frame, we call `_transform_item_by_item` which operates on each column individually, giving the expected dtype in the result. Without the object column, we take the slowpath calling apply. apply returns a Series whose index is ['a', 'b'] with values [0.0, 0.0], where the dtype of column b coerces the dtype of column a into the final result of all floats.
The first example above is deprecated (will raise in a future version), but the second example will still be valid and result in the wrong dtype. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42617/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42617/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42618 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42618/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42618/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42618/events | https://github.com/pandas-dev/pandas/issues/42618 | 948,053,477 | MDU6SXNzdWU5NDgwNTM0Nzc= | 42,618 | BUG: SeriesGroupBy.value_counts() throws IndexError if there is only one group | {
"avatar_url": "https://avatars.githubusercontent.com/u/20247300?v=4",
"events_url": "https://api.github.com/users/sleiken/events{/privacy}",
"followers_url": "https://api.github.com/users/sleiken/followers",
"following_url": "https://api.github.com/users/sleiken/following{/other_user}",
"gists_url": "https://api.github.com/users/sleiken/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sleiken",
"id": 20247300,
"login": "sleiken",
"node_id": "MDQ6VXNlcjIwMjQ3MzAw",
"organizations_url": "https://api.github.com/users/sleiken/orgs",
"received_events_url": "https://api.github.com/users/sleiken/received_events",
"repos_url": "https://api.github.com/users/sleiken/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sleiken/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sleiken/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sleiken"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/42706631?v=4",
"events_url": "https://api.github.com/users/neelmraman/events{/privacy}",
"followers_url": "https://api.github.com/users/neelmraman/followers",
"following_url": "https://api.github.com/users/neelmraman/following{/other_user}",
"gists_url": "https://api.github.com/users/neelmraman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neelmraman",
"id": 42706631,
"login": "neelmraman",
"node_id": "MDQ6VXNlcjQyNzA2NjMx",
"organizations_url": "https://api.github.com/users/neelmraman/orgs",
"received_events_url": "https://api.github.com/users/neelmraman/received_events",
"repos_url": "https://api.github.com/users/neelmraman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neelmraman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neelmraman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neelmraman"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/42706631?v=4",
"events_url": "https://api.github.com/users/neelmraman/events{/privacy}",
"followers_url": "https://api.github.com/users/neelmraman/followers",
"following_url": "https://api.github.com/users/neelmraman/following{/other_user}",
"gists_url": "https://api.github.com/users/neelmraman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neelmraman",
"id": 42706631,
"login": "neelmraman",
"node_id": "MDQ6VXNlcjQyNzA2NjMx",
"organizations_url": "https://api.github.com/users/neelmraman/orgs",
"received_events_url": "https://api.github.com/users/neelmraman/received_events",
"repos_url": "https://api.github.com/users/neelmraman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neelmraman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neelmraman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neelmraman"
}
] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"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.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 5 | "2021-07-19T21:46:34Z" | "2021-07-24T03:29:22Z" | "2021-07-24T03:29:22Z" | 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
pd.DataFrame([[0, 1]], columns=('a', 'b')).groupby('a')['b'].value_counts()
```
```python-traceback
IndexError Traceback (most recent call last)
<ipython-input-53-ab16326ac16f> in <module>
----> 1 pd.DataFrame([[0,1]], columns=('a', 'b')).groupby('a')['b'].value_counts()
~/.venvs/python3/lib/python3.9/site-packages/pandas/core/groupby/generic.py in value_counts(self, normalize, sort, ascending, bins, dropna)
762 if not len(lchanges):
763 inc = lchanges
--> 764 inc[idx] = True # group boundaries are also new values
765 out = np.diff(np.nonzero(np.r_[inc, True])[0]) # value counts
766
IndexError: index 0 is out of bounds for axis 0 with size 0
```
#### Problem description
Calling `value_counts()` on a `SeriesGroupBy` throws an `IndexError` when there is only one group.
#### Expected Output
```python
a b
0 1 1
Name: b, dtype: int64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f00ed8f47020034e752baf0250483053340971b0
python : 3.9.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Apr 12 20:57:45 PDT 2021; root:xnu-6153.141.28.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.3.0
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 54.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.23.0
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 : 4.0.0
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/42618/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42618/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/42619 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42619/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42619/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42619/events | https://github.com/pandas-dev/pandas/pull/42619 | 948,182,288 | MDExOlB1bGxSZXF1ZXN0NjkzMDU4OTI4 | 42,619 | DOC: update redirecting URLs | {
"avatar_url": "https://avatars.githubusercontent.com/u/23830955?v=4",
"events_url": "https://api.github.com/users/partev/events{/privacy}",
"followers_url": "https://api.github.com/users/partev/followers",
"following_url": "https://api.github.com/users/partev/following{/other_user}",
"gists_url": "https://api.github.com/users/partev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/partev",
"id": 23830955,
"login": "partev",
"node_id": "MDQ6VXNlcjIzODMwOTU1",
"organizations_url": "https://api.github.com/users/partev/orgs",
"received_events_url": "https://api.github.com/users/partev/received_events",
"repos_url": "https://api.github.com/users/partev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/partev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/partev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/partev"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-07-20T02:10:07Z" | "2021-08-06T13:29:45Z" | "2021-08-06T04:44:17Z" | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/42619/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42619/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42619.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42619",
"merged_at": "2021-08-06T04:44:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42619.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42619"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/42620 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/42620/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/42620/comments | https://api.github.com/repos/pandas-dev/pandas/issues/42620/events | https://github.com/pandas-dev/pandas/pull/42620 | 948,224,829 | MDExOlB1bGxSZXF1ZXN0NjkzMDk0MjI1 | 42,620 | CLN: move mypy config to pyproject.toml | {
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-07-20T03:59:24Z" | "2021-07-20T19:34:34Z" | "2021-07-20T18:42:09Z" | MEMBER | null | xref #40656 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/42620/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/42620/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/42620.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/42620",
"merged_at": "2021-07-20T18:42:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/42620.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/42620"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.