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/41120 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41120/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41120/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41120/events | https://github.com/pandas-dev/pandas/pull/41120 | 865,998,987 | MDExOlB1bGxSZXF1ZXN0NjIxOTc3ODk3 | 41,120 | Backport PR #41115 on branch 1.2.x (CI: pin numpy in the actions-37 env (pyarrow incompatibility)) | {
"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-06-22T09:35:40Z",
"closed_issues": 50,
"created_at": "2021-04-12T08:10: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.2.x",
"due_on": "2021-05-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/85",
"id": 6650632,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/85/labels",
"node_id": "MDk6TWlsZXN0b25lNjY1MDYzMg==",
"number": 85,
"open_issues": 0,
"state": "closed",
"title": "1.2.5",
"updated_at": "2021-06-23T08:13:15Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/85"
} | 0 | "2021-04-23T10:56:17Z" | "2021-04-23T12:47:48Z" | "2021-04-23T12:47:48Z" | NONE | null | Backport PR #41115: CI: pin numpy in the actions-37 env (pyarrow incompatibility) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41120/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41120/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41120.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41120",
"merged_at": "2021-04-23T12:47:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41120.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41120"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41121 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41121/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41121/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41121/events | https://github.com/pandas-dev/pandas/pull/41121 | 866,062,443 | MDExOlB1bGxSZXF1ZXN0NjIyMDI5NDE0 | 41,121 | CLN: tests.indexes.test_setops.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-23T12:24:45Z" | "2021-04-26T15:12:04Z" | "2021-04-26T14:52:02Z" | CONTRIBUTOR | null | I'm experimenting with subclassing NumericIndex and using the test suite to check if everything passes ok (by adding the new subclass to `indices_dict` in `conftest.py` and making a `makeXIndex` func in `_testing.py.
`COMPATIBLE_INCONSISTENT_PAIRS ` in `test_setops.py` is very tied to specific index classes, so is difficult to use on new index classes. So here's a PR to make this part more friendly to testing subclasses by making it test dtypes instead of index class. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41121/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41121/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41121.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41121",
"merged_at": "2021-04-26T14:52:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41121.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41121"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41122 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41122/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41122/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41122/events | https://github.com/pandas-dev/pandas/pull/41122 | 866,080,412 | MDExOlB1bGxSZXF1ZXN0NjIyMDQ0MDc5 | 41,122 | PERF/REF: Check use of numexpr earlier in the DataFrame operation | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "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": "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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 5 | "2021-04-23T12:49:00Z" | "2021-11-07T19:11:07Z" | "2021-11-07T19:11:07Z" | MEMBER | null | This PR tries to gather some checks about whether numexpr can be used or not which can be done upfront on the DataFrame level, before dispatching to the array_ops.
For example, for a scalar right operand, we can check it only once if it's compatible with numexpr usage. Or for ArrayManager, we can check the size constraint once upfront (since each array has the same size). For those cases, this avoids overhead in `expressions.evaluate`.
To this end, I created a new `can_use_numexpr` that starts to gather some checks (there might be more that can be added), call this up front in `DataFrame._dispatch_frame_op` (this could IMO be bit cleaner with https://github.com/pandas-dev/pandas/pull/39772, but the if/else checks inside `_dispatch_frame_op` work as well). And then the result of `can_use_numexpr` is passed through to the array_ops. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41122/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41122/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41122.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41122",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41122.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41122"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41123 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41123/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41123/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41123/events | https://github.com/pandas-dev/pandas/pull/41123 | 866,109,996 | MDExOlB1bGxSZXF1ZXN0NjIyMDY3OTA2 | 41,123 | CLN: rename the render process in Styler | {
"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": "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-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-23T13:24:50Z" | "2021-04-26T12:35:02Z" | "2021-04-26T12:14:12Z" | CONTRIBUTOR | null | rename `Styler.render` -> `Styler._render_html` and create alias for backwards compat.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41123/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41123/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41123.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41123",
"merged_at": "2021-04-26T12:14:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41123.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41123"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41124 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41124/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41124/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41124/events | https://github.com/pandas-dev/pandas/issues/41124 | 866,114,666 | MDU6SXNzdWU4NjYxMTQ2NjY= | 41,124 | BUG: DataFrameGroupBy.boxplot() ignores selection of variables | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | [
{
"color": "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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] | open | false | null | [] | null | 0 | "2021-04-23T13:30:20Z" | "2021-04-23T13:30:20Z" | null | MEMBER | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: df = pd.DataFrame(index=range(10**6))
In [4]: df['categories'] = np.arange(len(df)) % 4
In [5]: df['data'] = np.random.random(len(df))
In [6]: for i in range(10):
...: df[f'i:{i}'] = np.random.random(len(df))
...:
In [7]: df.groupby('categories')[['data']].boxplot()
Out[7]:
0 AxesSubplot(0.1,0.559091;0.363636x0.340909)
1 AxesSubplot(0.536364,0.559091;0.363636x0.340909)
2 AxesSubplot(0.1,0.15;0.363636x0.340909)
3 AxesSubplot(0.536364,0.15;0.363636x0.340909)
dtype: object
```
... results in the following:

#### Problem description
The variables `i:*` should not appear at all in the plot, given that in ``In [7]``, only ``data`` was selected from the ``DataFrameGroupby``. Neither should the grouping variable. Indeed,
```python
In [8]: df.groupby('categories')[['data']].describe()
Out[8]:
data
count mean std min 25% 50% 75% max
categories
0 250000.0 0.499758 0.288484 2.852768e-07 0.249453 0.499626 0.749729 0.999990
1 250000.0 0.499857 0.288900 7.654410e-06 0.249737 0.499469 0.750530 0.999998
2 250000.0 0.499340 0.288823 7.296400e-07 0.248793 0.498451 0.749593 1.000000
3 250000.0 0.500614 0.288230 1.751182e-06 0.251923 0.501253 0.749567 0.999994
```
#### Expected Output
The desired outcome is obtained with
```python
In [9]: df[['data']].groupby(df['categories'])[['data']].boxplot()
```
...which produces

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.2.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1062.18.1.el7.x86_64
Version : #1 SMP Tue Mar 17 23:49:17 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : it_IT.UTF-8
LOCALE : it_IT.UTF-8
pandas : 1.2.4
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 40.6.2
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41124/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41124/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41125 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41125/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41125/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41125/events | https://github.com/pandas-dev/pandas/issues/41125 | 866,168,031 | MDU6SXNzdWU4NjYxNjgwMzE= | 41,125 | ENH: (Automatically) provide links to examples and the userguide within the documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/8631181?v=4",
"events_url": "https://api.github.com/users/ldorigo/events{/privacy}",
"followers_url": "https://api.github.com/users/ldorigo/followers",
"following_url": "https://api.github.com/users/ldorigo/following{/other_user}",
"gists_url": "https://api.github.com/users/ldorigo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ldorigo",
"id": 8631181,
"login": "ldorigo",
"node_id": "MDQ6VXNlcjg2MzExODE=",
"organizations_url": "https://api.github.com/users/ldorigo/orgs",
"received_events_url": "https://api.github.com/users/ldorigo/received_events",
"repos_url": "https://api.github.com/users/ldorigo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ldorigo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ldorigo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ldorigo"
} | [
{
"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"
}
] | open | false | null | [] | null | 4 | "2021-04-23T14:30:20Z" | "2021-09-02T01:40:52Z" | null | NONE | null | #### Is your feature request related to a problem?
While Panda's documentation is stellar, it often only answers the "how" of a specific function, not the "when" or "why". This makes it hard to know what a specific function should be used for and what common usecases are.
#### Describe the solution you'd like
Matplotlib and Sklear both have a very nice solution to this problem, where they automatically (I think) include links in the end of documentation pages towards examples that use that specific function, and to relevant places in the user guide.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41125/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41125/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41126 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41126/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41126/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41126/events | https://github.com/pandas-dev/pandas/pull/41126 | 866,372,520 | MDExOlB1bGxSZXF1ZXN0NjIyMjc5ODIy | 41,126 | TYP: resample | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-23T19:24:01Z" | "2021-04-28T16:08:59Z" | "2021-04-28T10:17:19Z" | 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/41126/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41126/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41126.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41126",
"merged_at": "2021-04-28T10:17:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41126.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41126"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41127 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41127/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41127/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41127/events | https://github.com/pandas-dev/pandas/issues/41127 | 866,427,038 | MDU6SXNzdWU4NjY0MjcwMzg= | 41,127 | CLN: consider deprecating convert_floats from read_excel | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | "2021-04-23T20:57:21Z" | "2021-07-23T22:10:45Z" | "2021-05-26T11:57:43Z" | CONTRIBUTOR | null | As the [docs](https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#excel-files) explain, the binary spreadsheet formats (xls, xlsb) store all numbers as floats, so by default pandas tries to convert floats to integers if it doesn’t lose information (1.0 --> 1). "You can pass ``convert_float=False` to disable this behavior, which may give a slight performance improvement." I tested this on four file types for a spreadsheet of ~440,000 cells, and recorded the best times out of 10 repetitions:
File type | convert_floats=True | convert_floats=False | speed up
-|-|-|-
xls |1.081|1.036 | 4.2%
xlsb | 3.413 | 3.357 | 1.6%
ods | 27.798 | 27.770 | 0.1%
xlsx | 5.182 | 5.189 | -0.1%
`convert_floats` was probably written for the benefit of .xls files, but the benefit is minor. The .xlsx files even have a slight penalty because openpyxl already converts floats to int where possible, and so pandas converts them back to float if `convert_floats=False`.
Since .xlsx files are now the most common spreadsheet format (citation: google search), and `convert_floats` only exists for performance, is it time to remove `convert_floats`? The spreadsheet engines would keep the behaviour of `convert_floats=True` and the argument would be deprecated. This change would simplify all four engines, and if anybody really needs their ints as floats, they can always specify a `dtype`. Note: this possible deprecation came up in https://github.com/pandas-dev/pandas/issues/8212#issuecomment-54804297 before `dtype` was finalized in `read_excel`.
I can work on this if the community likes the idea. | {
"+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/41127/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41127/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41128 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41128/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41128/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41128/events | https://github.com/pandas-dev/pandas/pull/41128 | 866,465,462 | MDExOlB1bGxSZXF1ZXN0NjIyMzU3MjQz | 41,128 | CLN: remove index keyword from _wrap_aggregated_output | {
"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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-23T22:21:13Z" | "2021-04-26T14:27:37Z" | "2021-04-26T12:52:24Z" | 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/41128/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41128/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41128.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41128",
"merged_at": "2021-04-26T12:52:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41128.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41128"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/41129 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41129/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41129/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41129/events | https://github.com/pandas-dev/pandas/pull/41129 | 866,472,574 | MDExOlB1bGxSZXF1ZXN0NjIyMzYyODM5 | 41,129 | Deprecated usecols with out of bounds indices in read_csv with c engine | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | null | 1 | "2021-04-23T22:40:33Z" | "2021-05-12T18:05:57Z" | "2021-05-12T18:05:56Z" | MEMBER | null | - [x] closes #25623
- [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
Deprecation for c parser | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41129/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41129/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41129.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41129",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41129.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41129"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41130 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41130/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41130/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41130/events | https://github.com/pandas-dev/pandas/pull/41130 | 866,474,385 | MDExOlB1bGxSZXF1ZXN0NjIyMzY0Mzcz | 41,130 | Deprecated usecols with out of bounds indices in read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 10 | "2021-04-23T22:45:54Z" | "2021-05-14T20:19:02Z" | "2021-05-13T23:26:06Z" | MEMBER | null | - [x] xref #25623
- [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
This currently raises
<details>
Traceback (most recent call last):
File "/home/developer/.config/JetBrains/PyCharm2021.1/scratches/scratch_4.py", line 539, in <module>
pd.read_csv('test.csv', header=0, usecols=[0, 10], engine='python')
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/readers.py", line 552, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/readers.py", line 471, in _read
return parser.read(nrows)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/readers.py", line 998, in read
index, columns, col_dict = self._engine.read(nrows)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/python_parser.py", line 285, in read
data, columns = self._exclude_implicit_index(alldata)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/python_parser.py", line 303, in _exclude_implicit_index
names = [names[i] for i in sorted(self._col_indices)]
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers/python_parser.py", line 303, in <listcomp>
names = [names[i] for i in sorted(self._col_indices)]
</details>
IndexError: list index out of range
on master but unfortunately works on 1.2.4, so we can either raise ParserError with 1.2.4 or fix and deprecate then to remove in 2.0, related to #41129
I think fixing and deprecating would be more sensible, but only realised that this works on 1.2.4 after finishing this, so wanted to put up for discussion at least :)
cc @gfyoung
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41130/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41130/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41130.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41130",
"merged_at": "2021-05-13T23:26:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41130.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41130"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41131 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41131/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41131/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41131/events | https://github.com/pandas-dev/pandas/pull/41131 | 866,533,675 | MDExOlB1bGxSZXF1ZXN0NjIyNDExMDc1 | 41,131 | REF: mix NDArrayBacked into Categorical, PandasArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-24T03:09:10Z" | "2021-05-05T14:49:03Z" | "2021-05-05T12:57:43Z" | 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/41131/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41131/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41131.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41131",
"merged_at": "2021-05-05T12:57:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41131.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41131"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41132 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41132/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41132/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41132/events | https://github.com/pandas-dev/pandas/pull/41132 | 866,704,910 | MDExOlB1bGxSZXF1ZXN0NjIyNTU1MDcz | 41,132 | BUG: pd.factorize should not upconvert unique values unnecessarily | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "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 | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-24T09:35:49Z" | "2021-04-26T12:41:35Z" | "2021-04-26T11:42:21Z" | CONTRIBUTOR | null | The uniques returned from `pd.factorize` should keep their original dtype, where possible.
```python
>>> arr =np.array([1,2], dtype="int8")
>>> pd.factorize(arr)
(array([0, 1], dtype=int64), array([1, 2], dtype=int64)) # master
(array([0, 1], dtype=int64), array([1, 2], dtype=int8)) # this PR
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41132/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41132/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41132.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41132",
"merged_at": "2021-04-26T11:42:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41132.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41132"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41133 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41133/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41133/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41133/events | https://github.com/pandas-dev/pandas/pull/41133 | 866,721,811 | MDExOlB1bGxSZXF1ZXN0NjIyNTY2NTg5 | 41,133 | Deprecate inplace in Categorical.reorder_categories. | {
"avatar_url": "https://avatars.githubusercontent.com/u/16047980?v=4",
"events_url": "https://api.github.com/users/OlehKSS/events{/privacy}",
"followers_url": "https://api.github.com/users/OlehKSS/followers",
"following_url": "https://api.github.com/users/OlehKSS/following{/other_user}",
"gists_url": "https://api.github.com/users/OlehKSS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlehKSS",
"id": 16047980,
"login": "OlehKSS",
"node_id": "MDQ6VXNlcjE2MDQ3OTgw",
"organizations_url": "https://api.github.com/users/OlehKSS/orgs",
"received_events_url": "https://api.github.com/users/OlehKSS/received_events",
"repos_url": "https://api.github.com/users/OlehKSS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlehKSS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlehKSS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlehKSS"
} | [
{
"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": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-24T11:12:42Z" | "2021-04-27T08:10:36Z" | "2021-04-26T13:29:27Z" | CONTRIBUTOR | null | - [x] xref #37643
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41133/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41133/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41133.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41133",
"merged_at": "2021-04-26T13:29:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41133.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41133"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41134 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41134/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41134/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41134/events | https://github.com/pandas-dev/pandas/issues/41134 | 866,725,856 | MDU6SXNzdWU4NjY3MjU4NTY= | 41,134 | BUG: AttributeError: 'StringArray' object has no attribute 'tolist' | {
"avatar_url": "https://avatars.githubusercontent.com/u/74990642?v=4",
"events_url": "https://api.github.com/users/aiqc/events{/privacy}",
"followers_url": "https://api.github.com/users/aiqc/followers",
"following_url": "https://api.github.com/users/aiqc/following{/other_user}",
"gists_url": "https://api.github.com/users/aiqc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aiqc",
"id": 74990642,
"login": "aiqc",
"node_id": "MDQ6VXNlcjc0OTkwNjQy",
"organizations_url": "https://api.github.com/users/aiqc/orgs",
"received_events_url": "https://api.github.com/users/aiqc/received_events",
"repos_url": "https://api.github.com/users/aiqc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aiqc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aiqc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aiqc"
} | [
{
"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 | [] | null | 5 | "2021-04-24T11:36:09Z" | "2021-08-20T02:33:02Z" | "2021-08-20T02:33: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.
---
#### Code Sample, a copy-pastable example
```bash
$ pip show pandas
Name: pandas
Version: 1.2.4
```
```python
import pandas as pd
import numpy as np
lzt = ["a","b","c"]
arr = np.array(lzt)
df = pd.DataFrame(arr).astype('string')
srs = df[0]
u = srs.unique()
type(u)
<class 'pandas.core.arrays.string_.StringArray'>
u.dtype == 'string'
True
u.tolist()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'StringArray' object has no attribute 'tolist'
```
#### Problem description
So I tried changing my code to use `list(srs.unique())`, but then all of my numeric dtypes become unserializable for JSON.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.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.2.4
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.5.2
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/41134/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41134/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41135 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41135/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41135/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41135/events | https://github.com/pandas-dev/pandas/issues/41135 | 866,726,983 | MDU6SXNzdWU4NjY3MjY5ODM= | 41,135 | BUG: numpy dtype checker not understand string dtype `TypeError: data type not understood` | {
"avatar_url": "https://avatars.githubusercontent.com/u/74990642?v=4",
"events_url": "https://api.github.com/users/aiqc/events{/privacy}",
"followers_url": "https://api.github.com/users/aiqc/followers",
"following_url": "https://api.github.com/users/aiqc/following{/other_user}",
"gists_url": "https://api.github.com/users/aiqc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aiqc",
"id": 74990642,
"login": "aiqc",
"node_id": "MDQ6VXNlcjc0OTkwNjQy",
"organizations_url": "https://api.github.com/users/aiqc/orgs",
"received_events_url": "https://api.github.com/users/aiqc/received_events",
"repos_url": "https://api.github.com/users/aiqc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aiqc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aiqc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aiqc"
} | [
{
"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": "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 | null | [] | null | 2 | "2021-04-24T11:42:32Z" | "2021-04-25T12:30:59Z" | "2021-04-25T12:30:59Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```bash
$ pip show pandas
Name: pandas
Version: 1.2.4
```
```python
import pandas as pd
import numpy as np
lzt = ["a","b","c"]
arr = np.array(lzt)
df = pd.DataFrame(arr).astype('string')
srs = df[0]
u = srs.unique()
type(u)
<class 'pandas.core.arrays.string_.StringArray'>
u.dtype == 'string'
True
np.issubdtype(u.dtype, np.signedinteger)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/layne/.pyenv/versions/3.7.6/lib/python3.7/site-packages/numpy/core/numerictypes.py", line 393, in issubdtype
arg1 = dtype(arg1).type
TypeError: data type not understood
```
#### Problem description
This might be better off as a numpy issue or a non-issue, but i wanted to check here first. I rely on np parent classes for how i handle different pandas columns of different dtypes. Could 'string' roll up to 'object' type?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.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.2.4
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.5.2
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/41135/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41135/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41136 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41136/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41136/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41136/events | https://github.com/pandas-dev/pandas/pull/41136 | 866,752,530 | MDExOlB1bGxSZXF1ZXN0NjIyNTg4MTIx | 41,136 | add type hint for 'data' argument in DataFrame's from_dict method: Un… | {
"avatar_url": "https://avatars.githubusercontent.com/u/20680161?v=4",
"events_url": "https://api.github.com/users/GrossBetruger/events{/privacy}",
"followers_url": "https://api.github.com/users/GrossBetruger/followers",
"following_url": "https://api.github.com/users/GrossBetruger/following{/other_user}",
"gists_url": "https://api.github.com/users/GrossBetruger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GrossBetruger",
"id": 20680161,
"login": "GrossBetruger",
"node_id": "MDQ6VXNlcjIwNjgwMTYx",
"organizations_url": "https://api.github.com/users/GrossBetruger/orgs",
"received_events_url": "https://api.github.com/users/GrossBetruger/received_events",
"repos_url": "https://api.github.com/users/GrossBetruger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GrossBetruger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GrossBetruger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GrossBetruger"
} | [
{
"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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 2 | "2021-04-24T13:55:57Z" | "2021-06-22T08:21:27Z" | "2021-06-22T08:21:26Z" | NONE | null | …ion[dict, list]
- [ ] 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/41136/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41136/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41136.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41136",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41136.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41136"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41137 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41137/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41137/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41137/events | https://github.com/pandas-dev/pandas/issues/41137 | 866,753,361 | MDU6SXNzdWU4NjY3NTMzNjE= | 41,137 | BUG: groupby mean/median/var should always be float values | {
"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"
}
] | closed | false | {
"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"
} | [
{
"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"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-24T14:00:28Z" | "2021-05-21T13:50:50Z" | "2021-05-21T13:50:50Z" | MEMBER | null | This is value-dependent behavior:
```
print(DataFrame({'a': [1, 3]}).groupby([1, 1]).mean())
```
results in the integer 2, whereas
```
print(DataFrame({'a': [1, 3]}).mean())
```
results in 2.0. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41137/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41137/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41138 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41138/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41138/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41138/events | https://github.com/pandas-dev/pandas/issues/41138 | 866,755,151 | MDU6SXNzdWU4NjY3NTUxNTE= | 41,138 | Method .copy(deep=False) fails to break references when values of the DataFrame/Series are lists | {
"avatar_url": "https://avatars.githubusercontent.com/u/51215131?v=4",
"events_url": "https://api.github.com/users/nicolasakf/events{/privacy}",
"followers_url": "https://api.github.com/users/nicolasakf/followers",
"following_url": "https://api.github.com/users/nicolasakf/following{/other_user}",
"gists_url": "https://api.github.com/users/nicolasakf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nicolasakf",
"id": 51215131,
"login": "nicolasakf",
"node_id": "MDQ6VXNlcjUxMjE1MTMx",
"organizations_url": "https://api.github.com/users/nicolasakf/orgs",
"received_events_url": "https://api.github.com/users/nicolasakf/received_events",
"repos_url": "https://api.github.com/users/nicolasakf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nicolasakf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicolasakf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nicolasakf"
} | [
{
"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 | 0 | "2021-04-24T14:09:40Z" | "2021-04-24T14:14:44Z" | "2021-04-24T14:14:44Z" | NONE | null | ```python
# Your code here
```
#### Problem description
I recently tried to create a shallow copy of a pandas.Series that values where python lists. But when I tried to edit the copied series, the original series was affected as well.
```python
import pandas as pd
s = pd.Series({'foo': [1, 2, 3]})
s_copy = s.copy(deep=False)
s_copy['foo'] = [1, 2, 3, 4]
print(s)
```
This yields: foo [1, 2, 3, 4]
#### Expected Output
As this is meant to be a shallow copy, that expected behavior is that the original Series shall not be affected: foo [1, 2, 3]
#### Output of ``pd.show_versions()``
<details>
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.7.9.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.5
numpy : 1.20.0
pytz : 2021.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 56.0.0
Cython : 0.29.21
pytest : 6.1.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.6
lxml.etree : 4.5.2
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: 0.9.0
bs4 : None
bottleneck : None
fsspec : 0.9.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.51.2
</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/41138/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41138/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41139 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41139/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41139/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41139/events | https://github.com/pandas-dev/pandas/pull/41139 | 866,766,776 | MDExOlB1bGxSZXF1ZXN0NjIyNTk4MzEz | 41,139 | BUG: groupby sum, mean, var should always be floats | {
"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"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | "2021-04-24T15:04:21Z" | "2021-11-09T22:06:59Z" | "2021-05-21T13:50:50Z" | MEMBER | null | - [x] closes #41137
- [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
Built on top of #40790 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41139/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41139/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41139.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41139",
"merged_at": "2021-05-21T13:50:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41139.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41139"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41140 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41140/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41140/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41140/events | https://github.com/pandas-dev/pandas/pull/41140 | 866,772,984 | MDExOlB1bGxSZXF1ZXN0NjIyNjAyNjgx | 41,140 | CI: Mark slow tests as slow to speed up ci | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "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"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-24T15:33:28Z" | "2021-04-26T21:58:37Z" | "2021-04-26T12:53:55Z" | MEMBER | null | We have a few tests which are really slow and not marked as such. I went through the list below and marked everything greater than 4 seconds as slow. Should give us between 4 and 5 minutes performance boost
<details>
# 29.68s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_iterator_loop
# 12.98s call pandas/tests/test_sorting.py::TestSorting::test_int64_overflow_moar
# 11.43s call pandas/tests/indexing/multiindex/test_chaining_and_caching.py::test_indexer_caching
# 10.13s call pandas/tests/groupby/transform/test_transform.py::test_cython_transform_frame[shift-args3-<lambda>]
# 9.87s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_from_iterator
# 9.79s call pandas/tests/groupby/transform/test_transform.py::test_cython_transform_frame[shift-args2-<lambda>]
# 9.41s teardown pandas/tests/window/moments/test_moments_rolling_quantile.py::test_center_reindex_frame[1.0]
# 8.82s call pandas/tests/io/sas/test_xport.py::TestXport::test1_basic
# 8.43s call pandas/tests/io/parser/common/test_chunksize.py::test_warn_if_chunks_have_mismatched_type[python]
# 8.38s call pandas/tests/io/parser/common/test_chunksize.py::test_chunks_have_consistent_numerical_type[python]
# 8.13s call pandas/tests/io/parser/test_c_parser_only.py::test_grow_boundary_at_cap[c_low]
# 8.12s call pandas/tests/io/parser/test_c_parser_only.py::test_grow_boundary_at_cap[c_high]
# 6.97s call pandas/tests/indexes/datetimes/test_date_range.py::TestDateRanges::test_date_range_int64_overflow_stride_endpoint_different_signs
# 5.90s call pandas/tests/frame/test_constructors.py::TestDataFrameConstructors::test_constructor_mrecarray
# 5.84s teardown pandas/tests/window/moments/test_moments_rolling_skew_kurt.py::test_center_reindex_frame[skew]
# 5.61s call pandas/tests/io/parser/test_c_parser_only.py::test_precise_conversion[c_high]
# 5.29s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_path_pathlib
# 5.13s call pandas/tests/groupby/transform/test_transform.py::test_cython_transform_frame[cumsum-args1-<lambda>]
# 4.93s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_from_file
# 4.86s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_from_buffer
# 4.84s call pandas/tests/io/sas/test_sas7bdat.py::TestSAS7BDAT::test_path_localpath
# 4.59s call pandas/tests/indexes/multi/test_integrity.py::test_hash_collisions
# 4.26s call pandas/tests/indexing/interval/test_interval.py::TestIntervalIndex::test_loc_getitem_large_series
# 3.99s call pandas/tests/io/parser/test_c_parser_only.py::test_precise_conversion[c_low]
</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/41140/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41140/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41140.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41140",
"merged_at": "2021-04-26T12:53:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41140.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41140"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41141 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41141/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41141/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41141/events | https://github.com/pandas-dev/pandas/pull/41141 | 866,780,421 | MDExOlB1bGxSZXF1ZXN0NjIyNjA4MDAz | 41,141 | BUG: Fix series clipping NA issue | {
"avatar_url": "https://avatars.githubusercontent.com/u/45742869?v=4",
"events_url": "https://api.github.com/users/Rasori/events{/privacy}",
"followers_url": "https://api.github.com/users/Rasori/followers",
"following_url": "https://api.github.com/users/Rasori/following{/other_user}",
"gists_url": "https://api.github.com/users/Rasori/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Rasori",
"id": 45742869,
"login": "Rasori",
"node_id": "MDQ6VXNlcjQ1NzQyODY5",
"organizations_url": "https://api.github.com/users/Rasori/orgs",
"received_events_url": "https://api.github.com/users/Rasori/received_events",
"repos_url": "https://api.github.com/users/Rasori/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Rasori/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rasori/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Rasori"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "eb6420",
"default": false,
"description": "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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | "2021-04-24T16:07:31Z" | "2021-05-12T01:46:03Z" | "2021-04-30T20:49:51Z" | CONTRIBUTOR | null | Series clipping method could not handle series with NA values.
Issue was fixed by first comparing values and only after then converted
to numpy array. Now the test code provided with the issue ticket provides an expected result.
- [x] closes #40581
- [x] tests added / passed
- I did run test_fast.sh and 3 test failed but I think they are not related to my changes
- test_can_set_locale_valid_set
- test_header_multi_index_blank_line[c_high]
- test_header_multi_index_blank_line[c_high]
- [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/41141/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41141/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41141.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41141",
"merged_at": "2021-04-30T20:49:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41141.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41141"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41142 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41142/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41142/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41142/events | https://github.com/pandas-dev/pandas/issues/41142 | 866,798,302 | MDU6SXNzdWU4NjY3OTgzMDI= | 41,142 | API: refactor Styler to allow sparse cols or index separately. | {
"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": "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": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
},
{
"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"
},
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-24T17:36:11Z" | "2021-05-21T16:20:32Z" | "2021-05-21T16:20:32Z" | CONTRIBUTOR | null | The api is inconsistent in some parts. Currently Styler only allows either non-sparse index and cols or sparse index and cols, but not separately. This should be a relatively easy change to implement into the `_translation` and/or `rendering` code. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41142/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41142/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41143 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41143/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41143/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41143/events | https://github.com/pandas-dev/pandas/issues/41143 | 866,801,607 | MDU6SXNzdWU4NjY4MDE2MDc= | 41,143 | ENH: Make Styler work with non-unique indexes | {
"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": "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": "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-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-24T17:52:38Z" | "2021-05-06T23:32:14Z" | "2021-05-06T23:32:02Z" | CONTRIBUTOR | null | Currently Styler only works with unique indexes, it may be possible to allow non-unique indexes, and prohibit only certain features that need a unique index | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41143/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41143/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41144 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41144/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41144/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41144/events | https://github.com/pandas-dev/pandas/issues/41144 | 866,825,748 | MDU6SXNzdWU4NjY4MjU3NDg= | 41,144 | BUG: Sympy can not handle Series as b in a*b | {
"avatar_url": "https://avatars.githubusercontent.com/u/4129415?v=4",
"events_url": "https://api.github.com/users/maxmcclorey/events{/privacy}",
"followers_url": "https://api.github.com/users/maxmcclorey/followers",
"following_url": "https://api.github.com/users/maxmcclorey/following{/other_user}",
"gists_url": "https://api.github.com/users/maxmcclorey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maxmcclorey",
"id": 4129415,
"login": "maxmcclorey",
"node_id": "MDQ6VXNlcjQxMjk0MTU=",
"organizations_url": "https://api.github.com/users/maxmcclorey/orgs",
"received_events_url": "https://api.github.com/users/maxmcclorey/received_events",
"repos_url": "https://api.github.com/users/maxmcclorey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maxmcclorey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maxmcclorey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maxmcclorey"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | "2021-04-24T19:58:09Z" | "2021-04-24T21:52:24Z" | "2021-04-24T21:51: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.
- [ ] (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
import sympy
scalar_float = 3.5
scalar_sympy = sympy.Rational(7, 2)
series_float = pandas.Series([3.5])
series_sympy = pandas.Series([sympy.Rational(7, 2)])
scalar_float * series_float # Yields a single-element float series
series_float * scalar_float # Yields a single-element float series
scalar_sympy * series_sympy # YIELDS A SCALAR FLOAT
series_sympy * scalar_sympy # Yields a single-element sympy Rational series
```
#### Problem description
When doing arithmetic between a scalar `sympy Rational` value and a single-element `pandas Series`, if the scalar value is on the left side of the arithmetic equation the result is not a single-element `Series` as you would expect, but is instead a scalar value. Also, the `sympy Rational` gets evaluated into a floating point number.
See the `ipython` output below:
```
In [1]: import pandas
In [2]: import sympy
In [3]: scalar_float = 3.5
In [4]: scalar_sympy = sympy.Rational(7, 2)
In [5]: series_float = pandas.Series([3.5])
In [6]: series_sympy = pandas.Series([sympy.Rational(7, 2)])
In [7]: scalar_float * series_float
Out[7]:
0 12.25 # <---------Correct, as expected
dtype: float64
In [8]: series_float * scalar_float
Out[8]:
0 12.25 # <---------Correct, as expected
dtype: float64
In [9]: scalar_sympy * series_sympy
Out[9]: 12.2500000000000 # <-------------INCORRECT
In [10]: series_sympy * scalar_sympy
Out[10]:
0 49/4 # <---------Correct, as expected
dtype: object
```
#### Expected Output
I would expect the output of `scalar_sympy * series_sympy` to be equal to `series_sympy * scalar_sympy`
#### Output of ``pd.show_versions()``
<details>
In [8]: pandas.show_versions()
/Users/maxmcclorey/Documents/workspace/captivateiq/venv/lib/python3.8/site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
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.2.4
numpy : 1.19.2
pytz : 2021.1
dateutil : 2.8.0
pip : 20.3.3
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.3
html5lib : None
pymysql : 0.9.3
psycopg2 : 2.8.2 (dt dec pq3 ext lo64)
jinja2 : None
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.13
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/41144/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41144/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41145 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41145/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41145/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41145/events | https://github.com/pandas-dev/pandas/pull/41145 | 866,827,200 | MDExOlB1bGxSZXF1ZXN0NjIyNjQxNTky | 41,145 | BUG: isin fails to correctly compare None values. | {
"avatar_url": "https://avatars.githubusercontent.com/u/5946712?v=4",
"events_url": "https://api.github.com/users/DriesSchaumont/events{/privacy}",
"followers_url": "https://api.github.com/users/DriesSchaumont/followers",
"following_url": "https://api.github.com/users/DriesSchaumont/following{/other_user}",
"gists_url": "https://api.github.com/users/DriesSchaumont/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DriesSchaumont",
"id": 5946712,
"login": "DriesSchaumont",
"node_id": "MDQ6VXNlcjU5NDY3MTI=",
"organizations_url": "https://api.github.com/users/DriesSchaumont/orgs",
"received_events_url": "https://api.github.com/users/DriesSchaumont/received_events",
"repos_url": "https://api.github.com/users/DriesSchaumont/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DriesSchaumont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DriesSchaumont/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DriesSchaumont"
} | [
{
"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": "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 | null | [] | null | 6 | "2021-04-24T20:06:14Z" | "2021-10-04T00:24:41Z" | "2021-10-04T00:24:41Z" | MEMBER | null | - [x] closes #35565
- [ ] 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] 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/41145/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41145/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41145.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41145",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41145.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41145"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41146 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41146/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41146/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41146/events | https://github.com/pandas-dev/pandas/pull/41146 | 866,845,929 | MDExOlB1bGxSZXF1ZXN0NjIyNjU1MDM2 | 41,146 | BUG: raise ValueError when sep and delimiter are defined in read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-24T21:58:22Z" | "2021-05-27T10:26:53Z" | "2021-05-26T02:18:16Z" | MEMBER | null | - [x] closes #39823
- [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/41146/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41146/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41146.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41146",
"merged_at": "2021-05-26T02:18:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41146.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41146"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41147 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41147/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41147/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41147/events | https://github.com/pandas-dev/pandas/pull/41147 | 866,858,234 | MDExOlB1bGxSZXF1ZXN0NjIyNjYzNTg5 | 41,147 | BUG: retain ordered Categorical dtype in SeriesGroupBy aggregations | {
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-24T23:24:10Z" | "2021-04-30T18:16:22Z" | "2021-04-30T16:34:29Z" | 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
ATM we correctly wrap them for DataFrameGroupBy but not for SeriesGroupBy. Doing this correctly for SeriesGroupBy has the benefit of avoiding the need to special-case it in DataFrameGroupBy
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41147/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41147/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41147.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41147",
"merged_at": "2021-04-30T16:34:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41147.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41147"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41148 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41148/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41148/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41148/events | https://github.com/pandas-dev/pandas/pull/41148 | 866,874,260 | MDExOlB1bGxSZXF1ZXN0NjIyNjczNTUz | 41,148 | REF: dont call libreduction incorrectly | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-25T01:10:00Z" | "2021-04-26T14:28:29Z" | "2021-04-26T13:09:19Z" | MEMBER | null | Nothing user-facing, just doing slightly less try/except | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41148/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41148/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41148.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41148",
"merged_at": "2021-04-26T13:09:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41148.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41148"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41149 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41149/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41149/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41149/events | https://github.com/pandas-dev/pandas/issues/41149 | 866,932,142 | MDU6SXNzdWU4NjY5MzIxNDI= | 41,149 | BUG: dataframe.fillna doesn't work | {
"avatar_url": "https://avatars.githubusercontent.com/u/34571894?v=4",
"events_url": "https://api.github.com/users/Yan-Daojiang/events{/privacy}",
"followers_url": "https://api.github.com/users/Yan-Daojiang/followers",
"following_url": "https://api.github.com/users/Yan-Daojiang/following{/other_user}",
"gists_url": "https://api.github.com/users/Yan-Daojiang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Yan-Daojiang",
"id": 34571894,
"login": "Yan-Daojiang",
"node_id": "MDQ6VXNlcjM0NTcxODk0",
"organizations_url": "https://api.github.com/users/Yan-Daojiang/orgs",
"received_events_url": "https://api.github.com/users/Yan-Daojiang/received_events",
"repos_url": "https://api.github.com/users/Yan-Daojiang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Yan-Daojiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yan-Daojiang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Yan-Daojiang"
} | [
{
"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": "d8439a",
"default": false,
"description": "Issue related to pandas dependency",
"id": 2533668378,
"name": "Upstream issue",
"node_id": "MDU6TGFiZWwyNTMzNjY4Mzc4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Upstream%20issue"
},
{
"color": "c2e0c6",
"default": false,
"description": "aarch64 architecture",
"id": 2628846204,
"name": "ARM",
"node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM"
}
] | 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"
} | 12 | "2021-04-25T06:52:40Z" | "2021-07-11T16:12:41Z" | "2021-07-11T16:12:25Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
<img width="825" alt="截屏2021-04-25 下午2 46 04" src="https://user-images.githubusercontent.com/34571894/115983689-476ee880-a5d5-11eb-8f01-9ccc7d04659f.png">
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.8.8.final.0
python-bits : 64
OS : Darwin
OS-release : 20.3.0
Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : zh_CN.UTF-8
LOCALE : zh_CN.UTF-8
pandas : 1.2.4
numpy : 1.18.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 56.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.22.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
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/41149/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41149/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41150 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41150/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41150/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41150/events | https://github.com/pandas-dev/pandas/issues/41150 | 866,937,962 | MDU6SXNzdWU4NjY5Mzc5NjI= | 41,150 | ENH: Lazy Cross-Join With Deferred Filtering | {
"avatar_url": "https://avatars.githubusercontent.com/u/13501084?v=4",
"events_url": "https://api.github.com/users/aa1371/events{/privacy}",
"followers_url": "https://api.github.com/users/aa1371/followers",
"following_url": "https://api.github.com/users/aa1371/following{/other_user}",
"gists_url": "https://api.github.com/users/aa1371/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aa1371",
"id": 13501084,
"login": "aa1371",
"node_id": "MDQ6VXNlcjEzNTAxMDg0",
"organizations_url": "https://api.github.com/users/aa1371/orgs",
"received_events_url": "https://api.github.com/users/aa1371/received_events",
"repos_url": "https://api.github.com/users/aa1371/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aa1371/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aa1371/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aa1371"
} | [
{
"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 | 6 | "2021-04-25T07:26:22Z" | "2021-05-23T06:18:22Z" | "2021-05-23T06:18:22Z" | CONTRIBUTOR | null | __Problem:__
One of the only operations I ever find myself going out of my way to create a sql temp-table upload my frame and do the operation in sql is for filtered cross joins. For large datasets they can both take a long time and use large amounts of memory. Here is an example of such an operation
__Current Solution:__
```
dr = pd.date_range('1900-01-01', periods=10000)
df = pd.DataFrame({
'start_date': pd.Series(dr),
'end_date': pd.Series(dr) + pd.Timedelta(days=30),
'value': range(len(dr)),
'id': np.random.choice(list('abcdefg'), len(dr))
})
dates = pd.Series(pd.date_range(df.start_date.min(), df.end_date.max())).to_frame('ts')
# takes ~8 sec (not particularly long in this example) and peak memory at ~10 GB
df.merge(dates, how='cross').loc[lambda dfx: (dfx.ts >= dfx.start_date) & (dfx.ts < dfx.end_date)]
```
This is how it would be done in SQL, which I don't have memory stats for, but is much faster
```
select * from table1
cross join table2
where ts >= start_date and ts <= end_date
```
This is a common problem people try to solve using pandas, as there are several instances on stack overflow of people asking how to do this (here are just a few I found with a quick search, there are many more):
https://stackoverflow.com/questions/43593554/merging-two-dataframes-based-on-a-date-between-two-other-dates-without-a-common/43594038
https://stackoverflow.com/questions/30627968/merge-pandas-dataframes-where-one-value-is-between-two-others
https://stackoverflow.com/questions/31328014/merging-dataframes-based-on-date-range
There are many different solutions ranging in complexity and performance. Often the answer people provide is to just do it in sql.
__Proposed Solution:__ (not concrete/final proposal, just a starting point for discussion)
I think that one way this could be solved in a performant way with an easy to use interface is to provide a lazily evaluated cross join. Which is resolved to a pandas dataframe after a filtering operation (e.g. `.loc`, `.query`, etc.). Below I provide an example implementation, that I don't think is the complete or optimal solution, but rather just a quick example to get the point across.
```
import itertools as it
def chunks(lst, n):
for i in range(0, len(lst), n):
yield lst[i:i + n]
class LazyMergeLoc:
def __get__(self, instance, owner):
self.chunk_pairs = instance.chunk_pairs
return self
def __getitem__(self, item):
results = []
for df1, df2 in self.chunk_pairs:
result = df1.merge(df2, how='cross').loc[item]
results.append(result)
return pd.concat(results)
class LazyMerge:
loc = LazyMergeLoc()
def __init__(self, chunk_pairs):
self.chunk_pairs = chunk_pairs
def lazy_cross_join(df1, df2, left_chunk_size, right_chunk_size):
left_chunks = list(chunks(df, left_chunk_size))
right_chunks = list(chunks(dates, right_chunk_size))
chunk_pairs = it.product(left_chuknks, right_chunks)
return LazyMerge(chunk_pairs)
pd.lazy_cross_join(df, dates, left_chunk_size=1000, right_chunk_size=1000).loc[lambda dfx: (dfx.ts >= dfx.start_date) & (dfx.ts < dfx.end_date)]
```
This solution provides the same result in the same time (and much faster too in many cases), and peak memory of only a couple hundred MB. ~50x less memory.
Again, I don't think this is necessarily the right implementation or interface. I'm sure there are even more performant ways to resolve the lazily defined join, not through chunks, perhaps some optimized cython code. But I do think this type of lazy merge would provide a large benefit to the library.
__Breaking Implications:__
None
__Alternatives:__
Many solutions provided in the linked (and other) SO posts. All of which are either (a) not performant, (b) complicated, (c) not generalizable, or (d) require leaving the pandas ecosystem.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41150/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41150/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41151 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41151/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41151/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41151/events | https://github.com/pandas-dev/pandas/issues/41151 | 866,945,691 | MDU6SXNzdWU4NjY5NDU2OTE= | 41,151 | BUG: index.isin working with RangeIndex | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | "2021-04-25T08:07:40Z" | "2021-04-26T12:03:03Z" | "2021-04-26T12:03:03Z" | CONTRIBUTOR | null | ```
RangeIndex(start=0, stop=2).isin(RangeIndex(start=0, stop=1)) # <- TypeError
Index([0, 1, 2]).isin(RangeIndex(start=0, stop=1)) # <- TypeError
RangeIndex(start=0, stop=2).isin(Index([0, 1])) # <- OK
Index([0, 1, 2]).isin(Index([0, 1])) # <- OK
```
Have only tested on master. Not yet on 1.2.4
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41151/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41151/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41152 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41152/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41152/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41152/events | https://github.com/pandas-dev/pandas/pull/41152 | 867,053,475 | MDExOlB1bGxSZXF1ZXN0NjIyNzk2MTA4 | 41,152 | TYP: Overload series/ffill and bfill | {
"avatar_url": "https://avatars.githubusercontent.com/u/54398132?v=4",
"events_url": "https://api.github.com/users/pckSF/events{/privacy}",
"followers_url": "https://api.github.com/users/pckSF/followers",
"following_url": "https://api.github.com/users/pckSF/following{/other_user}",
"gists_url": "https://api.github.com/users/pckSF/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pckSF",
"id": 54398132,
"login": "pckSF",
"node_id": "MDQ6VXNlcjU0Mzk4MTMy",
"organizations_url": "https://api.github.com/users/pckSF/orgs",
"received_events_url": "https://api.github.com/users/pckSF/received_events",
"repos_url": "https://api.github.com/users/pckSF/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pckSF/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pckSF/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pckSF"
} | [
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-25T16:30:23Z" | "2021-04-26T17:28:44Z" | "2021-04-26T17:28:44Z" | CONTRIBUTOR | null | - Closes part of MarcoGorelli/pyladieslondon-sprints#29
- Adds `typing.overload` to: `ffill` and ``bfill` from https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py
## Setup and Output for `ffill`
```python
# t_ffill.py
import pandas as pd
inplace: bool
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=False))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=True))
reveal_type(pd.DataFrame([1, None, None]).ffill())
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=inplace))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=False))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=True))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=inplace))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=False, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=True, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=inplace, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=False, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=True, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=inplace, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=False, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=True, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=inplace, limit=1))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=False, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=True, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=inplace, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=False, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=True, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(inplace=inplace, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=False, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=True, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).ffill(axis=0, inplace=inplace, limit=1, downcast="infer"))
```
which results in the following `mypy` output:
```bash
$ mypy t_ffill.py
t_ffill.py:6: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:7: note: Revealed type is 'None'
t_ffill.py:8: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:9: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:11: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:12: note: Revealed type is 'None'
t_ffill.py:13: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:14: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:16: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:17: note: Revealed type is 'None'
t_ffill.py:18: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:19: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:21: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:22: note: Revealed type is 'None'
t_ffill.py:23: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:24: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:26: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:27: note: Revealed type is 'None'
t_ffill.py:28: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:29: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:31: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:32: note: Revealed type is 'None'
t_ffill.py:33: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:34: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:36: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:37: note: Revealed type is 'None'
t_ffill.py:38: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:39: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:41: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:42: note: Revealed type is 'None'
t_ffill.py:43: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:44: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
```
## Setup and Ouput for `bfill`
```python
# t_bfill.py
import pandas as pd
inplace: bool
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=False))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=True))
reveal_type(pd.DataFrame([1, None, None]).bfill())
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=inplace))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=False))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=True))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=inplace))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=False, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=True, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=inplace, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=False, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=True, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=inplace, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=False, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=True, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=inplace, limit=1))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=False, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=True, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=inplace, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=False, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=True, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(inplace=inplace, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=False, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=True, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, limit=1, downcast="infer"))
reveal_type(pd.DataFrame([1, None, None]).bfill(axis=0, inplace=inplace, limit=1, downcast="infer"))
```
which results in the following `mypy` output:
```bash
$ mypy t_bfill.py
t_ffill.py:6: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:7: note: Revealed type is 'None'
t_ffill.py:8: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:9: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:11: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:12: note: Revealed type is 'None'
t_ffill.py:13: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:14: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:16: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:17: note: Revealed type is 'None'
t_ffill.py:18: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:19: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:21: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:22: note: Revealed type is 'None'
t_ffill.py:23: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:24: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:26: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:27: note: Revealed type is 'None'
t_ffill.py:28: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:29: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:31: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:32: note: Revealed type is 'None'
t_ffill.py:33: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:34: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:36: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:37: note: Revealed type is 'None'
t_ffill.py:38: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:39: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, None]'
t_ffill.py:41: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:42: note: Revealed type is 'None'
t_ffill.py:43: note: Revealed type is 'pandas.core.frame.DataFrame*'
t_ffill.py:44: note: Revealed type is 'Union[pandas.core.frame.DataFrame*, 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/41152/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41152/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41152.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41152",
"merged_at": "2021-04-26T17:28:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41152.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41152"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41153 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41153/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41153/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41153/events | https://github.com/pandas-dev/pandas/pull/41153 | 867,110,572 | MDExOlB1bGxSZXF1ZXN0NjIyODM3NTk5 | 41,153 | ENH: NumericIndex for any numpy int/uint/float dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
},
{
"color": "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": 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"
} | 33 | "2021-04-25T20:48:37Z" | "2021-08-07T18:42:44Z" | "2021-08-05T22:01:59Z" | CONTRIBUTOR | null | - [x] closes #16404
- [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
This PR presents a unified index type called `NumericIndex` for numerical indexing, supporting int64/32/16/8, uint64/32/16/8 and float64/32/16 numpy dtypes. This means that indexes with other numeric numpy dtypes than int64, uint64 and float64 will become possible. This index type is therefore functionally a super type of `Int64Index`, `UInt64Index` and `Float64Index` and is intended to eventually replace those.
Comments very welcome, of course, as this is probably quite a fundamental change to Pandas. @pandas-dev/pandas-core.
## Status
Missing is especially:
* docs and better doc string
* marking `NumericIndex` as experimental in 1.3?
## Deprecation cycle
ThIs PR is intended to be fully backwards compatible.
This means that public operations that currently return e.g. a `Int64Index`, will continue working unchanged. My view is that `NumericIndex` should replace `Int64Index`, `UInt64Index` and `Float64Index` in Pandas 2.0 and those index types should therefore be removed by 2.0. They should therefore get a deprecation warning in timely manner, before 2.0.
Internally there are some use of especially `Int64Index`, for example in groupby and join ops. That could be replaced with `NumricIndex` straight away, giving a performance benefit in cases where casting to higher dtypes can be avoided.
## Outside of scope of this PR
I do not intend to add support for nullable numeric dtypes in this PR. This is partly for technical reasons (there isn't any indexing engines for those types currently) but also to limit the scope of this PR. I'm not opposed to add support for those dtypes later, but I think adding them here would be too much for this PR. Also, it might be more sensible to have extension types in a different index class than numpy types, so probably better to look into that seperately.
Actual deprecation of `Int64Index`, `UInt64Index` and `Float64Index` should also be in a later PR IMO. If Pandas 2.0 is far in the future, it may be better holding off deprecating them until we see a v2.0 in the horizon instead of having a very long deprecation cycle for a relatively often used part of Pandas.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41153/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41153/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41153.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41153",
"merged_at": "2021-08-05T22:01:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41153.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41153"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41154 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41154/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41154/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41154/events | https://github.com/pandas-dev/pandas/pull/41154 | 867,114,796 | MDExOlB1bGxSZXF1ZXN0NjIyODQwNTU0 | 41,154 | TST: Added iloc tests for casting from object to numeric dtypes for duplicate columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/48971969?v=4",
"events_url": "https://api.github.com/users/isaac-chung/events{/privacy}",
"followers_url": "https://api.github.com/users/isaac-chung/followers",
"following_url": "https://api.github.com/users/isaac-chung/following{/other_user}",
"gists_url": "https://api.github.com/users/isaac-chung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/isaac-chung",
"id": 48971969,
"login": "isaac-chung",
"node_id": "MDQ6VXNlcjQ4OTcxOTY5",
"organizations_url": "https://api.github.com/users/isaac-chung/orgs",
"received_events_url": "https://api.github.com/users/isaac-chung/received_events",
"repos_url": "https://api.github.com/users/isaac-chung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/isaac-chung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isaac-chung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/isaac-chung"
} | [
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 6 | "2021-04-25T21:09:02Z" | "2021-04-30T12:11:19Z" | "2021-04-30T00:33:12Z" | CONTRIBUTOR | null | - [x] closes #22035
- [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/41154/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41154/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41154.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41154",
"merged_at": "2021-04-30T00:33:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41154.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41154"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41155 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41155/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41155/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41155/events | https://github.com/pandas-dev/pandas/pull/41155 | 867,120,620 | MDExOlB1bGxSZXF1ZXN0NjIyODQ0OTc2 | 41,155 | REGR: isin raising TypeError for RangeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
},
{
"color": "d8439a",
"default": false,
"description": "Issue related to pandas dependency",
"id": 2533668378,
"name": "Upstream issue",
"node_id": "MDU6TGFiZWwyNTMzNjY4Mzc4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Upstream%20issue"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-25T21:39:17Z" | "2021-04-26T12:06:02Z" | "2021-04-26T12:03:04Z" | MEMBER | null | - [x] closes #41151
- [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
This was easier than I've expected
cc @attack68 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41155/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41155/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41155.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41155",
"merged_at": "2021-04-26T12:03:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41155.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41155"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41156 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41156/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41156/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41156/events | https://github.com/pandas-dev/pandas/pull/41156 | 867,172,924 | MDExOlB1bGxSZXF1ZXN0NjIyODg2NTg5 | 41,156 | TST: add test-data.xml to gitignore | {
"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 | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-26T01:08:10Z" | "2021-04-26T11:09:44Z" | "2021-04-26T11:09:43Z" | MEMBER | null | followup #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/41156/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41156/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41156.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41156",
"merged_at": "2021-04-26T11:09:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41156.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41156"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41157 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41157/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41157/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41157/events | https://github.com/pandas-dev/pandas/issues/41157 | 867,205,033 | MDU6SXNzdWU4NjcyMDUwMzM= | 41,157 | CI: ASV Bot | {
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] | closed | false | {
"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"
} | [
{
"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_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-04-26T02:47:41Z" | "2021-09-04T14:10:10Z" | "2021-09-04T14:09:45Z" | MEMBER | null | #### Is your feature request related to a problem?
Running ASV's takes a really long time, especially with old computers, and the ASVs in PRs are not run in continuous mode, which makes it hard to find regressions before a PR is merged.
https://github.com/pandas-dev/pandas/blob/accf345fdd4fb92056a5e62d4105fc8f4491ff2c/.github/workflows/ci.yml#L78
(master, what we run currently, asv dev)
#### Describe the solution you'd like
A github actions workflow that runs ```asv continuous -f 1.1 upstream/master HEAD``` on PRs after seeing a comment such as ```@github-actions asv```. In order to prevent false positives, I think the bot should first merge in master to a PR before running benchmarks.
https://github.com/pandas-dev/pandas/blob/accf345fdd4fb92056a5e62d4105fc8f4491ff2c/.github/workflows/comment_bot.yml#L10-L12
(example for triggering)
Afterwards, the bot should comment the results. (I'm not sure how to do this)
I don't think it should be a check, since it takes a while to run and might be flaky. Making it a check would run it on every commit in a PR which would make CI queue times longer for everyone.
#### Additional context
#36860 https://pandas.pydata.org/docs/development/roadmap.html#performance-monitoring | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41157/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41157/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41158 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41158/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41158/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41158/events | https://github.com/pandas-dev/pandas/pull/41158 | 867,316,979 | MDExOlB1bGxSZXF1ZXN0NjIzMDA2Mzgw | 41,158 | API: `Styler.hide_columns` replaced by `.hide_values` which also operates row-wise | {
"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": "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"
},
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-26T06:34:02Z" | "2021-07-05T11:05:36Z" | "2021-05-07T12:58:54Z" | CONTRIBUTOR | null | For showing and hiding columns/rows `Styler` currently has two methods:
- `.hide_columns(subset)`: which hides a selection of columns and the associated data values.
- `.hide_index()`: which hides the index keys completely and displays all the data values.
This PR adds a `.hide_values(subset, axis, show)` method, which is a superset of `.hide_columns`. It allows the same functionality to operate row-wise, and adds the kwarg `show` which allows an inverse method, exclusively showing instead of hiding.
### Follow-on:
#### Option 1
Keep `.hide_values(subset, axis, show)` as is and **deprecate** `.hide_columns`.
#### Option 2
Make `._hide_values(subset, axis, show)` a private module and include/add the public methods:
- `hide_columns` = `_hide_values(subset=subset, axis="columns", show=False)`.
- `hide_rows` = `_hide_values(subset=subset, axis="index", show=False)`.
- `show_columns` = `_hide_values(subset=subset, axis="columns", show=True)`.
- `show_rows` = `_hide_values(subset=subset, axis="index", show=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/41158/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41158/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41158.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41158",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41158.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41158"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41159 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41159/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41159/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41159/events | https://github.com/pandas-dev/pandas/pull/41159 | 867,352,826 | MDExOlB1bGxSZXF1ZXN0NjIzMDM3MDA2 | 41,159 | Min max sparse | {
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
} | [
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 7 | "2021-04-26T07:16:41Z" | "2021-04-28T19:16:59Z" | "2021-04-28T15:18:04Z" | CONTRIBUTOR | null | - [x] closes #40921
- [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/41159/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41159/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41159.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41159",
"merged_at": "2021-04-28T15:18:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41159.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41159"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41160 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41160/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41160/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41160/events | https://github.com/pandas-dev/pandas/pull/41160 | 867,353,294 | MDExOlB1bGxSZXF1ZXN0NjIzMDM3Mzk0 | 41,160 | ⬆️ 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"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-26T07:17:12Z" | "2021-05-25T20:09:30Z" | "2021-05-25T20:09:27Z" | CONTRIBUTOR | null | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
⬆️ UPGRADE: Autoupdate pre-commit config (#41160)
## 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 identify>=1.0.0
Downloading identify-2.2.5-py2.py3-none-any.whl (98 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting cfgv>=2.0.0
Downloading cfgv-3.3.0-py2.py3-none-any.whl (7.3 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting virtualenv>=20.0.8
Using cached virtualenv-20.4.6-py2.py3-none-any.whl (7.2 MB)
Collecting pyyaml>=5.1
Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting appdirs<2,>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting distlib<1,>=0.3.1
Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Collecting six<2,>=1.9.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed appdirs-1.4.4 cfgv-3.3.0 distlib-0.3.1 filelock-3.0.12 identify-2.2.5 nodeenv-1.6.0 pre-commit-2.13.0 pyyaml-5.4.1 six-1.16.0 toml-0.10.2 virtualenv-20.4.6
```
### stderr:
```Shell
WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.
You should consider upgrading via the '/opt/hostedtoolcache/Python/3.9.5/x64/bin/python -m pip install --upgrade pip' command.
```
</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 ... updating 20.8b1 -> 21.5b1.
Updating https://github.com/codespell-project/codespell ... already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... updating v3.4.0 -> v4.0.1.
Updating https://github.com/cpplint/cpplint ... [INFO] Initializing environment for https://github.com/cpplint/cpplint.
updating f7061b1 -> 1.5.5.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating 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.12.0 -> v2.18.1.
Updating https://github.com/pre-commit/pygrep-hooks ... already up to date.
Updating https://github.com/asottile/yesqa ... updating v1.2.2 -> v1.2.3.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[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://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
absolufy-imports...............................................................................Passed
black..........................................................................................Failed
- hook id: black
- files were modified by this hook
reformatted pandas/_config/config.py
reformatted pandas/_libs/arrays.pyi
reformatted pandas/_libs/algos.pyi
reformatted pandas/_libs/groupby.pyi
reformatted pandas/_libs/index.pyi
reformatted pandas/_libs/internals.pyi
reformatted pandas/_libs/hashtable.pyi
reformatted pandas/_libs/join.pyi
reformatted pandas/_libs/ops.pyi
reformatted pandas/_libs/parsers.pyi
reformatted pandas/_libs/reshape.pyi
reformatted pandas/_libs/testing.pyi
reformatted pandas/_libs/tslib.pyi
reformatted pandas/_libs/tslibs/ccalendar.pyi
reformatted pandas/_libs/tslibs/conversion.pyi
reformatted pandas/_libs/lib.pyi
reformatted pandas/_libs/tslibs/dtypes.pyi
reformatted pandas/_libs/tslibs/fields.pyi
reformatted pandas/_libs/tslibs/parsing.pyi
reformatted pandas/_libs/tslibs/nattype.pyi
reformatted pandas/_libs/tslibs/strptime.pyi
reformatted pandas/_libs/tslibs/timedeltas.pyi
reformatted pandas/_libs/tslibs/period.pyi
reformatted pandas/_libs/tslibs/timezones.pyi
reformatted pandas/_libs/tslibs/tzconversion.pyi
reformatted pandas/_libs/tslibs/vectorized.pyi
reformatted pandas/_libs/tslibs/timestamps.pyi
reformatted pandas/_libs/window/indexers.pyi
reformatted pandas/_libs/window/aggregations.pyi
reformatted pandas/_libs/writers.pyi
reformatted pandas/_testing/__init__.py
reformatted pandas/conftest.py
reformatted pandas/core/algorithms.py
reformatted pandas/core/apply.py
reformatted pandas/core/arrays/categorical.py
reformatted pandas/core/arrays/masked.py
reformatted pandas/core/arrays/sparse/scipy_sparse.py
reformatted pandas/core/computation/expressions.py
reformatted pandas/core/computation/expr.py
reformatted pandas/core/computation/pytables.py
reformatted pandas/core/dtypes/common.py
reformatted pandas/core/dtypes/dtypes.py
reformatted pandas/core/dtypes/cast.py
reformatted pandas/core/groupby/ops.py
reformatted pandas/core/generic.py
reformatted pandas/core/indexes/category.py
reformatted pandas/core/indexes/range.py
reformatted pandas/core/indexes/multi.py
reformatted pandas/core/internals/array_manager.py
reformatted pandas/core/internals/blocks.py
reformatted pandas/core/internals/managers.py
reformatted pandas/core/nanops.py
reformatted pandas/core/ops/__init__.py
reformatted pandas/core/reshape/tile.py
reformatted pandas/core/reshape/merge.py
reformatted pandas/io/formats/format.py
reformatted pandas/io/parquet.py
reformatted pandas/io/parsers/readers.py
reformatted pandas/io/sas/sas_xport.py
reformatted pandas/io/sql.py
reformatted pandas/io/pytables.py
reformatted pandas/io/stata.py
reformatted pandas/tests/arithmetic/test_period.py
reformatted pandas/tests/base/test_constructors.py
reformatted pandas/tests/dtypes/test_common.py
reformatted pandas/tests/extension/base/reduce.py
reformatted pandas/tests/frame/methods/test_clip.py
reformatted pandas/tests/generic/test_generic.py
reformatted pandas/tests/generic/test_label_or_level_utils.py
reformatted pandas/tests/indexing/common.py
reformatted pandas/tests/indexing/test_coercion.py
reformatted pandas/tests/indexing/test_indexing.py
reformatted pandas/tests/internals/test_internals.py
reformatted pandas/tests/io/generate_legacy_storage_files.py
reformatted pandas/tests/io/pytables/common.py
reformatted pandas/tests/io/pytables/conftest.py
reformatted pandas/tests/plotting/frame/test_frame.py
reformatted pandas/tests/plotting/test_misc.py
reformatted pandas/tests/resample/test_base.py
reformatted pandas/tests/resample/test_deprecated.py
reformatted pandas/tests/reshape/merge/test_merge_asof.py
reformatted pandas/tests/series/methods/test_clip.py
reformatted pandas/tests/test_multilevel.py
All done! ✨ 🍰 ✨
83 files reformatted, 1290 files left unchanged.
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......................................................................................Failed
- hook id: pyupgrade
- exit code: 1
- files were modified by this hook
Rewriting doc/sphinxext/announce.py
Rewriting pandas/io/pytables.py
Rewriting pandas/tests/io/parser/test_c_parser_only.py
Rewriting pandas/tests/generic/test_series.py
Rewriting pandas/util/_decorators.py
Rewriting pandas/core/reshape/merge.py
Rewriting pandas/_config/config.py
Rewriting pandas/tests/io/parser/test_multi_thread.py
Rewriting pandas/core/reshape/tile.py
Rewriting pandas/io/formats/latex.py
Rewriting pandas/io/html.py
Rewriting pandas/tests/io/parser/test_skiprows.py
Rewriting pandas/tests/generic/test_frame.py
Rewriting pandas/tests/reshape/test_util.py
Rewriting pandas/io/formats/excel.py
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 95 files: </summary>
- .pre-commit-config.yaml
- doc/sphinxext/announce.py
- pandas/_config/config.py
- pandas/_libs/algos.pyi
- pandas/_libs/arrays.pyi
- pandas/_libs/groupby.pyi
- pandas/_libs/hashtable.pyi
- pandas/_libs/index.pyi
- pandas/_libs/internals.pyi
- pandas/_libs/join.pyi
- pandas/_libs/lib.pyi
- pandas/_libs/ops.pyi
- pandas/_libs/parsers.pyi
- pandas/_libs/reshape.pyi
- pandas/_libs/testing.pyi
- pandas/_libs/tslib.pyi
- pandas/_libs/tslibs/ccalendar.pyi
- pandas/_libs/tslibs/conversion.pyi
- pandas/_libs/tslibs/dtypes.pyi
- pandas/_libs/tslibs/fields.pyi
- pandas/_libs/tslibs/nattype.pyi
- pandas/_libs/tslibs/parsing.pyi
- pandas/_libs/tslibs/period.pyi
- pandas/_libs/tslibs/strptime.pyi
- pandas/_libs/tslibs/timedeltas.pyi
- pandas/_libs/tslibs/timestamps.pyi
- pandas/_libs/tslibs/timezones.pyi
- pandas/_libs/tslibs/tzconversion.pyi
- pandas/_libs/tslibs/vectorized.pyi
- pandas/_libs/window/aggregations.pyi
- pandas/_libs/window/indexers.pyi
- pandas/_libs/writers.pyi
- pandas/_testing/__init__.py
- pandas/conftest.py
- pandas/core/algorithms.py
- pandas/core/apply.py
- pandas/core/arrays/categorical.py
- pandas/core/arrays/masked.py
- pandas/core/arrays/sparse/scipy_sparse.py
- pandas/core/computation/expr.py
- pandas/core/computation/expressions.py
- pandas/core/computation/pytables.py
- pandas/core/dtypes/cast.py
- pandas/core/dtypes/common.py
- pandas/core/dtypes/dtypes.py
- pandas/core/generic.py
- pandas/core/groupby/ops.py
- pandas/core/indexes/category.py
- pandas/core/indexes/multi.py
- pandas/core/indexes/range.py
- pandas/core/internals/array_manager.py
- pandas/core/internals/blocks.py
- pandas/core/internals/managers.py
- pandas/core/nanops.py
- pandas/core/ops/__init__.py
- pandas/core/reshape/merge.py
- pandas/core/reshape/tile.py
- pandas/io/formats/excel.py
- pandas/io/formats/format.py
- pandas/io/formats/latex.py
- pandas/io/html.py
- pandas/io/parquet.py
- pandas/io/parsers/readers.py
- pandas/io/pytables.py
- pandas/io/sas/sas_xport.py
- pandas/io/sql.py
- pandas/io/stata.py
- pandas/tests/arithmetic/test_period.py
- pandas/tests/base/test_constructors.py
- pandas/tests/dtypes/test_common.py
- pandas/tests/extension/base/reduce.py
- pandas/tests/frame/methods/test_clip.py
- pandas/tests/generic/test_frame.py
- pandas/tests/generic/test_generic.py
- pandas/tests/generic/test_label_or_level_utils.py
- pandas/tests/generic/test_series.py
- pandas/tests/indexing/common.py
- pandas/tests/indexing/test_coercion.py
- pandas/tests/indexing/test_indexing.py
- pandas/tests/internals/test_internals.py
- pandas/tests/io/generate_legacy_storage_files.py
- pandas/tests/io/parser/test_c_parser_only.py
- pandas/tests/io/parser/test_multi_thread.py
- pandas/tests/io/parser/test_skiprows.py
- pandas/tests/io/pytables/common.py
- pandas/tests/io/pytables/conftest.py
- pandas/tests/plotting/frame/test_frame.py
- pandas/tests/plotting/test_misc.py
- pandas/tests/resample/test_base.py
- pandas/tests/resample/test_deprecated.py
- pandas/tests/reshape/merge/test_merge_asof.py
- pandas/tests/reshape/test_util.py
- pandas/tests/series/methods/test_clip.py
- pandas/tests/test_multilevel.py
- pandas/util/_decorators.py
</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/41160/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41160/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41160.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41160",
"merged_at": "2021-05-25T20:09:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41160.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41160"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41161 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41161/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41161/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41161/events | https://github.com/pandas-dev/pandas/pull/41161 | 867,403,642 | MDExOlB1bGxSZXF1ZXN0NjIzMDgwMDU1 | 41,161 | REF: move check for disallowed bool arithmetic ops out of numexpr-related expressions.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-26T08:10:52Z" | "2021-04-28T10:22:30Z" | "2021-04-28T10:22:27Z" | MEMBER | null | The current `_bool_arith_check` helper function in `expressions.py` does 2 things: 1) check for operations we do not allow in pandas for boolean data (division, power) and 2) check for ops that are not supported by numexpr but have a pure python fallback.
That first aspect is not related to numexpr, though: we always check this (and raise an error if appropriate), whether numexpr is used or not.
So this PR does:
- Move the check for disallowed bool ops out of the numexpr code to `array_ops.py`. This is a cleaner separation of concerns, and ensures that the check is done consistently (eg if not calling floordiv through numexpr (https://github.com/pandas-dev/pandas/pull/40727), or if in the future not calling expressions.py if we know we can't use numexpr, such as in https://github.com/pandas-dev/pandas/pull/41122)
- In `expressions.py`, move the remaining check for unsupported ops (by numexpr) inside an except block: this way, we don't check up-front (for all ops, for all types), and only do the types check if there was actually a NotImplementedError. That avoids paying the overhead costs for all other ops. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41161/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41161/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41161.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41161",
"merged_at": "2021-04-28T10:22:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41161.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41161"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41162 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41162/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41162/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41162/events | https://github.com/pandas-dev/pandas/pull/41162 | 867,411,848 | MDExOlB1bGxSZXF1ZXN0NjIzMDg2OTcw | 41,162 | BUG: pandas concat does not match index names when concatenating two dataframes with a multiindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 11 | "2021-04-26T08:18:46Z" | "2021-08-17T00:48:50Z" | "2021-08-17T00:48:50Z" | CONTRIBUTOR | null | - [x] closes #40849
- [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/41162/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41162/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41162.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41162",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41162.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41162"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41163 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41163/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41163/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41163/events | https://github.com/pandas-dev/pandas/pull/41163 | 867,418,562 | MDExOlB1bGxSZXF1ZXN0NjIzMDkyNjAx | 41,163 | PERF: numexpr doesn't support floordiv, so don't try | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | "2021-04-26T08:25:05Z" | "2021-04-28T12:56:13Z" | "2021-04-28T12:35:50Z" | MEMBER | null | Re-take of https://github.com/pandas-dev/pandas/pull/40727, see that PR for explanation.
Tests will still be failing (so don't merge yet ;)), but depend on #41161 to be fixed | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41163/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41163/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41163.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41163",
"merged_at": "2021-04-28T12:35:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41163.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41163"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41164 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41164/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41164/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41164/events | https://github.com/pandas-dev/pandas/pull/41164 | 867,519,587 | MDExOlB1bGxSZXF1ZXN0NjIzMTc3ODMw | 41,164 | [ArrayManager] TST: remove more ArrayManager skips for JSON IO | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-26T10:01:37Z" | "2021-04-26T11:53:42Z" | "2021-04-26T11:48:01Z" | MEMBER | null | Some more JSON skips that I missed in https://github.com/pandas-dev/pandas/pull/41081 can now be removed
xref https://github.com/pandas-dev/pandas/issues/39146 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41164/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41164/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41164.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41164",
"merged_at": "2021-04-26T11:48:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41164.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41164"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41165 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41165/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41165/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41165/events | https://github.com/pandas-dev/pandas/issues/41165 | 867,591,513 | MDU6SXNzdWU4Njc1OTE1MTM= | 41,165 | API: disallow div/floordiv/pow operators for BooleanArray ? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "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": "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"
}
] | open | false | null | [] | null | 4 | "2021-04-26T11:17:28Z" | "2021-07-26T20:10:02Z" | null | MEMBER | null | Currently, for the plain `bool` dtype we explicitly check for some operations and raise an error, while those actually work in numpy. For example:
```python
>>> arr = np.array([True, False, True])
>>> arr / True
array([1., 0., 1.])
>>> pd.Series(arr) / True
...
NotImplementedError: operator '/' not implemented for bool dtypes
```
This is done for the division and power operations (`not_allowed={"/", "//", "**"}`):
https://github.com/pandas-dev/pandas/blob/934cad6ab61b867c6ae54941c5cd87340d44b80a/pandas/core/computation/expressions.py#L215-L218
For the nullable BooleanArray, for now we simply relied on the operations as defined by the underlying numpy bool array:
```python
>>> pd.array(arr) / True
<FloatingArray>
[1.0, 0.0, 1.0]
Length: 3, dtype: Float64
```
That's for the `BooleanArray`, but the check is currently done on the "array_op" level (but because it is done within expressions.py, we don't run that check for EAs, xref https://github.com/pandas-dev/pandas/pull/41161).
So questions:
- Do we actually want to continue disallowing this operation, while numpy allows it? (also, eg `pd.Series(arr) / 1` does work, it's only disallowed if both operands are boolean)
- If we keep disallowing it, we should probably also disallow it on the `BooleanArray` level, and not only check it on the DataFrame/Series ops level in `array_ops.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/41165/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41165/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41166 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41166/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41166/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41166/events | https://github.com/pandas-dev/pandas/pull/41166 | 867,979,526 | MDExOlB1bGxSZXF1ZXN0NjIzNTYzNDgz | 41,166 | TYP: overload lib.maybe_convert_objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-26T18:04:12Z" | "2021-04-28T19:44:36Z" | "2021-04-28T19:31: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/41166/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41166/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41166.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41166",
"merged_at": "2021-04-28T19:31:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41166.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41166"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/41167 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41167/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41167/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41167/events | https://github.com/pandas-dev/pandas/issues/41167 | 867,997,031 | MDU6SXNzdWU4Njc5OTcwMzE= | 41,167 | BUG: some read_excel engines still load trailing blank cells | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"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": "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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-26T18:26:31Z" | "2021-05-06T01:41:26Z" | "2021-05-06T01:41:26Z" | 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
```python
pd.read_excel('trailing_blanks.xlsx').shape
```
Test files available [here](https://github.com/ahawryluk/pandas/tree/trailing_blanks).

I loaded this sample spreadsheet in all five filetypes to see what shape is returned:
filetype | pandas 1.2.x | master
-|-|-
xls | (3, 3) | (3, 3)
xlsx | (11, 6) | (3, 6)
xlsm | (11, 6) | (3, 6)
xlsb | (11, 6) | (11, 6)
ods | (3, 3) | (3, 3)
#### Expected Output
`(3, 3)`
#### Problem description
Spreadsheet files can contain cells with no values, such as the formatted blank cells shown below. In the worst cases, the cell used to contain a value or formatting but currently contains neither and is thus invisible to the user of the spreadsheet application. The trailing rows of NaNs in xls[x|m] files were recently resolved in #39547 by @rhshadrach but the additional columns still remain. In a case of the size pictured here, it's a minor annoyance, but I've come across spreadsheets in the wild where one more cells were unintentionally created on row `2**20` or column `2**14`, which can create a severe performance issues. To fix the performance issue, the empty rows/columns must be trimmed before the data is passed to TextParser.
I suspect that these bug reports are related:
#40569
#40976
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 1e912821c03f08784cd12c046999c2033d94dd85
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-50-generic
Version : #56-Ubuntu SMP Mon Apr 12 17:18:36 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_CA.UTF-8
LOCALE : en_CA.UTF-8
pandas : 1.3.0.dev0+1412.g1e912821c0
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : 0.29.21
pytest : 6.2.2
hypothesis : 6.1.1
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.5
fastparquet : 0.5.0
gcsfs : 0.7.1
matplotlib : 3.3.4
numexpr : 2.7.2
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : 1.0.8
s3fs : 0.5.2
scipy : 1.6.0
sqlalchemy : 1.3.23
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.2
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.52.0
</details> | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41167/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41167/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41168 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41168/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41168/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41168/events | https://github.com/pandas-dev/pandas/issues/41168 | 868,128,984 | MDU6SXNzdWU4NjgxMjg5ODQ= | 41,168 | REGR: make_block should still handle 1D DatetimeTZ data for 2D block | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-26T20:08:23Z" | "2021-04-30T20:36:56Z" | "2021-04-30T20:36:56Z" | MEMBER | null | Caused by https://github.com/pandas-dev/pandas/pull/41082, the following now fails:
```
In [1]: dtidx = pd.date_range("2012", periods=3, tz="UTC")
In [2]: pd.core.internals.make_block(dtidx, placement=[0])
...
ValueError: Wrong number of dimensions. values.ndim != ndim [1 != 2]
```
Even though the Block is now stored as 2D values, in our internal "public" API, we should still accept 1D values for datetimetz.
From the dask tests, https://github.com/dask/dask/issues/7607
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/41168/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41168/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41169 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41169/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41169/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41169/events | https://github.com/pandas-dev/pandas/pull/41169 | 868,152,539 | MDExOlB1bGxSZXF1ZXN0NjIzNzE5Mjg5 | 41,169 | TST: Regression test for #33765 | {
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-26T20:23:12Z" | "2021-05-03T11:40:47Z" | "2021-04-29T23:34:46Z" | MEMBER | null | - [x] closes #33765
- [ ] 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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41169/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41169/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41169.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41169",
"merged_at": "2021-04-29T23:34:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41169.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41169"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41170 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41170/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41170/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41170/events | https://github.com/pandas-dev/pandas/issues/41170 | 868,161,446 | MDU6SXNzdWU4NjgxNjE0NDY= | 41,170 | BUG: df.loc[[x], :] fails if df has zero rows | {
"avatar_url": "https://avatars.githubusercontent.com/u/25440862?v=4",
"events_url": "https://api.github.com/users/RagBlufThim/events{/privacy}",
"followers_url": "https://api.github.com/users/RagBlufThim/followers",
"following_url": "https://api.github.com/users/RagBlufThim/following{/other_user}",
"gists_url": "https://api.github.com/users/RagBlufThim/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RagBlufThim",
"id": 25440862,
"login": "RagBlufThim",
"node_id": "MDQ6VXNlcjI1NDQwODYy",
"organizations_url": "https://api.github.com/users/RagBlufThim/orgs",
"received_events_url": "https://api.github.com/users/RagBlufThim/received_events",
"repos_url": "https://api.github.com/users/RagBlufThim/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RagBlufThim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RagBlufThim/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RagBlufThim"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 7 | "2021-04-26T20:28:56Z" | "2021-05-12T01:20:34Z" | "2021-05-12T01:20:34Z" | 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
df = pd.DataFrame({"A": [12,23,34,45]}, index = [list("aabb"), [0,1,2,3]])
print(df)
print("- - -")
print(df.loc[df.A < 30, :].loc[["b"], :]) # empty as expected
print("- - -")
print(df.loc[df.A < 10, :].loc[["b"], :]) # raises ValueError
```
#### Complete Output of Code Sample
<details>
```python-traceback
A
a 0 12
1 23
b 2 34
3 45
- - -
Empty DataFrame
Columns: [A]
Index: []
- - -
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 889, in __getitem__
return self._getitem_tuple(key)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 1060, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 791, in _getitem_lowerdim
return self._getitem_nested_tuple(tup)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 865, in _getitem_nested_tuple
obj = getattr(obj, self.name)._getitem_axis(key, axis=axis)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 1113, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 1053, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
File "C:\test\venv124\lib\site-packages\pandas\core\indexing.py", line 1254, in _get_listlike_indexer
indexer, keyarr = ax._convert_listlike_indexer(key)
File "C:\test\venv124\lib\site-packages\pandas\core\indexes\multi.py", line 2559, in _convert_listlike_indexer
_, indexer = self.reindex(keyarr, level=level)
File "C:\test\venv124\lib\site-packages\pandas\core\indexes\multi.py", line 2470, in reindex
target, indexer, _ = self._join_level(
File "C:\test\venv124\lib\site-packages\pandas\core\indexes\base.py", line 3924, in _join_level
ngroups = 1 + new_lev_codes.max()
File "C:\test\venv124\lib\site-packages\numpy\core\_methods.py", line 39, in _amax
return umr_maximum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation maximum which has no identity
```
</details>
#### Problem description
In both cases the ``df.loc[df.A...]`` returns a dataframe that doesn't contain any rows with an index value of "b".
Accordingly in the first case the result of ``.loc[["b"], :]`` is an empty dataframe, but in the second case a ValueError is raised. The difference between the cases is that in the first case ``df.loc[df.A...]`` returns a dataframe with some rows (though none with index value "b"), while in the second case ``df.loc[df.A...]`` returns a dataframe with zero rows.
I think that shouldn't make a difference.
In the original code ``.loc[df.A...]`` and ``.loc[["b"], :]`` are not directly combined in one expression, but the first one creates a selection of rows of the dataframe, this selection is processed further, and during this another expression uses the second ``.loc``.
The traceback looks very similar to the one in #40235. Maybe both bugs have a common root cause.
#### Expected Output
``df.loc[df.A < 10, :].loc[["b"], :]`` returns an empty dataframe like ``df.loc[df.A < 30, :].loc[["b"], :]`` does.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.9.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
...
pandas : 1.2.4
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
...
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41170/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41170/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41171 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41171/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41171/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41171/events | https://github.com/pandas-dev/pandas/issues/41171 | 868,219,167 | MDU6SXNzdWU4NjgyMTkxNjc= | 41,171 | BUG: merge_asof result index type not set | {
"avatar_url": "https://avatars.githubusercontent.com/u/14043325?v=4",
"events_url": "https://api.github.com/users/CGe0516/events{/privacy}",
"followers_url": "https://api.github.com/users/CGe0516/followers",
"following_url": "https://api.github.com/users/CGe0516/following{/other_user}",
"gists_url": "https://api.github.com/users/CGe0516/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CGe0516",
"id": 14043325,
"login": "CGe0516",
"node_id": "MDQ6VXNlcjE0MDQzMzI1",
"organizations_url": "https://api.github.com/users/CGe0516/orgs",
"received_events_url": "https://api.github.com/users/CGe0516/received_events",
"repos_url": "https://api.github.com/users/CGe0516/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CGe0516/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CGe0516/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CGe0516"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"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-04-26T21:31:08Z" | "2021-08-20T02:34:53Z" | 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.
---
**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
dates_df = pd.DataFrame(pd.Series(name='col_name', dtype='object'), index=pd.DatetimeIndex([], name='time', freq=None))
dates_df.index = dates_df.index.tz_localize('UTC')
weights_time = pd.date_range(start='20200101', end='20200110')
weights_time = weights_time.tz_localize('UTC')
weights_df = pd.DataFrame(index=weights_time)
weights_df['col_name'] = 'model1'
weights_df['attr'] = 1.5
joined_df = pd.merge_asof(
dates_df,
weights_df,
by="col_name",
left_index=True,
right_index=True,
direction="backward",
)
```
#### Problem description
The two input dataframes (dates_df and weights_df) have a DatetimeIndex, but the resulting joined_df does not.
#### Expected Output
I would expect the resulting index to be a DatetimeIndex and have type 'datetime64[ns, UTC]'
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.14.67-ts1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.utf8
LOCALE : en_US.UTF-8
pandas : 1.0.5
numpy : 1.16.6
pytz : 2020.4
dateutil : 2.8.0
pip : 19.3.1
setuptools : 42.0.2
Cython : 0.29.21
pytest : 5.3.1
hypothesis : 6.0.3
sphinx : 3.4.3
blosc : 1.5.1
feather : None
xlsxwriter : 1.0.2
lxml.etree : 4.5.2
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.14.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.2.1
fastparquet : 0.4.1
gcsfs : 0.6.1
lxml.etree : 4.5.2
matplotlib : 3.0.3
numexpr : 2.6.4
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pytest : 5.3.1
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.1
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : 0.8.3
xarray : 0.16.2
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : 1.0.2
numba : 0.53.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/41171/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41171/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41172 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41172/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41172/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41172/events | https://github.com/pandas-dev/pandas/pull/41172 | 868,281,183 | MDExOlB1bGxSZXF1ZXN0NjIzODMwMzcx | 41,172 | fixed formatting on to_csv() for categorical datetypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/82109078?v=4",
"events_url": "https://api.github.com/users/kyleolaughlin/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleolaughlin/followers",
"following_url": "https://api.github.com/users/kyleolaughlin/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleolaughlin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleolaughlin",
"id": 82109078,
"login": "kyleolaughlin",
"node_id": "MDQ6VXNlcjgyMTA5MDc4",
"organizations_url": "https://api.github.com/users/kyleolaughlin/orgs",
"received_events_url": "https://api.github.com/users/kyleolaughlin/received_events",
"repos_url": "https://api.github.com/users/kyleolaughlin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleolaughlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleolaughlin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleolaughlin"
} | [] | closed | false | null | [] | null | 1 | "2021-04-26T23:38:14Z" | "2021-04-26T23:43:03Z" | "2021-04-26T23:43:03Z" | 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/41172/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41172/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41172.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41172",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41172.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41172"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41173 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41173/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41173/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41173/events | https://github.com/pandas-dev/pandas/pull/41173 | 868,283,303 | MDExOlB1bGxSZXF1ZXN0NjIzODMyMTEw | 41,173 | fixed formatting on to_csv() for categorical datetypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/82109078?v=4",
"events_url": "https://api.github.com/users/kyleolaughlin/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleolaughlin/followers",
"following_url": "https://api.github.com/users/kyleolaughlin/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleolaughlin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleolaughlin",
"id": 82109078,
"login": "kyleolaughlin",
"node_id": "MDQ6VXNlcjgyMTA5MDc4",
"organizations_url": "https://api.github.com/users/kyleolaughlin/orgs",
"received_events_url": "https://api.github.com/users/kyleolaughlin/received_events",
"repos_url": "https://api.github.com/users/kyleolaughlin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleolaughlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleolaughlin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleolaughlin"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 3 | "2021-04-26T23:43:53Z" | "2021-06-25T16:10:35Z" | "2021-06-25T16:10:35Z" | 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/41173/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41173/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41173.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41173",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41173.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41173"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41174 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41174/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41174/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41174/events | https://github.com/pandas-dev/pandas/issues/41174 | 868,292,114 | MDU6SXNzdWU4NjgyOTIxMTQ= | 41,174 | BUG: Unexpected output of `to_json` for `complex` data | {
"avatar_url": "https://avatars.githubusercontent.com/u/3578739?v=4",
"events_url": "https://api.github.com/users/karalekas/events{/privacy}",
"followers_url": "https://api.github.com/users/karalekas/followers",
"following_url": "https://api.github.com/users/karalekas/following{/other_user}",
"gists_url": "https://api.github.com/users/karalekas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/karalekas",
"id": 3578739,
"login": "karalekas",
"node_id": "MDQ6VXNlcjM1Nzg3Mzk=",
"organizations_url": "https://api.github.com/users/karalekas/orgs",
"received_events_url": "https://api.github.com/users/karalekas/received_events",
"repos_url": "https://api.github.com/users/karalekas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/karalekas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karalekas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/karalekas"
} | [
{
"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": "009800",
"default": false,
"description": "Complex Numbers",
"id": 172091424,
"name": "Complex",
"node_id": "MDU6TGFiZWwxNzIwOTE0MjQ=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Complex"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 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-04-27T00:05:40Z" | "2021-08-30T07:52:26Z" | "2021-08-30T07:52:26Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
s = pd.Series({0: 0+2j, 1: 3+4j, 2: 5+6j})
s.to_json()
```
#### Problem description
Calling `to_json()` on a `DataFrame` or `Series` with `complex` data gives unexpected results. Running the above Code Sample gives the following output:
```
'{"0":{"imag":2.0},"1":{"imag":4.0},"2":{"imag":6.0}}'
```
This is a problem both because (1) the output is not terribly useful (the real part is just dropped), and (2) according to [the docs](https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#fallback-behavior) this should raise an error (see the following snippet copied from the linked docs page):
```python
>>> DataFrame([1.0, 2.0, complex(1.0, 2.0)]).to_json() # raises
RuntimeError: Unhandled numpy dtype 15
```
#### Expected Output
According to the docs, this should at least raise a `RuntimeError`. However, it would be nice for this to actually be supported.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 0158382ac8459a197d088790fd45f433c83c25c8
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 20.1.0
Version : Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/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.dev0+1441.g0158382ac8
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.1.0
Cython : 0.29.23
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.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 : 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/41174/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41174/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41175 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41175/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41175/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41175/events | https://github.com/pandas-dev/pandas/pull/41175 | 868,334,274 | MDExOlB1bGxSZXF1ZXN0NjIzODc4MzIw | 41,175 | PERF: implement NDArrayBackedBlock | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-27T00:48:03Z" | "2021-05-06T02:02:10Z" | "2021-05-06T01:36:22Z" | 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/41175/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41175/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41175.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41175",
"merged_at": "2021-05-06T01:36:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41175.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41175"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41176 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41176/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41176/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41176/events | https://github.com/pandas-dev/pandas/pull/41176 | 868,435,746 | MDExOlB1bGxSZXF1ZXN0NjIzOTYyOTA3 | 41,176 | DEPR: Deprecate convert_float | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 7 | "2021-04-27T04:08:55Z" | "2021-05-26T17:03:09Z" | "2021-05-26T11:57:43Z" | CONTRIBUTOR | null | - [x] closes #41127
- [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
I added tm.assert_produces_warning for every existing test that uses the `convert_float` argument, and a git grep only found one reference to `convert_float` in doc/. Is anything else required for a deprecation? IIUC, the actual feature would get removed in a pandas 2.0, correct? | {
"+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/41176/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41176/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41176.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41176",
"merged_at": "2021-05-26T11:57:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41176.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41176"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41177 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41177/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41177/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41177/events | https://github.com/pandas-dev/pandas/pull/41177 | 868,564,716 | MDExOlB1bGxSZXF1ZXN0NjI0MDY5OTAw | 41,177 | WIP: avoid zip and unzip to improve the speed of get_indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/1304505?v=4",
"events_url": "https://api.github.com/users/qiuwei/events{/privacy}",
"followers_url": "https://api.github.com/users/qiuwei/followers",
"following_url": "https://api.github.com/users/qiuwei/following{/other_user}",
"gists_url": "https://api.github.com/users/qiuwei/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qiuwei",
"id": 1304505,
"login": "qiuwei",
"node_id": "MDQ6VXNlcjEzMDQ1MDU=",
"organizations_url": "https://api.github.com/users/qiuwei/orgs",
"received_events_url": "https://api.github.com/users/qiuwei/received_events",
"repos_url": "https://api.github.com/users/qiuwei/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qiuwei/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qiuwei/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qiuwei"
} | [] | closed | false | null | [] | null | 2 | "2021-04-27T07:46:58Z" | "2021-05-14T07:27:59Z" | "2021-05-14T07:27:59Z" | NONE | null | - [x] closes #23735 #34531
- [ ] 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] improve the speed for get_index by avoiding some redundant zipping and unzipping | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41177/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41177/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41177.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41177",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41177.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41177"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41178 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41178/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41178/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41178/events | https://github.com/pandas-dev/pandas/pull/41178 | 868,617,307 | MDExOlB1bGxSZXF1ZXN0NjI0MTEzNTIw | 41,178 | TST: run frame/series arithmetic tests with+without numexpr | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-27T08:45:35Z" | "2021-04-30T17:06:05Z" | "2021-04-29T22:06:42Z" | MEMBER | null | Follow-up on https://github.com/pandas-dev/pandas/pull/40463, doing the same for the `test_arithmetic.py` for frame and series. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41178/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41178/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41178.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41178",
"merged_at": "2021-04-29T22:06:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41178.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41178"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41179 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41179/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41179/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41179/events | https://github.com/pandas-dev/pandas/pull/41179 | 868,911,996 | MDExOlB1bGxSZXF1ZXN0NjI0MzU4MzA2 | 41,179 | TYP: cleanup typing in core.indexes.range.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-27T14:34:14Z" | "2021-04-30T19:52:06Z" | "2021-04-30T18:51:13Z" | CONTRIBUTOR | null | clean-up of typing issues. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41179/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41179/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41179.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41179",
"merged_at": "2021-04-30T18:51:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41179.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41179"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41180 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41180/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41180/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41180/events | https://github.com/pandas-dev/pandas/issues/41180 | 868,934,967 | MDU6SXNzdWU4Njg5MzQ5Njc= | 41,180 | DOC: DataFrame on df.nunique causing confusion | {
"avatar_url": "https://avatars.githubusercontent.com/u/23026528?v=4",
"events_url": "https://api.github.com/users/regmibijay/events{/privacy}",
"followers_url": "https://api.github.com/users/regmibijay/followers",
"following_url": "https://api.github.com/users/regmibijay/following{/other_user}",
"gists_url": "https://api.github.com/users/regmibijay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/regmibijay",
"id": 23026528,
"login": "regmibijay",
"node_id": "MDQ6VXNlcjIzMDI2NTI4",
"organizations_url": "https://api.github.com/users/regmibijay/orgs",
"received_events_url": "https://api.github.com/users/regmibijay/received_events",
"repos_url": "https://api.github.com/users/regmibijay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/regmibijay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/regmibijay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/regmibijay"
} | [
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/22596976?v=4",
"events_url": "https://api.github.com/users/shalarewicz/events{/privacy}",
"followers_url": "https://api.github.com/users/shalarewicz/followers",
"following_url": "https://api.github.com/users/shalarewicz/following{/other_user}",
"gists_url": "https://api.github.com/users/shalarewicz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shalarewicz",
"id": 22596976,
"login": "shalarewicz",
"node_id": "MDQ6VXNlcjIyNTk2OTc2",
"organizations_url": "https://api.github.com/users/shalarewicz/orgs",
"received_events_url": "https://api.github.com/users/shalarewicz/received_events",
"repos_url": "https://api.github.com/users/shalarewicz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shalarewicz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shalarewicz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shalarewicz"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/22596976?v=4",
"events_url": "https://api.github.com/users/shalarewicz/events{/privacy}",
"followers_url": "https://api.github.com/users/shalarewicz/followers",
"following_url": "https://api.github.com/users/shalarewicz/following{/other_user}",
"gists_url": "https://api.github.com/users/shalarewicz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shalarewicz",
"id": 22596976,
"login": "shalarewicz",
"node_id": "MDQ6VXNlcjIyNTk2OTc2",
"organizations_url": "https://api.github.com/users/shalarewicz/orgs",
"received_events_url": "https://api.github.com/users/shalarewicz/received_events",
"repos_url": "https://api.github.com/users/shalarewicz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shalarewicz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shalarewicz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shalarewicz"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-27T14:57:36Z" | "2021-05-07T05:00:58Z" | "2021-05-07T05:00:26Z" | CONTRIBUTOR | null | #### https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.nunique.html
#### Documentation problem
The above documentation provides an example using `pd.DataFrame({'A': [1, 2, 3], 'B': [1, 1, 1]})` upon which `df.nunique()` returns
```
A 3
B 1
```
This example might be a bit misleading as there are `3` and `1` present in dataframe as column elements and cause confusion.
#### Suggested fix for documentation
I would like to suggest using something like `pd.DataFrame({'A': [5, 6, 7], 'B': [5, 1, 1]})` upon which `df.nunique()` returns
```
A 3
B 2
```
as this examples serves the purpose of `nunique` better as its clear that it counts the number of unique elements in column and does not return anything resembling any column element.
Furthermore, I would like to extend the example dataframe to `df.nunique(axis=1)` and match corresponding values with new dataframe as :
```
df.nunique(axis=1)
0 1
1 2
2 2
dtype: int64
```
Does this change need to be documented in `whatsnew`? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41180/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41180/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41181 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41181/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41181/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41181/events | https://github.com/pandas-dev/pandas/pull/41181 | 868,966,040 | MDExOlB1bGxSZXF1ZXN0NjI0NDA0MTk0 | 41,181 | Documentation: DataFrame on df.nunique causing confusion | {
"avatar_url": "https://avatars.githubusercontent.com/u/23026528?v=4",
"events_url": "https://api.github.com/users/regmibijay/events{/privacy}",
"followers_url": "https://api.github.com/users/regmibijay/followers",
"following_url": "https://api.github.com/users/regmibijay/following{/other_user}",
"gists_url": "https://api.github.com/users/regmibijay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/regmibijay",
"id": 23026528,
"login": "regmibijay",
"node_id": "MDQ6VXNlcjIzMDI2NTI4",
"organizations_url": "https://api.github.com/users/regmibijay/orgs",
"received_events_url": "https://api.github.com/users/regmibijay/received_events",
"repos_url": "https://api.github.com/users/regmibijay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/regmibijay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/regmibijay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/regmibijay"
} | [] | closed | false | null | [] | null | 0 | "2021-04-27T15:24:05Z" | "2021-04-27T15:25:34Z" | "2021-04-27T15:25:34Z" | CONTRIBUTOR | null | - [x] closes #41180
- [] 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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41181/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41181/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41181.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41181",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41181.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41181"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41182 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41182/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41182/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41182/events | https://github.com/pandas-dev/pandas/pull/41182 | 868,977,891 | MDExOlB1bGxSZXF1ZXN0NjI0NDE0Nzc2 | 41,182 | improved dataframe example to avoid confusion | {
"avatar_url": "https://avatars.githubusercontent.com/u/23026528?v=4",
"events_url": "https://api.github.com/users/regmibijay/events{/privacy}",
"followers_url": "https://api.github.com/users/regmibijay/followers",
"following_url": "https://api.github.com/users/regmibijay/following{/other_user}",
"gists_url": "https://api.github.com/users/regmibijay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/regmibijay",
"id": 23026528,
"login": "regmibijay",
"node_id": "MDQ6VXNlcjIzMDI2NTI4",
"organizations_url": "https://api.github.com/users/regmibijay/orgs",
"received_events_url": "https://api.github.com/users/regmibijay/received_events",
"repos_url": "https://api.github.com/users/regmibijay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/regmibijay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/regmibijay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/regmibijay"
} | [
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-27T15:31:20Z" | "2021-05-07T12:31:37Z" | "2021-05-07T05:00:27Z" | CONTRIBUTOR | null | - [x] closes #41180
- [ ] 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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41182/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41182/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41182.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41182",
"merged_at": "2021-05-07T05:00:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41182.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41182"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41183 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41183/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41183/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41183/events | https://github.com/pandas-dev/pandas/issues/41183 | 869,044,278 | MDU6SXNzdWU4NjkwNDQyNzg= | 41,183 | AssertionError on groupby max | {
"avatar_url": "https://avatars.githubusercontent.com/u/1433412?v=4",
"events_url": "https://api.github.com/users/trimbilrepo/events{/privacy}",
"followers_url": "https://api.github.com/users/trimbilrepo/followers",
"following_url": "https://api.github.com/users/trimbilrepo/following{/other_user}",
"gists_url": "https://api.github.com/users/trimbilrepo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trimbilrepo",
"id": 1433412,
"login": "trimbilrepo",
"node_id": "MDQ6VXNlcjE0MzM0MTI=",
"organizations_url": "https://api.github.com/users/trimbilrepo/orgs",
"received_events_url": "https://api.github.com/users/trimbilrepo/received_events",
"repos_url": "https://api.github.com/users/trimbilrepo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trimbilrepo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trimbilrepo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trimbilrepo"
} | [
{
"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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 13 | "2021-04-27T16:46:30Z" | "2021-09-03T00:27:15Z" | "2021-08-20T02:39:01Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
def get_data():
# request data from the server
return data
datas = get_data()
#datas consist of 2195 rows and 22 column
df = pd.DataFrame(datas)
total = df.groupby('userid').max()['point'].sum()
print(f"sum all point: {total}")
Traceback (most recent call last):
File "playground-test.py", line 15, in <module>
total = df.groupby('userid').max()['point'].sum()
File "/home/playground/.local/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 1560, in max
numeric_only=numeric_only, min_count=min_count, alias="max", npfunc=np.max
File "/home/playground/.local/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 1001, in _agg_general
how=alias, alt=npfunc, numeric_only=numeric_only, min_count=min_count,
File "/home/playground/.local/lib/python3.6/site-packages/pandas/core/groupby/generic.py", line 1022, in _cython_agg_general
how, alt=alt, numeric_only=numeric_only, min_count=min_count
File "/home/playground/.local/lib/python3.6/site-packages/pandas/core/groupby/generic.py", line 1135, in _cython_agg_blocks
assert len(locs) == result.shape[1]
AssertionError
```
```python
import pandas as pd
def get_data():
# request data from the server
return data
datas = get_data()
#let's copy dataframe and only include 2 column
df_copy = df[['userid','point']].copy()
total = df_copy.groupby('userid').max()['point'].sum()
print(f"sum all point: {total}")
64511636
```
#### Problem description
`groupby` `max` function on dataframe that consist of 22 column does make error with AssertionError. However, if I tried to made smaller dataframe with 2 column. It does work.
I am on Pandas 1.1.5 and I dont know why, I can't upgrade to 1.2.4
```linux
$pip3 install pandas --upgrade
Requirement already satisfied: pandas in /home/playground/.local/lib/python3.6/site-packages (1.1.5)
Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.6/site-packages (from pandas) (2020.1)
Requirement already satisfied: numpy>=1.15.4 in /usr/local/lib64/python3.6/site-packages (from pandas) (1.19.5)
Requirement already satisfied: python-dateutil>=2.7.3 in /usr/local/lib/python3.6/site-packages (from pandas) (2.8.1)
Requirement already satisfied: six>=1.5 in /home/playground/.local/lib/python3.6/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
```
```linux
$$ pip3 install pandas==1.2.4
ERROR: Could not find a version that satisfies the requirement pandas==1.2.4
ERROR: No matching distribution found for pandas==1.2.4
```
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1160.24.1.el7.x86_64
Version : #1 SMP Thu Apr 8 19:51:47 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.utf-8≈
LANG : en_US.utf-8
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.19.5
pytz : 2020.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 56.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : 1.0.2
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.4
sqlalchemy : 1.4.7
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/41183/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41183/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41184 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41184/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41184/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41184/events | https://github.com/pandas-dev/pandas/pull/41184 | 869,178,053 | MDExOlB1bGxSZXF1ZXN0NjI0NTg1Mzkz | 41,184 | TYP: Overload concat | {
"avatar_url": "https://avatars.githubusercontent.com/u/54398132?v=4",
"events_url": "https://api.github.com/users/pckSF/events{/privacy}",
"followers_url": "https://api.github.com/users/pckSF/followers",
"following_url": "https://api.github.com/users/pckSF/following{/other_user}",
"gists_url": "https://api.github.com/users/pckSF/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pckSF",
"id": 54398132,
"login": "pckSF",
"node_id": "MDQ6VXNlcjU0Mzk4MTMy",
"organizations_url": "https://api.github.com/users/pckSF/orgs",
"received_events_url": "https://api.github.com/users/pckSF/received_events",
"repos_url": "https://api.github.com/users/pckSF/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pckSF/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pckSF/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pckSF"
} | [
{
"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": "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"
} | 22 | "2021-04-27T19:10:01Z" | "2021-08-22T14:00:45Z" | "2021-08-22T14:00:45Z" | CONTRIBUTOR | null | - [ ] Closes part of MarcoGorelli/pyladieslondon-sprints#29
- [ ] Adds typing.overload to: `concat` from https://github.com/pandas-dev/pandas/blob/master/pandas/core/reshape/concat.py
## `mypy` Setup and Sutput
```python
# t.py
import pandas as pd
from pandas._typing import Axis
from pandas.core.generic import NDFrame
axis: Axis
ndf1: NDFrame
ndf2: NDFrame
s1 = pd.Series
s2 = pd.Series
df1 = pd.DataFrame
df2 = pd.DataFrame
reveal_type(pd.concat([s1, s2]))
reveal_type(pd.concat([s1, s2], axis=0))
reveal_type(pd.concat([s1, s2], axis=1))
reveal_type(pd.concat([s1, s2], axis="index"))
reveal_type(pd.concat([s1, s2], axis="columns"))
reveal_type(pd.concat([df1, df2]))
reveal_type(pd.concat([df1, df2], axis=0))
reveal_type(pd.concat([df1, df2], axis=1))
reveal_type(pd.concat([df1, df2], axis="index"))
reveal_type(pd.concat([df1, df2], axis="columns"))
reveal_type(pd.concat([ndf1, ndf2]))
reveal_type(pd.concat([ndf1, ndf2], axis=0))
reveal_type(pd.concat([ndf1, ndf2], axis=1))
reveal_type(pd.concat([ndf1, ndf2], axis="index"))
reveal_type(pd.concat([ndf1, ndf2], axis="columns"))
```
which results in the following mypy output:
```bash
$ mypy t.py
t.py:16: note: Revealed type is 'pandas.core.series.Series'
t.py:17: note: Revealed type is 'pandas.core.series.Series'
t.py:18: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:19: note: Revealed type is 'pandas.core.series.Series'
t.py:20: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:22: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:23: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:24: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:25: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:26: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:28: note: Revealed type is 'Union[pandas.core.frame.DataFrame, pandas.core.series.Series]'
t.py:29: note: Revealed type is 'Union[pandas.core.frame.DataFrame, pandas.core.series.Series]'
t.py:30: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:31: note: Revealed type is 'Union[pandas.core.frame.DataFrame, pandas.core.series.Series]'
t.py:32: note: Revealed type is 'pandas.core.frame.DataFrame'
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41184/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41184/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41184.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41184",
"merged_at": "2021-08-22T14:00:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41184.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41184"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41185 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41185/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41185/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41185/events | https://github.com/pandas-dev/pandas/pull/41185 | 869,187,311 | MDExOlB1bGxSZXF1ZXN0NjI0NTkzMTQ4 | 41,185 | TYP: use DTypeLike alias from numpy.typing | {
"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"
},
{
"color": "b60205",
"default": false,
"description": "Temporarily-closed PR the author plans to return to",
"id": 1991290519,
"name": "Mothballed",
"node_id": "MDU6TGFiZWwxOTkxMjkwNTE5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Mothballed"
}
] | closed | false | null | [] | null | 6 | "2021-04-27T19:23:09Z" | "2021-06-01T21:48:29Z" | "2021-05-01T12:13:44Z" | 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/41185/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41185/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41185.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41185",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41185.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41185"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/41186 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41186/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41186/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41186/events | https://github.com/pandas-dev/pandas/pull/41186 | 869,192,714 | MDExOlB1bGxSZXF1ZXN0NjI0NTk3OTk5 | 41,186 | Deprecate inplace in Categorical.rename_categories | {
"avatar_url": "https://avatars.githubusercontent.com/u/16047980?v=4",
"events_url": "https://api.github.com/users/OlehKSS/events{/privacy}",
"followers_url": "https://api.github.com/users/OlehKSS/followers",
"following_url": "https://api.github.com/users/OlehKSS/following{/other_user}",
"gists_url": "https://api.github.com/users/OlehKSS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlehKSS",
"id": 16047980,
"login": "OlehKSS",
"node_id": "MDQ6VXNlcjE2MDQ3OTgw",
"organizations_url": "https://api.github.com/users/OlehKSS/orgs",
"received_events_url": "https://api.github.com/users/OlehKSS/received_events",
"repos_url": "https://api.github.com/users/OlehKSS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlehKSS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlehKSS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlehKSS"
} | [
{
"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": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | "2021-04-27T19:28:32Z" | "2021-05-02T23:50:22Z" | "2021-05-02T23:50:11Z" | CONTRIBUTOR | null | - [x] xref #37643
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41186/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41186/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41186.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41186",
"merged_at": "2021-05-02T23:50:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41186.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41186"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41187 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41187/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41187/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41187/events | https://github.com/pandas-dev/pandas/pull/41187 | 869,238,064 | MDExOlB1bGxSZXF1ZXN0NjI0NjM2Mjk1 | 41,187 | WEB add phofl to maintainers list | {
"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": "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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-27T20:29:38Z" | "2021-05-03T11:10:16Z" | "2021-04-28T01:13:08Z" | MEMBER | null | Am I OK to add a checklist (which would probably only have about 3 items: add to pandas-dev team on GitHub, add to mailing group, list on website) to the Wiki for next someone's added? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41187/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41187/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41187.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41187",
"merged_at": "2021-04-28T01:13:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41187.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41187"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41188 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41188/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41188/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41188/events | https://github.com/pandas-dev/pandas/issues/41188 | 869,320,513 | MDU6SXNzdWU4NjkzMjA1MTM= | 41,188 | BUG: df.hist by column alongside with specified columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/49076030?v=4",
"events_url": "https://api.github.com/users/SimonKitSangChu/events{/privacy}",
"followers_url": "https://api.github.com/users/SimonKitSangChu/followers",
"following_url": "https://api.github.com/users/SimonKitSangChu/following{/other_user}",
"gists_url": "https://api.github.com/users/SimonKitSangChu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SimonKitSangChu",
"id": 49076030,
"login": "SimonKitSangChu",
"node_id": "MDQ6VXNlcjQ5MDc2MDMw",
"organizations_url": "https://api.github.com/users/SimonKitSangChu/orgs",
"received_events_url": "https://api.github.com/users/SimonKitSangChu/received_events",
"repos_url": "https://api.github.com/users/SimonKitSangChu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SimonKitSangChu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SimonKitSangChu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SimonKitSangChu"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] | open | false | null | [] | null | 0 | "2021-04-27T22:35:23Z" | "2021-08-20T02:39:14Z" | null | NONE | null | #### Histogram through pandas.DataFrame.hist
```python
import pandas as pd
import numpy as np
df = pd.DataFrame({'length': np.random.normal(0, 1, 1000),
'width': np.random.normal(0, 1, 1000),
'a': np.random.randint(0, 2, 1000)})
df.hist(column=['length', 'width'], by='a', figsize=(4, 2))
```
#### Problem description
by-column `a` plotted along specified columns `length` and `width` ([link](https://i.stack.imgur.com/khZfd.png)). The full problem is described on this stackoverflow [post](https://stackoverflow.com/questions/67289674/remove-by-column-in-pandas-dataframe-hist).
#### Expected Output
Problem vanishes when by-column is non-numeric ([link](https://i.stack.imgur.com/047eQ.png)).
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.10.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-142-generic
Version : #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 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.2.4
numpy : 1.19.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1
setuptools : 49.6.0.post20210108
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.3
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.14.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 2021.04.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : 1.4.11
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41188/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41188/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41189 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41189/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41189/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41189/events | https://github.com/pandas-dev/pandas/pull/41189 | 869,350,880 | MDExOlB1bGxSZXF1ZXN0NjI0NzMwOTg5 | 41,189 | CLN: unnecessary checks in internals.concat | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-27T23:33:58Z" | "2021-04-29T22:13:12Z" | "2021-04-29T22:07:22Z" | 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/41189/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41189/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41189.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41189",
"merged_at": "2021-04-29T22:07:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41189.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41189"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/41190 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41190/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41190/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41190/events | https://github.com/pandas-dev/pandas/pull/41190 | 869,395,752 | MDExOlB1bGxSZXF1ZXN0NjI0NzY3NTY5 | 41,190 | CLN: reindex_axis remove unnecessary args, always copy=False | {
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-28T01:10:51Z" | "2021-04-28T15:51:05Z" | "2021-04-28T15:19:43Z" | 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/41190/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41190/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41190.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41190",
"merged_at": "2021-04-28T15:19:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41190.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41190"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41191 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41191/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41191/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41191/events | https://github.com/pandas-dev/pandas/issues/41191 | 869,561,185 | MDU6SXNzdWU4Njk1NjExODU= | 41,191 | QST: single MultiIndex.from_tuples errors | {
"avatar_url": "https://avatars.githubusercontent.com/u/50440358?v=4",
"events_url": "https://api.github.com/users/Leejung8763/events{/privacy}",
"followers_url": "https://api.github.com/users/Leejung8763/followers",
"following_url": "https://api.github.com/users/Leejung8763/following{/other_user}",
"gists_url": "https://api.github.com/users/Leejung8763/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Leejung8763",
"id": 50440358,
"login": "Leejung8763",
"node_id": "MDQ6VXNlcjUwNDQwMzU4",
"organizations_url": "https://api.github.com/users/Leejung8763/orgs",
"received_events_url": "https://api.github.com/users/Leejung8763/received_events",
"repos_url": "https://api.github.com/users/Leejung8763/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Leejung8763/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Leejung8763/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Leejung8763"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | "2021-04-28T06:49:48Z" | "2021-04-28T14:42:42Z" | "2021-04-28T14:42:42Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
pd.MultiIndex.from_tuples(("2018", "11"))
```
#### Problem description
I want to make Multiple index to append my dataframe.
So, I used those codes and get something different with my think
#### Expected Output
I think
MultiIndex([('2018', '11'),
)
but, I got
MultiIndex([('2', '0'),
('1', '1')],
)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-693.11.6.el7.x86_64
Version : #1 SMP Thu Jan 4 01:06:37 UTC 2018
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : ko_KR.UTF-8
LOCALE : ko_KR.UTF-8
pandas : 1.2.4
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0.post20200714
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.4.0
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.5.3
sqlalchemy : 1.3.18
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.51.2
</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/41191/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41191/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41192 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41192/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41192/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41192/events | https://github.com/pandas-dev/pandas/pull/41192 | 869,709,574 | MDExOlB1bGxSZXF1ZXN0NjI1MDI5OTI0 | 41,192 | REF: tests.indexes.numeric.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-28T08:59:23Z" | "2021-04-30T19:52:23Z" | "2021-04-30T18:52:55Z" | CONTRIBUTOR | null | This PR ensures that all index instantiation calls in `tests.indexes.numeric.py` use the `_holder` class variable instead of the actual index class. This will make it easier to extend the existing tests to tests for the new `NumIndex` in #41153.
Also renames `_holder` to `_index_cls` for all of `tests.indexes`. I think this is a more descriptive name.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41192/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41192/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41192.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41192",
"merged_at": "2021-04-30T18:52:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41192.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41192"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41193 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41193/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41193/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41193/events | https://github.com/pandas-dev/pandas/pull/41193 | 869,762,842 | MDExOlB1bGxSZXF1ZXN0NjI1MDczOTg5 | 41,193 | BUG: dataframe setitem error on size incompatible assignment | {
"avatar_url": "https://avatars.githubusercontent.com/u/34886045?v=4",
"events_url": "https://api.github.com/users/Mxchaeltrxn/events{/privacy}",
"followers_url": "https://api.github.com/users/Mxchaeltrxn/followers",
"following_url": "https://api.github.com/users/Mxchaeltrxn/following{/other_user}",
"gists_url": "https://api.github.com/users/Mxchaeltrxn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Mxchaeltrxn",
"id": 34886045,
"login": "Mxchaeltrxn",
"node_id": "MDQ6VXNlcjM0ODg2MDQ1",
"organizations_url": "https://api.github.com/users/Mxchaeltrxn/orgs",
"received_events_url": "https://api.github.com/users/Mxchaeltrxn/received_events",
"repos_url": "https://api.github.com/users/Mxchaeltrxn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Mxchaeltrxn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mxchaeltrxn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Mxchaeltrxn"
} | [
{
"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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 9 | "2021-04-28T09:55:56Z" | "2021-08-08T01:02:36Z" | "2021-08-08T01:02:35Z" | NONE | null | - [ ] closes #40827
- [ ] 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
I've labeled the error something silly but that can be fixed later.
This pull request replaces this older pr #41008
I've put all my tests inside one file for easier review.
### Issues
I'm unsure how to stop this test from failing `test_pivot_table_doctest_case` Could you help with this?
This test (`test_invalid_colormap`) also fails but when I rerun it individually, it passes ...
I also had an issue with flake8 and black not working together ... in my most recent commit so I just committed it with `--no-verify`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41193/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41193/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41193.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41193",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41193.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41193"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41194 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41194/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41194/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41194/events | https://github.com/pandas-dev/pandas/pull/41194 | 869,779,508 | MDExOlB1bGxSZXF1ZXN0NjI1MDg3Nzg3 | 41,194 | ENH: use native filesystem (if available) for read_parquet with pyarrow engine | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "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": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
},
{
"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 | 3 | "2021-04-28T10:13:54Z" | "2021-09-14T12:00:17Z" | null | MEMBER | null | Some timings in https://issues.apache.org/jira/browse/ARROW-12428 suggest that it can be beneficial for reading parquet from S3 to use the pyarrow filesystem implementation, instead of pandas always using fsspec if installed (especially when selecting columns). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41194/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41194/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41194.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41194",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41194.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41194"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41195 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41195/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41195/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41195/events | https://github.com/pandas-dev/pandas/pull/41195 | 869,958,816 | MDExOlB1bGxSZXF1ZXN0NjI1MjM1NTIz | 41,195 | TST: refactored tests to use parametrize instead of "for" loop | {
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-28T13:37:44Z" | "2021-05-03T13:15:35Z" | "2021-05-03T12:49:04Z" | MEMBER | null | - [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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41195/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41195/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41195.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41195",
"merged_at": "2021-05-03T12:49:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41195.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41195"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41196 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41196/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41196/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41196/events | https://github.com/pandas-dev/pandas/pull/41196 | 870,028,341 | MDExOlB1bGxSZXF1ZXN0NjI1MjkzMjU1 | 41,196 | BUG: Fix export .to_numpy() with nullable type | {
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | closed | false | null | [] | null | 3 | "2021-04-28T14:44:14Z" | "2021-05-20T17:03:22Z" | "2021-05-20T17:03:22Z" | CONTRIBUTOR | null | - [x] closes #40630
- [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/41196/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41196/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41196.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41196",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41196.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41196"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41197 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41197/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41197/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41197/events | https://github.com/pandas-dev/pandas/issues/41197 | 870,073,386 | MDU6SXNzdWU4NzAwNzMzODY= | 41,197 | BUG: outer/right merging on two "Int64" columns results in an "int64" column | {
"avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4",
"events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}",
"followers_url": "https://api.github.com/users/kpflugshaupt/followers",
"following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}",
"gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kpflugshaupt",
"id": 2961313,
"login": "kpflugshaupt",
"node_id": "MDQ6VXNlcjI5NjEzMTM=",
"organizations_url": "https://api.github.com/users/kpflugshaupt/orgs",
"received_events_url": "https://api.github.com/users/kpflugshaupt/received_events",
"repos_url": "https://api.github.com/users/kpflugshaupt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kpflugshaupt"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 1 | "2021-04-28T15:25:04Z" | "2021-04-28T15:30:03Z" | "2021-04-28T15:29:50Z" | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
# Outer merge on two "Int64" columns casts the joining column to "int64"
df1 = pd.DataFrame(dict(nr=[1,2])).astype("Int64")
df2 = pd.DataFrame(dict(nr=[2,3])).astype("Int64")
pd.merge(df1, df2, on="nr", how="outer").dtypes
# nr int64
# dtype: object
# Inner merge is OK
pd.merge(df1, df2, on="nr", how="inner").dtypes
# nr Int64
# dtype: object
# Left merge is OK
pd.merge(df1, df2, on="nr", how="left").dtypes
# nr Int64
# dtype: object
# Right merge also casts to "int64"
pd.merge(df1, df2, on="nr", how="right").dtypes
# nr int64
# dtype: object
```
#### Problem description
"Int64" columns lose their data type and are converted to "int64" when used as joining column in an outer or right merge.
This does not seem to happen for inner and left merges.
#### Expected Output
"Int64" columns should retain their dtype during merge operations.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.8.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : German_Switzerland.1252
pandas : 1.2.4
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.1
setuptools : 51.0.0
Cython : None
pytest : None
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 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 4.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.3
sqlalchemy : 1.4.0b1
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/41197/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41197/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41198 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41198/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41198/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41198/events | https://github.com/pandas-dev/pandas/issues/41198 | 870,130,873 | MDU6SXNzdWU4NzAxMzA4NzM= | 41,198 | ENH: Check if individual value is pd.NA | {
"avatar_url": "https://avatars.githubusercontent.com/u/73904804?v=4",
"events_url": "https://api.github.com/users/bandlerr/events{/privacy}",
"followers_url": "https://api.github.com/users/bandlerr/followers",
"following_url": "https://api.github.com/users/bandlerr/following{/other_user}",
"gists_url": "https://api.github.com/users/bandlerr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bandlerr",
"id": 73904804,
"login": "bandlerr",
"node_id": "MDQ6VXNlcjczOTA0ODA0",
"organizations_url": "https://api.github.com/users/bandlerr/orgs",
"received_events_url": "https://api.github.com/users/bandlerr/received_events",
"repos_url": "https://api.github.com/users/bandlerr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bandlerr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bandlerr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bandlerr"
} | [
{
"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": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 3 | "2021-04-28T16:26:38Z" | "2021-04-28T16:51:12Z" | "2021-04-28T16:51:12Z" | NONE | null | #### Is your feature request related to a problem?
Currently, according to Pandas documentation, dataframe.isna() returns a same-size dataframe object (or Series) containing boolean values for each element indicating whether that element is or is not a pd.NA. However, in pandas current implementation, there is no way to clearly check if a single value in a dataFrame (or Series) is NA. For example: If I want to iterate over a Series, and perform some operation to each element, but ignore any pd.NA elements, there is no intuitive way to check for that. Without running into errors such as "boolean value of NA is ambiguous".
#### Describe the solution you'd like
a pandas function which simply accepts any entity and returns whether or not it is a pd.NA object, or direct implementation for the == or is operator for pd.NA
#### Describe alternatives you've considered
I am aware that workarounds for this exist, such as using applyMap() or Map() with na_action='ignore', but that doesn't mean that this functionality I am proposing shouldn't also exist. The current dataframe.isna() function could be used to solve this issue as well, but I would have to find all indices for True in the returned dataframe, which is not an elegant solution, and is also computationally expensive.
```python
data = some_pandas_series
for i in range(len(data)):
print(data[i].isna())
##or some other function which would achieve the same results in this way
```
this should iterate through the Series and print True or False to the screen indicating whether or not each element is pd.NA | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41198/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41198/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41199 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41199/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41199/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41199/events | https://github.com/pandas-dev/pandas/issues/41199 | 870,148,404 | MDU6SXNzdWU4NzAxNDg0MDQ= | 41,199 | DEPS: remove distutils | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
},
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | "2021-04-28T16:45:59Z" | "2021-05-05T20:14:09Z" | "2021-05-05T20:14:09Z" | MEMBER | null | distutils is deprecated in Python 3.10, it will be removed in 3.12.
https://www.python.org/dev/peps/pep-0632/ has a section about migration.
xref #41113 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41199/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41199/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41200 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41200/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41200/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41200/events | https://github.com/pandas-dev/pandas/pull/41200 | 870,151,102 | MDExOlB1bGxSZXF1ZXN0NjI1Mzk0ODI4 | 41,200 | REF: move DataFrame-specific methods from NDFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-28T16:48:42Z" | "2021-04-30T18:15:41Z" | "2021-04-30T16:36:53Z" | MEMBER | null | which in turn lets us do the same for BlockManager/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/41200/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41200/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41200.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41200",
"merged_at": "2021-04-30T16:36:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41200.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41200"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41201 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41201/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41201/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41201/events | https://github.com/pandas-dev/pandas/pull/41201 | 870,180,109 | MDExOlB1bGxSZXF1ZXN0NjI1NDE4NDU4 | 41,201 | TYP: io.parsers | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-28T17:23:42Z" | "2021-05-05T14:54:58Z" | "2021-05-05T13:00:22Z" | 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/41201/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41201/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41201.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41201",
"merged_at": "2021-05-05T13:00:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41201.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41201"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41202 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41202/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41202/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41202/events | https://github.com/pandas-dev/pandas/pull/41202 | 870,239,194 | MDExOlB1bGxSZXF1ZXN0NjI1NDY3MDc0 | 41,202 | BUG: make_block with dt64tz-1d #41168 | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-28T18:40:14Z" | "2021-04-30T21:32:35Z" | "2021-04-30T20:36:56Z" | MEMBER | null | - [x] closes #41168
- [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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41202/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41202/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41202.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41202",
"merged_at": "2021-04-30T20:36:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41202.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41202"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41203 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41203/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41203/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41203/events | https://github.com/pandas-dev/pandas/pull/41203 | 870,247,759 | MDExOlB1bGxSZXF1ZXN0NjI1NDc0MjU5 | 41,203 | TYP: Fix typing in ExtensionDtype registry | {
"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": "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": "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"
} | 12 | "2021-04-28T18:51:18Z" | "2021-08-03T15:59:52Z" | "2021-08-03T15:59:52Z" | CONTRIBUTOR | null | Simplifying #40421 to just fix up typing in the registry for Extension Dtypes, and return type for `construct_from_string` in `pandas/core/dtypes/base.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/41203/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41203/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41203.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41203",
"merged_at": "2021-08-03T15:59:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41203.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41203"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41204 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41204/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41204/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41204/events | https://github.com/pandas-dev/pandas/pull/41204 | 870,262,312 | MDExOlB1bGxSZXF1ZXN0NjI1NDg2MzAw | 41,204 | CLN: groupby.ops follow-up cleanup | {
"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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-28T19:10:16Z" | "2021-04-30T15:22:00Z" | "2021-04-30T14:53:48Z" | MEMBER | null | get the namespaces/privateness "right"
avoid runtime imports
fix "type: ignore"s | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41204/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41204/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41204.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41204",
"merged_at": "2021-04-30T14:53:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41204.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41204"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41205 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41205/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41205/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41205/events | https://github.com/pandas-dev/pandas/pull/41205 | 870,263,875 | MDExOlB1bGxSZXF1ZXN0NjI1NDg3NTcw | 41,205 | DOC: Add Lux to Pandas Ecosystem page | {
"avatar_url": "https://avatars.githubusercontent.com/u/5554675?v=4",
"events_url": "https://api.github.com/users/dorisjlee/events{/privacy}",
"followers_url": "https://api.github.com/users/dorisjlee/followers",
"following_url": "https://api.github.com/users/dorisjlee/following{/other_user}",
"gists_url": "https://api.github.com/users/dorisjlee/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dorisjlee",
"id": 5554675,
"login": "dorisjlee",
"node_id": "MDQ6VXNlcjU1NTQ2NzU=",
"organizations_url": "https://api.github.com/users/dorisjlee/orgs",
"received_events_url": "https://api.github.com/users/dorisjlee/received_events",
"repos_url": "https://api.github.com/users/dorisjlee/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dorisjlee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dorisjlee/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dorisjlee"
} | [
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-28T19:12:38Z" | "2021-05-01T18:11:00Z" | "2021-05-01T18:10:48Z" | CONTRIBUTOR | null | #### Location of the documentation
List of systems under [pandas ecosystem](https://pandas.pydata.org/docs/ecosystem.html#pandas-ecosystem)
#### Documentation problem
Add [Lux](https://github.com/lux-org/lux) to the ["pandas ecosystem" documentation](https://pandas.pydata.org/docs/ecosystem.html#pandas-ecosystem)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41205/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41205/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41205.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41205",
"merged_at": "2021-05-01T18:10:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41205.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41205"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41206 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41206/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41206/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41206/events | https://github.com/pandas-dev/pandas/issues/41206 | 870,313,596 | MDU6SXNzdWU4NzAzMTM1OTY= | 41,206 | QST: ERROR in Jupyter using pandas module: ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location) | {
"avatar_url": "https://avatars.githubusercontent.com/u/83371463?v=4",
"events_url": "https://api.github.com/users/NocaoBr/events{/privacy}",
"followers_url": "https://api.github.com/users/NocaoBr/followers",
"following_url": "https://api.github.com/users/NocaoBr/following{/other_user}",
"gists_url": "https://api.github.com/users/NocaoBr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/NocaoBr",
"id": 83371463,
"login": "NocaoBr",
"node_id": "MDQ6VXNlcjgzMzcxNDYz",
"organizations_url": "https://api.github.com/users/NocaoBr/orgs",
"received_events_url": "https://api.github.com/users/NocaoBr/received_events",
"repos_url": "https://api.github.com/users/NocaoBr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/NocaoBr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NocaoBr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/NocaoBr"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 5 | "2021-04-28T20:03:16Z" | "2021-08-20T02:40:52Z" | "2021-08-20T02:40:51Z" | NONE | null | Question about ERROR pandas
-------
English:
Guys I was trying to learn a program with Jupyter, but when I installed pandas at
'pip install pandas' please worked, but I used (import pandas as pd) it on jupyter and I give the following error message:
```python
# ImportError Traceback (most recent call last)
<ipython-input-35-33fbe9d324d8> in <module>
----> 1 import pandas as pd
2
3 df = pd.read_excel(r'C:\Users\USER\Desktop\Vendas - Dez.xlsx')
4 df.corr()
~\anaconda3\lib\site-packages\pandas\__init__.py in <module>
20
21 # numpy compat
---> 22 from pandas.compat.numpy import (
23 np_version_under1p17 as _np_version_under1p17,
24 np_version_under1p18 as _np_version_under1p18,
ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)"
```
=============================================
Portuguese:
Cara eu estava tentando aprender a programar com o Jupyter, mas quando instalei o pandas pelo
'pip install pandas' pareceu dar certo, mas fui usar (import pandas as pd) no jupyter e da a seguinte mensagem:
```python
"ImportError Traceback (most recent call last)
<ipython-input-35-33fbe9d324d8> in <module>
----> 1 import pandas as pd
2
3 df = pd.read_excel(r'C:\Users\USER\Desktop\Vendas - Dez.xlsx')
4 df.corr()
~\anaconda3\lib\site-packages\pandas\__init__.py in <module>
20
21 # numpy compat
---> 22 from pandas.compat.numpy import (
23 np_version_under1p17 as _np_version_under1p17,
24 np_version_under1p18 as _np_version_under1p18,
ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)"
```

----------
HELP PLEASE GUYS!!!!! | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41206/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41206/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41207 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41207/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41207/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41207/events | https://github.com/pandas-dev/pandas/pull/41207 | 870,387,669 | MDExOlB1bGxSZXF1ZXN0NjI1NTk2MTU1 | 41,207 | DEPS/CLN: remove distutils usage | {
"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": "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"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
},
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 12 | "2021-04-28T21:12:45Z" | "2021-06-18T02:25:50Z" | "2021-05-05T20:14:09Z" | MEMBER | null | - [x] close #41199
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41207/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41207/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41207.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41207",
"merged_at": "2021-05-05T20:14:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41207.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41207"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41208 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41208/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41208/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41208/events | https://github.com/pandas-dev/pandas/issues/41208 | 870,434,683 | MDU6SXNzdWU4NzA0MzQ2ODM= | 41,208 | BUG: Dataframe structure is incompatible across minor versions 1.0.5 -> 1.1.0+, violating semver rules | {
"avatar_url": "https://avatars.githubusercontent.com/u/165937?v=4",
"events_url": "https://api.github.com/users/tigerhawkvok/events{/privacy}",
"followers_url": "https://api.github.com/users/tigerhawkvok/followers",
"following_url": "https://api.github.com/users/tigerhawkvok/following{/other_user}",
"gists_url": "https://api.github.com/users/tigerhawkvok/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tigerhawkvok",
"id": 165937,
"login": "tigerhawkvok",
"node_id": "MDQ6VXNlcjE2NTkzNw==",
"organizations_url": "https://api.github.com/users/tigerhawkvok/orgs",
"received_events_url": "https://api.github.com/users/tigerhawkvok/received_events",
"repos_url": "https://api.github.com/users/tigerhawkvok/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tigerhawkvok/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tigerhawkvok/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tigerhawkvok"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | "2021-04-28T22:11:47Z" | "2021-04-29T23:33:11Z" | "2021-04-29T23:33:11Z" | 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.
---
1. Create a DF in Pandas 1.1.0+
```python
import pandas as pd
dfContents = [{"foo": 1.1, "bar": True, "baz": "test1"}, {"foo":5.5, "bar": False, "baz": "test2"}]
df = pd.DataFrame(dfContents)
print(df.head())
df.to_pickle("bugReportSample.pkl", protocol= 4)
```

2. Load in a different computer/system/subsystem with a different Pandas version like 1.0.5
```python
import pandas as pd
df = pd.read_pickle("bugReportSample.pkl")
print(df.head())
```

#### Problem description
A core objects structure should be compatible across minor versions; which [via the semver standard](https://semver.org/#summary)
> Given a version number MAJOR.MINOR.PATCH, increment the:
>
> MAJOR version when you make incompatible API changes,
> ***MINOR version when you add functionality in a backwards compatible manner, and*** \[emphasis added\]
> PATCH version when you make backwards compatible bug fixes.
> Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
#### Expected Output
A serialized dataframe should be compatible across versions.
- Serialization to basic objects should be backwards compatible, in such a way that all reasonable serializations should "just work" (eg, joblib, pickle, hdf5 ...)
- If it cannot be in all cases, native write functions like `DataFrame.to_pickle()` should handle the backwards-compatibility work, at least via flag.
- If it cannot be at all, the _major_ version should be incremented as per semver, since this breaks backwards compatibility.
- If the major version cannot be incremented, Pandas shouldn't pretend to follow semantic versioning and should use a version number that is plainly and obviously not semantic versioning, like Ubuntu's whimsical named versions.
#### Output of ``pd.show_versions()``
<details>
Writer system:
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-19041-Microsoft
Version : #488-Microsoft Mon Sep 01 13:43:00 PST 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.4
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 54.1.2
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
>>>
```
Reader system:
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.8.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.5
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 47.1.0
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fastparquet : 0.4.0
gcsfs : None
lxml.etree : 4.6.1
matplotlib : 3.2.2
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 3.0.0
pytables : None
pytest : 5.4.3
pyxlsb : None
s3fs : None
scipy : 1.5.1
sqlalchemy : 1.3.18
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 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/41208/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41208/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41209 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41209/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41209/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41209/events | https://github.com/pandas-dev/pandas/pull/41209 | 870,450,110 | MDExOlB1bGxSZXF1ZXN0NjI1NjUwMjQ2 | 41,209 | DOC: Fix link and typo | {
"avatar_url": "https://avatars.githubusercontent.com/u/2836374?v=4",
"events_url": "https://api.github.com/users/timhoffm/events{/privacy}",
"followers_url": "https://api.github.com/users/timhoffm/followers",
"following_url": "https://api.github.com/users/timhoffm/following{/other_user}",
"gists_url": "https://api.github.com/users/timhoffm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/timhoffm",
"id": 2836374,
"login": "timhoffm",
"node_id": "MDQ6VXNlcjI4MzYzNzQ=",
"organizations_url": "https://api.github.com/users/timhoffm/orgs",
"received_events_url": "https://api.github.com/users/timhoffm/received_events",
"repos_url": "https://api.github.com/users/timhoffm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/timhoffm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/timhoffm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/timhoffm"
} | [
{
"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-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-28T22:29:55Z" | "2021-04-30T07:00:28Z" | "2021-04-30T00:40:21Z" | 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/41209/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41209/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41209.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41209",
"merged_at": "2021-04-30T00:40:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41209.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41209"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/41210 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41210/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41210/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41210/events | https://github.com/pandas-dev/pandas/pull/41210 | 870,613,454 | MDExOlB1bGxSZXF1ZXN0NjI1NzgxNjMx | 41,210 | REF: De-duplicate agg_series | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-29T05:03:29Z" | "2021-04-30T03:01:17Z" | "2021-04-29T23:32:18Z" | 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/41210/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41210/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41210.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41210",
"merged_at": "2021-04-29T23:32:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41210.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41210"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41211 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41211/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41211/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41211/events | https://github.com/pandas-dev/pandas/pull/41211 | 870,614,752 | MDExOlB1bGxSZXF1ZXN0NjI1NzgyNjcy | 41,211 | REF: dont catch ValueError in aggregate_item_by_item | {
"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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-29T05:06:16Z" | "2021-04-30T00:53:54Z" | "2021-04-29T23:33:43Z" | 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/41211/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41211/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41211.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41211",
"merged_at": "2021-04-29T23:33:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41211.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41211"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41212 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41212/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41212/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41212/events | https://github.com/pandas-dev/pandas/issues/41212 | 870,736,304 | MDU6SXNzdWU4NzA3MzYzMDQ= | 41,212 | ENH: 'Efficient' resampling with custom non-uniform non-overlapping time intervals | {
"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": "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 | 5 | "2021-04-29T08:09:01Z" | "2021-05-25T19:54:20Z" | "2021-05-25T19:54:20Z" | NONE | null | #### Is your feature request related to a problem?
I would like to resample a sorted time series with a sorted list of non-uniform, non-overlapping and not necessarily contiguous time intervals.
Taking benefit that...
* the time serie i sorted
* and and the non-uniform not necessarily contiguous time intervals are not overlapping,
...reading through the time serie needs to be done only once.
[Posting my question on SO](https://stackoverflow.com/questions/67250482/efficient-groupby-when-rows-of-groups-are-contiguous), with use of `groupby` just to show intended result, and asking if this could be done 'more efficiently' in pandas, I have been proposed to use Numba.
#### Describe the solution you'd like
I would propose to:
- re-use [`IntervalIndex`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.IntervalIndex.html) to define non-uniform, sorted and non overlapping intervals. This feature can conveniently be checked then with `is_non_overlapping_monotonic`
- have a new parameter `label` in `IntervalIndex` to define how should be named each interval (left or right bound, similar to `resample` API)
- have [`resample`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.resample.html) accepting `IntervalIndex`
- have the parameters `closed` and `label` forwarded from `IntervalIndex` to `resample`
Additionally, `resample` could also accept a single sequence of timestamps to define sorted non-uniform **contiguous** time intervals, similar to what [`cut`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.cut.html) can accept for its `bins` parameter.
#### API breaking implications
Use case example.
```python
import pandas as pd
# Time series.
length = 14
ts = pd.date_range(start='2021/01/01 08:00', periods=length, freq='30T')
tseries = pd.DataFrame({'val':range(length)}, index=ts)
# Custom disjoint intervals.
hours_start = ['7:46', '9:25', '9:35', '10:15', '10:55', '13:10']
hours_end = ['8:43', '9:32', '10:09', '10:42', '12:55', '13:31']
days = ['2021/01/01']*len(hours_start)
start = pd.DatetimeIndex(map(pd.Timestamp, map(' '.join, zip(days, hours_start))))
end = pd.DatetimeIndex(map(pd.Timestamp, map(' '.join, zip(days, hours_end))))
custom_intervals = pd.IntervalIndex.from_arrays(start, end, closed='left')
# New API here, with 'closed' and 'label' parameters forwarded from 'IntervalIndex' to 'resample'.
tseries['cumsum'] = tseries['val'].resample(custom_intervals).agg({'val': 'cumsum'})['val']
```
#### Describe alternatives you've considered
* using Numba of course
* using `rolling`. Am I right in thinking that `resample` is a convenience method calling `rolling` under the hood?
#### Additional context
I am assuming that `resample` already takes benefit that the time series is sorted according its DatetimeIndex. Am I right?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41212/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41212/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41213 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41213/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41213/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41213/events | https://github.com/pandas-dev/pandas/issues/41213 | 870,747,614 | MDU6SXNzdWU4NzA3NDc2MTQ= | 41,213 | Numpy Import Error | {
"avatar_url": "https://avatars.githubusercontent.com/u/76555786?v=4",
"events_url": "https://api.github.com/users/electromeow/events{/privacy}",
"followers_url": "https://api.github.com/users/electromeow/followers",
"following_url": "https://api.github.com/users/electromeow/following{/other_user}",
"gists_url": "https://api.github.com/users/electromeow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/electromeow",
"id": 76555786,
"login": "electromeow",
"node_id": "MDQ6VXNlcjc2NTU1Nzg2",
"organizations_url": "https://api.github.com/users/electromeow/orgs",
"received_events_url": "https://api.github.com/users/electromeow/received_events",
"repos_url": "https://api.github.com/users/electromeow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/electromeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/electromeow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/electromeow"
} | [
{
"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": "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 | [] | null | 13 | "2021-04-29T08:21:35Z" | "2021-08-20T02:42:41Z" | "2021-08-20T02:42:41Z" | NONE | null | _Pandas frequently errors about importing NumPy. When I try to import pandas, it tries to import NumPy and creates an error.
I don't know why but when I delete venv folder and create a new venv and install pandas again, it automatically resolves but after 3-4 days, it throws an error about importing NumPy. There isn't a problem with the NumPy version because I don't manually install NumPy or any package with NumPy dependency before installing pandas. Anyway, I don't use another package using Numpy.
If you know what is the problem, please reply._
I opened this issue 1 week ago but it has closed because I didn't have that error at the time and don't have a full traceback.
I had the same error again and now I have the full traceback.
```
Traceback (most recent call last):
File "/pathtomyproject/main.py", line 22, in
import pandas as pd
File "/pathtomyproject/venv/lib/python3.9/site-packages/pandas/init.py", line 16, in
raise ImportError(
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
The Python version is: Python3.9 from "/pathtomyproject/venv/bin/python3"
The NumPy version is: "1.20.2"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
```
I didn't install any other packages or updated anything in that venv during last week. And as I mentioned above, I didn't use any library which is NumPy dependent. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41213/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41213/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41214 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41214/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41214/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41214/events | https://github.com/pandas-dev/pandas/issues/41214 | 870,777,309 | MDU6SXNzdWU4NzA3NzczMDk= | 41,214 | DOC: Cannot acces to index value when using 'key' function in 'Sort_index' | {
"avatar_url": "https://avatars.githubusercontent.com/u/75794654?v=4",
"events_url": "https://api.github.com/users/MiguelonGonzalez/events{/privacy}",
"followers_url": "https://api.github.com/users/MiguelonGonzalez/followers",
"following_url": "https://api.github.com/users/MiguelonGonzalez/following{/other_user}",
"gists_url": "https://api.github.com/users/MiguelonGonzalez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MiguelonGonzalez",
"id": 75794654,
"login": "MiguelonGonzalez",
"node_id": "MDQ6VXNlcjc1Nzk0NjU0",
"organizations_url": "https://api.github.com/users/MiguelonGonzalez/orgs",
"received_events_url": "https://api.github.com/users/MiguelonGonzalez/received_events",
"repos_url": "https://api.github.com/users/MiguelonGonzalez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MiguelonGonzalez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MiguelonGonzalez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MiguelonGonzalez"
} | [
{
"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": "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 | 2 | "2021-04-29T08:52:55Z" | "2021-04-29T12:52:55Z" | "2021-04-29T12:52:55Z" | NONE | null | [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_index.html]
#### Documentation problem
[When setting 'key argument' in sort_index function (DataFrame object method), I cannot acces to index value because it's consider as an object. I haven't found the way of extracting Index' object value. I do not know if I'm wrong or a new Index method would be required for accesing that value]
#### Suggested fix for documentation
[Here I attached some code to let me explain:
df = pd.DataFrame({"a": [1, 2, 3, 4]}, index=['(0-1)', '(1-2)', '(2-3)', '(3-4)'])
df.sort_index(key=lambda x: int(x[1]))
Useful information: https://stackoverflow.com/questions/64160980/key-function-when-using-sort-index]
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41214/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41214/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41215 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41215/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41215/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41215/events | https://github.com/pandas-dev/pandas/issues/41215 | 870,789,903 | MDU6SXNzdWU4NzA3ODk5MDM= | 41,215 | BUG: Series.replace(List, ...) changes the dtype of the Series to object | {
"avatar_url": "https://avatars.githubusercontent.com/u/20094417?v=4",
"events_url": "https://api.github.com/users/EdGaere/events{/privacy}",
"followers_url": "https://api.github.com/users/EdGaere/followers",
"following_url": "https://api.github.com/users/EdGaere/following{/other_user}",
"gists_url": "https://api.github.com/users/EdGaere/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EdGaere",
"id": 20094417,
"login": "EdGaere",
"node_id": "MDQ6VXNlcjIwMDk0NDE3",
"organizations_url": "https://api.github.com/users/EdGaere/orgs",
"received_events_url": "https://api.github.com/users/EdGaere/received_events",
"repos_url": "https://api.github.com/users/EdGaere/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EdGaere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EdGaere/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EdGaere"
} | [
{
"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": "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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] | open | false | null | [] | null | 1 | "2021-04-29T09:05:56Z" | "2021-04-29T13:54:46Z" | 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. (v1.2.4)
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
There is a bug when calling Series.replace(List, ...), the Series gets converted to dtype 'object', which is incorrect.
Let's start with a simple example that works as expected.
```
df = pd.DataFrame({'a': ['abc', 'def']}, dtype="string")
s0 = df["a"].replace('abc', 'xyz')
print(s0)
```
The output is as expected, and Series has maintained the type __string__:
```
0 xyz
1 def
Name: a, dtype: string
```
But when calling Series.replace(List, ...), Series gets converted to dtype __object__, which is incorrect.
```
s1 = df["a"].replace(['abc', 'any other string'], "xyz" )
print(s1)
```
Output:
```
0 xyz
1 def
Name: a, dtype: object
```
#### Problem description
Datatype of Series should not change when using a different argument to Series.replace().
#### Expected Output
```
0 xyz
1 def
Name: a, dtype: string
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.8.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/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.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 21.0.1
setuptools : 56.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : None
tables : None
tabulate : 0.8.7
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/41215/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41215/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41216 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41216/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41216/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41216/events | https://github.com/pandas-dev/pandas/issues/41216 | 870,833,645 | MDU6SXNzdWU4NzA4MzM2NDU= | 41,216 | BUG: Cannot change the data type in the data frame | {
"avatar_url": "https://avatars.githubusercontent.com/u/50440358?v=4",
"events_url": "https://api.github.com/users/Leejung8763/events{/privacy}",
"followers_url": "https://api.github.com/users/Leejung8763/followers",
"following_url": "https://api.github.com/users/Leejung8763/following{/other_user}",
"gists_url": "https://api.github.com/users/Leejung8763/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Leejung8763",
"id": 50440358,
"login": "Leejung8763",
"node_id": "MDQ6VXNlcjUwNDQwMzU4",
"organizations_url": "https://api.github.com/users/Leejung8763/orgs",
"received_events_url": "https://api.github.com/users/Leejung8763/received_events",
"repos_url": "https://api.github.com/users/Leejung8763/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Leejung8763/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Leejung8763/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Leejung8763"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"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"
},
{
"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 | 3 | "2021-04-29T09:56:17Z" | "2021-05-01T11:46:25Z" | "2021-05-01T11:46:25Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
df1 = pd.DataFrame(np.arange(16).reshape(4,4),
index = [[1,1,2,2],['s1','s2','s1','s2']],
columns = [['apple','apple','banana','banana'], ['price','qty','price','qty']],
)
# first
df1["apple"]["price"] = [12, 16, 15, 18]
# second
df1["apple"]["price"] = ["a", "b", "c", "d"]
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
first code(change with numeric data)'s output is exactly same with what I think.
but when I used second one(change with string data), there's nothing change.
I know It can solve with code df1.loc[:, ("apple", "price")] = ["a", "b", "c", "d"], but I just wonder why second one is impossible.
#### Expected Output
apple banana
price qty price qty
1 s1 a 1 2 3
s2 16 b 6 7
2 s1 c 9 10 11
s2 18 d 14 15
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2cb96529396d93b46abab7bbc73a208e708c642e
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-693.11.6.el7.x86_64
Version : #1 SMP Thu Jan 4 01:06:37 UTC 2018
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : ko_KR.UTF-8
LOCALE : ko_KR.UTF-8
pandas : 1.2.4
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0.post20200714
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.4.0
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.5.3
sqlalchemy : 1.3.18
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.51.2
</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/41216/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41216/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/41217 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41217/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41217/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41217/events | https://github.com/pandas-dev/pandas/pull/41217 | 870,923,514 | MDExOlB1bGxSZXF1ZXN0NjI2MDMxNjc2 | 41,217 | [ArrowStringArray] use pyarrow.compute.match_substring_regex if available | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-29T11:41:24Z" | "2021-05-03T07:04:51Z" | "2021-05-02T23:53:32Z" | MEMBER | null | follow-up to #41025
```
[ 50.00%] ··· strings.Contains.time_contains ok
[ 50.00%] ··· ============== ========== ==========
-- regex
-------------- ---------------------
dtype True False
============== ========== ==========
str 22.0±0ms 15.0±0ms
string 17.2±0ms 10.9±0ms
arrow_string 6.84±0ms 2.37±0ms
============== ========== ==========
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41217/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41217/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41217.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41217",
"merged_at": "2021-05-02T23:53:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41217.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41217"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41218 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41218/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41218/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41218/events | https://github.com/pandas-dev/pandas/pull/41218 | 871,163,192 | MDExOlB1bGxSZXF1ZXN0NjI2MjI3NDc4 | 41,218 | Optimising Series.nunique for Nan values #40865 | {
"avatar_url": "https://avatars.githubusercontent.com/u/25628466?v=4",
"events_url": "https://api.github.com/users/KenilMehta/events{/privacy}",
"followers_url": "https://api.github.com/users/KenilMehta/followers",
"following_url": "https://api.github.com/users/KenilMehta/following{/other_user}",
"gists_url": "https://api.github.com/users/KenilMehta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KenilMehta",
"id": 25628466,
"login": "KenilMehta",
"node_id": "MDQ6VXNlcjI1NjI4NDY2",
"organizations_url": "https://api.github.com/users/KenilMehta/orgs",
"received_events_url": "https://api.github.com/users/KenilMehta/received_events",
"repos_url": "https://api.github.com/users/KenilMehta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KenilMehta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KenilMehta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KenilMehta"
} | [] | closed | false | null | [] | null | 0 | "2021-04-29T15:40:51Z" | "2021-04-29T16:01:12Z" | "2021-04-29T16:00:58Z" | CONTRIBUTOR | null | - [ ] closes #40865
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41218/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41218/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41218.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41218",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/41218.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41218"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/41219 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/41219/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/41219/comments | https://api.github.com/repos/pandas-dev/pandas/issues/41219/events | https://github.com/pandas-dev/pandas/pull/41219 | 871,300,696 | MDExOlB1bGxSZXF1ZXN0NjI2MzQwMTg2 | 41,219 | [ArrowStringArray] use pyarrow string trimming functions if available | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-29T18:10:46Z" | "2021-04-30T09:20:49Z" | "2021-04-29T22:10:13Z" | MEMBER | null | ```
[ 27.78%] ··· strings.Methods.time_lstrip ok
[ 27.78%] ··· ============== ==========
dtype
-------------- ----------
str 22.7±0ms
string 16.4±0ms
arrow_string 1.71±0ms
============== ==========
[ 38.89%] ··· strings.Methods.time_rstrip ok
[ 38.89%] ··· ============== ==========
dtype
-------------- ----------
str 19.7±0ms
string 13.9±0ms
arrow_string 1.71±0ms
============== ==========
[ 43.06%] ··· strings.Methods.time_strip ok
[ 43.06%] ··· ============== ==========
dtype
-------------- ----------
str 18.9±0ms
string 14.6±0ms
arrow_string 1.64±0ms
============== ==========
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/41219/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/41219/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/41219.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/41219",
"merged_at": "2021-04-29T22:10:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/41219.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/41219"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.